Automated Scripts; Creating An Automated Script - Adaptec AAR-21610SA Reference Manual

Command line interface
Hide thumbs Also See for AAR-21610SA:
Table of Contents

Advertisement

Automated Scripts

This appendix describes how to write DOS batch files and CLI
command scripts to perform the controller details task.
You can use the CLI commands alone in CLI command scripts or in
combination with DOS commands in DOS batch files. Also, you
can invoke CLI command scripts in a DOS batch file. You should
already understand how to write DOS batch files and be familiar
with Windows-related backup commands.
To execute a CLI command script, type the @ (at sign) followed by
the file name that contains the CLI commands, for example:
AAC0>@array.txt

Creating an Automated Script

In its simplest form, a CLI command script is a text file that
contains valid CLI commands. A carriage return linefeed follows
each command. The following CLI command script:
1
Opens controller aac0 by invoking the CLI command open.
2
Invokes controller details.
Closes controller aac0 by invoking the CLI command close.
3
4
Exits the example CLI command script.
open AAC0
controller details
close AAC0
exit
A
A-1

Advertisement

Table of Contents
loading

This manual is also suitable for:

Aar-2410saAar-2810sa

Table of Contents