Switch Command Reference Guide

124
C
HAPTER
3: S
YSTEM
E
NVIRONMENT
3500
9000
9400
3900
9300
script
Executes a command file that you have written to expedite and automate
Administration Console tasks.
Valid Minimum Abbreviation
sc
Important Considerations
Any command that you can enter in the Administration Console can
be part of a script. You can even script your entire system setup so that
you can repeat the exact setup on other systems.
You create scripts in an ASCII-based line editor, such as
EMACS
or
vi
.
Scripts must be stored on the TFTP server. For the CoreBuilder 3500,
you can select TFTP or FTP as the file transfer method. See “system
fileTransfer” earlier in this chapter for more details.
Some TFTP implementations require that you store the script file in the
same directory in which the TFTP daemon (server) is running on the
remote host.
Because TFTP provides no user authentication, make the file
permissions
loose
so that the public can read and write to the file.
TFTP servers do not grant requests for file access.
Procedure
1
From the top level of the Administration Console, enter:
script
The system prompts you for information about where you have stored
the script that you want to run: host IP address and file path
Press Return at any prompt to accept the current or default value in
brackets.
2
Enter the path name to the script file. If you are using TFTP, see “system
snapshot save”
earlier in this chapter for more details about pathname
requirements.
The task that you scripted runs in the Administration Console.