FAS and V-Series Storage Systems Discussions

log on to Filer via batch file

VKALVEMULA

Hi

i am using NET USE to log onto filer via batch file. but no success.

any other way to log onto filer via a batch file..

i am creating a batch file ( runs as scheduled ) and in that file..

i need to log onto filer and run a command and dump output to a text file.

6 REPLIES 6

Re: log on to Filer via batch file

JGPSHNTAP

Im not sure what you are trying to do, but you should be using Netapp's Powershell Toolkit

Re: log on to Filer via batch file

VKALVEMULA

i want to run a batch file and every 10 min so that i can logon to filer and run a snapmirror command and send the o/p to to a text file

Re: log on to Filer via batch file

JGPSHNTAP

You should be doing this via powershell and dumping to a webpage or archive.. Every ten minutes is overkill IMHO..

Re: log on to Filer via batch file

VKALVEMULA

can we do via batch file ?

Re: log on to Filer via batch file

JGPSHNTAP

Sure if you use rsh and open up host.equiv (unsecure)

You're not listening.. Focus on powershell, that's the direction that Netapp is going.. It's very simple.

Re: log on to Filer via batch file

DOMINIC_WYSS

as already said, try powershell.

if you really need a classic batch file, then I suggest using plink.exe from putty.

this would look something like that:

plink.exe user@filer snapmirror status >output.txt

Earn Rewards for Your Review!
GPI Review Banner
All Community Forums
Public