ONTAP Discussions

rsh and vfilers. Snapvault and Snapmirror commands missing

davidrnexon
7,237 Views

Hi everyone,

I'm currently following this article in setting up snapvault for exchange https://kb.netapp.com/support/index?page=content&id=1010129

I need to rsh to my vfiler which is the snapvault secondary and issue the snapvault update command, however when I rsh to the vfiler I don't have any options to type in snapvault commands or I couldn't see snapmirror commands either ? The user that i'm connecting as is full admin.

1 ACCEPTED SOLUTION

scottgelb
7,004 Views

It could be the ontap version.. I suspect that.. 8.0 I believe had 7.2 feature parity for multistore and 8.0.1 added 7.3 feature parity (except for data motion).

Typos Sent on Blackberry Wireless

View solution in original post

31 REPLIES 31

aborzenkov
5,933 Views

You do not type commands after rsh'ing into filer. rsh is used to execute command which is part of command line, not to make interactive login.

rsh filer "put your command here", e.g. "rsh filer date"

scottgelb
5,933 Views

we will have an interactive shell to a vFiler soon with 8.1... but for now non-interactive like aborzenkov listed... I recommend setting up ssh in the vfiler then use non-interactive ssh instead of rsh.. "ssh vfilername snapvault update".  Although I suspect you might want to be running snapvault from vfiler0 since it isn't supported in Protection Manager at the vFiler... depending on what you are doing... check snapvault status to see where the relationship was created from/to (if the vfiler or vfiler0).  If using vfiler0 for the vault, you can run the command from the rsh/ssh to the physical controller vfiler0.

davidrnexon
6,149 Views

Thanks guys, i'm not after an interactive login

I'm trying to run the following as an example: rsh vfiler snapvault status

It will be part of the script for snapmanager for exchange so that I can pass variable through i.e. $ExchSnapshot as %1 as it describes in the link I posted.

If I type rsh vfiler ? It lists the commands available but there isn't any snapvault or snapmirror commands:

rsh vfiler ?

?                   igroup              ndmpcopy            quota

exportfs            ipsec               ndmpd               radius

filestats           iscsi               nfsstat             secureadmin

fsecurity           keymgr              options             sis

help                lock                passwd              useradmin

hostname            lun                 qtree

I know interactive ssh doesn't work with vfilers, but if I try non-interactive will that work as you said Scott ?

scottgelb
6,149 Views

What ontap version? Rsh had some limitations but ssh will have all commands depending on ontap version.

Typos Sent on Blackberry Wireless

davidrnexon
6,149 Views

we are using 8.0.1 7-mode

scottgelb
6,149 Views

Setup ssh in the vfiler and run 'ssh vfiler ?' And you should see snapvault. If a script you can setup a public key so it doest need a password

Typos Sent on Blackberry Wireless

davidrnexon
6,149 Views

Just tried that and same thing no snapvault or snapmirror commands

I was using putty's plink.exe

plink user@vfiler ?

?                   igroup              ndmpcopy            quota

exportfs            ipsec               ndmpd               radius

filestats           iscsi               nfsstat             secureadmin

fsecurity           keymgr              options             sis

help                lock                passwd              useradmin

hostname            lun                 qtree

scottgelb
6,149 Views

Odd. Should be there.. Does ssh user@vfiler 'priv set advanced ; snapvault' work?

Typos Sent on Blackberry Wireless

scottgelb
5,933 Views

actually can't run priv set in the vfiler context... can you rsh/ssh to vfiler0 and run "vfiler run vfilername snapvault update" ?

davidrnexon
5,471 Views

Sorry just saw this reply, yeah I can do that

davidrnexon
5,687 Views

no doesn't work, priv doesn't exist on vfilers even on the cli console. Only on the vfiler0

scottgelb
5,687 Views

I ran both ssh and rsh directly to a vFiler on ONTAP 7.3.5 and 8.0.1 7-mode...both have all commands... it was ONTAP 7.2 which had a subset of vfiler context commands but 7.3+ added all commands in the remote shell context.  Not sure why the commands are missing from your vFiler.  Snapvault is licensed in vfiler0?   Does vfiler status -a show any disabled protocols?

vFiler created in 7.3.5 then 8.0.1 7-mode..

7.3.5

$ ssh root@192.168.150.201 ?

?                   hostname            nfsstat             snap               

cifs                igroup              nis                 snapmirror         

clone               ipsec               options             snapvault          

config              iscsi               passwd              useradmin          

df                  keymgr              qtree               vol                

dns                 lock                quota               vscan              

echo                lun                 route               wcc                

exportfs            nbtstat             sectrace            ypcat              

filestats           ndmpcopy            secureadmin         ypgroup            

fpolicy             ndmpd               sftp                ypmatch            

fsecurity           nfs                 sis                 ypwhich            

help               

$ rsh 192.168.150.201 ?

?                   hostname            nfsstat             snap               

cifs                igroup              nis                 snapmirror         

clone               ipsec               options             snapvault          

config              iscsi               passwd              useradmin          

df                  keymgr              qtree               vol                

dns                 lock                quota               vscan              

echo                lun                 route               wcc                

exportfs            nbtstat             sectrace            ypcat              

filestats           ndmpcopy            secureadmin         ypgroup            

fpolicy             ndmpd               sftp                ypmatch            

fsecurity           nfs                 sis                 ypwhich            

help               

8.0.1 7-mode

$ ssh root@192.168.150.201 ?

?                   hostname            nfsstat             snap               

cifs                igroup              nis                 snapmirror         

clone               ipsec               options             snapvault          

config              iscsi               passwd              useradmin          

df                  keymgr              qtree               vol                

dns                 lock                quota               vscan              

echo                lun                 radius              wcc                

exportfs            nbtstat             route               ypcat              

filestats           ndmpcopy            sectrace            ypgroup            

fpolicy             ndmpd               secureadmin         ypmatch            

fsecurity           nfs                 sis                 ypwhich            

help               

rsh 192.168.150.201 ?

?                   hostname            nfsstat             snap               

cifs                igroup              nis                 snapmirror         

clone               ipsec               options             snapvault          

config              iscsi               passwd              useradmin          

df                  keymgr              qtree               vol                

dns                 lock                quota               vscan              

echo                lun                 radius              wcc                

exportfs            nbtstat             route               ypcat              

filestats           ndmpcopy            sectrace            ypgroup            

fpolicy             ndmpd               secureadmin         ypmatch            

fsecurity           nfs                 sis                 ypwhich            

help               

davidrnexon
5,471 Views

that's weird, thanks for confirming that you can see the commands,much appreciated

yes snapvault is licensed from vfiler0, I have 5 snapvault relationships that i've just initialized fromt he vfiler.

0 protocols are disabled

  Protocols allowed: 7

   Allowed: proto=rsh

   Allowed: proto=ssh

   Allowed: proto=nfs

   Allowed: proto=cifs

   Allowed: proto=iscsi

   Allowed: proto=ftp

   Allowed: proto=http

   Protocols disallowed: 0

Any other ideas ?

davidrnexon
5,687 Views

I've also just tried on my simulator and I can see all the commands. Not too sure what is wrong with this vfiler though

scottgelb
5,687 Views

Do you have a case open?  It must be something simple but the output doesn't make sense from the vfiler.

davidrnexon
5,972 Views

Hey Scott, i've logged a case with Netapp, it's being escalated so when I hear back and have a resolution i'll update this post. Another thing I wanted to add though if I rsh to the base vfiler (vfiler0) I can see all the commands. If I create a new vfiler on the same system and rsh to that, I'm again missing most of the commands. Lastly I the version that i'm running is 8.0 7-mode not 8.0.1 7-mode as i mentioned earlier

scottgelb
7,005 Views

It could be the ontap version.. I suspect that.. 8.0 I believe had 7.2 feature parity for multistore and 8.0.1 added 7.3 feature parity (except for data motion).

Typos Sent on Blackberry Wireless

davidrnexon
5,756 Views

Hi Scott, I think you are right, i've just ran up the Ontap 8.0 7-mode simulator, created a vfiler and can produce exactly the same results, no snapmirror or snapvault via rsh or non-interactive ssh. So looks like an upgrade is due

davidrnexon
5,972 Views

Just a quick update. I finally got around to upgrading the controllers to 8.0.1 last night and all the commands are now available via rsh. Thanks Scott

scottgelb
5,951 Views

Good news.. It was a feature parity for vfilers with 7.2 and 7.3.2 from 8.0 to 8.0.1. We have been using 8.0.2P2 for most upgrades and are waiting for P3 for an ssh fix.

Typos Sent on Blackberry Wireless

Public