Use this command to change a command line or to add a new command line to an IBM® Tivoli® Storage Manager script.
run script1 > c:\temp\test.out
To issue this command, the administrator must have previously defined the script or must have system privilege.
>>-UPDate SCRipt--script_name-----------------------------------> >--+-----------------------------------+------------------------> '-command_line--+-----------------+-' '-Line--=--number-' >--+-----------------------------+----------------------------->< '-DESCription--=--description-'
Command can contain substitution variables and may be continued across multiple lines if you specify a continuation character (-) as the last character in the command. You can specify up to 1200 characters for the command. Enclose the command in quotation marks if it contains blanks. If you specify this parameter, you can optionally specify the following parameter.
You have the options of running commands serially, in parallel, or serially and in parallel by specifying the SERIAL or PARALLEL script commands for this parameter. You can run multiple commands in parallel and wait for them to complete before proceeding to the next command. Commands will run serially until the parallel command is encountered.
Conditional logic flow statements can be used. These statements include IF, EXIT, and GOTO.
If you specify a line number, the command will replace an existing line (if the number is the same as an existing line). Or the command will insert the specified line (if the line number does not correspond to an existing line number for the command line sequence).
001 /* This is a sample script */
005 QUERY STATUS
010 QUERY PROCESS
update script qsample "query session"
After
the command processes, the script now consists of the following lines: 001 /* This is a sample script */
005 QUERY STATUS
010 QUERY PROCESS
015 QUERY SESSION
update script qsample "query stgpool" line=010
After
the command processes, the script now consists of the following lines: 001 /* This is a sample script */
005 QUERY STATUS
010 QUERY STGPOOL
015 QUERY SESSION
update script qsample "set registration open"
line=007
After the command processes, the script now consists
of the following lines: 001 /* This is a sample script */
005 QUERY STATUS
007 SET REGISTRATION OPEN
010 QUERY STGPOOL
015 QUERY SESSION
Command | Description |
---|---|
COPY SCRIPT | Creates a copy of a script. |
DEFINE SCRIPT | Defines a script to the Tivoli Storage Manager server. |
DELETE SCRIPT | Deletes the script or individual lines from the script. |
QUERY SCRIPT | Displays information about scripts. |
RENAME SCRIPT | Renames a script to a new name. |
RUN | Runs a script. |