Scripts in SnapCLI
Appendix B Command Line Interface
177
Scripts in SnapCLI
Administrative tasks can be automated with shell scripts that call SnapCLI
commands.
Running a SnapCLI Script
1
Create the script and put it in a share on the local server.
Notes
• Be sure to use an application that is compatible with the standard UNIX text
file format (e.g.,
vi
). Avoid using Windows clients to create or edit scripts.
• Place the script in a share that will never be part of a delete script.
2
Log in to the SnapCLI (see Logging into SnapCLI for instructions).
3
Type
osshell
to get a bash prompt.
4
At the prompt, make sure the script is executable by typing the following and
pressing
Enter
:
chmod +x/shares/[sharename]/[scriptname]
where
sharename
is the name of the share where you put the script and
scriptname
is the name of the script.
5
To run the script, type the path again, and press
Enter
:
/shares/[sharename]/[scriptname]
Summary of Contents for 5325301507 - Snap Server 4400 NAS
Page 2: ......
Page 12: ...xii SnapServer Administrator Guide ...
Page 16: ...xvi SnapServer Administrator Guide ...
Page 58: ...Print Server 42 SnapServer Administrator Guide ...
Page 64: ...NIS Domain 48 SnapServer Administrator Guide ...
Page 110: ...Configuring VSS VDS for iSCSI Disks 94 SnapServer Administrator Guide ...
Page 154: ...Log View 138 SnapServer Administrator Guide ...
Page 228: ...Phone Home Support 212 SnapServer Administrator Guide ...