Subscribe
Accepted Solution

rsh and vfilers. Snapvault and Snapmirror commands missing

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.

Re: rsh and vfilers. Snapvault and Snapmirror commands missing

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"

Re: rsh and vfilers. Snapvault and Snapmirror commands missing

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.

rsh and vfilers. Snapvault and Snapmirror commands missing

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 ?

Re: rsh and vfilers. Snapvault and Snapmirror commands missing

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

Typos Sent on Blackberry Wireless

rsh and vfilers. Snapvault and Snapmirror commands missing

we are using 8.0.1 7-mode

Re: rsh and vfilers. Snapvault and Snapmirror commands missing

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

rsh and vfilers. Snapvault and Snapmirror commands missing

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

Re: rsh and vfilers. Snapvault and Snapmirror commands missing

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

Typos Sent on Blackberry Wireless

Re: rsh and vfilers. Snapvault and Snapmirror commands missing

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