Friday, April 3, 2009

srsh.bat

This batch file sends commands to the NetApp filer.


@echo off

REM --------------------------------------------------------------------------------------------------------------
REM Usage
REM srsh [filer] "[command]"
REM
REM Be sure to enclose the command in "" marks
REM
REM This batch file assumes that the public private key pairing has been configured on the filer
REM
REM This batch file will send the [command] to the [filer] using a private key. This allows a script
REM access to the filer without the need to login in order to automate tasks
REM
REM This batch file is called from other batch files.
REM
REM DO NOT EDIT UNLESS YOU KNOW WHAT YOU ARE DOING!!!
REM --------------------------------------------------------------------------------------------------------------

plink -l root %1 -i "x:\path\to\yourkey.ppk" %2

No comments:

Post a Comment