Automated Scripts :
Command Line Interface
Reference
Back to Contents Page
Automated Scripts
You can use the CLI commands alone in CLI command scripts or in combination with DOS commands in DOS batch files to perform a variety of tasks. You can also invoke CLI command scripts in a DOS batch file. This appendix describes how to write DOS batch files and CLI command scripts to accomplish the following:
You should already understand how to write DOS batch files and be familiar with Windows-related backup commands.
To execute a CLI command script at the CLI command prompt, use the @ (at sign) followed by the file name that contains the CLI commands, for example:
AFA0> @container.txt
Performing Controller Details Task
A CLI command script, in its simplest form, is a text file that contains valid CLI commands. Each command is followed by a carriage return linefeed. The following example opens a controller, uses the controller details command to display details about the opened controller, closes the controller, and exits the command script:
open afa0
controller details
close afa0
exit
The following list provides descriptions related to the ctrdetls.txt CLI command script:
- The first line opens controller afa0 by invoking the CLI command
open.
- The second line displays details about the open controller by invoking the CLI command
controller details.
- The third line closes controller afa0 by invoking the CLI command
close.
- The fourth line exits the example CLI command script.
Back to Contents Page
|