Capturing a configuration

To capture the configuration of a system, enter the following command at the system command line prompt:

hpssascripting -c FILENAME [-internal -external] -e FILENAME

The -c switch information, if provided, specifies the capture file name. The capture filename is optional. If no capture file is specified, HP SSA names the default capture file acucapt.ini and places it in the HP SSA working directory.

The -internaland -externalswitches limit capture to internal or external controllers.

The -eswitch information is used only if HP SSA must generate an error file. The error filename is optional. By default, HP SSA names the error file error.ini and places it in the HP SSA working directory.

Using an Input script

To use an Input script to configure or reconfigure a system, first locate a suitable HP SSA script or see "Creating an HP SSA script file (on page 81)."

Then, enter the following command at the system command line prompt:hpssascripting -i FILENAME [-internal -external] [-reset] -e FILENAMEThe -iswitch information specifies the input file to use.

The -internaland -externalswitches limit configuration operations to internal or external controllers.

The -resetflag destroys any existing data and overwrites the current configuration with the configuration specified in the script.

The -eswitch information allows the user to rename an error file. By default, HP SSA names the error file error.ini and places it in the HP SSA working directory.

Creating an HP SSA script file

To create a valid HP SSA script file, use one of the following methods:Modify the sample custom input script (on page 82).Create a Capture file for capturing a configuration (on page 81).

You can create a capture file from any server that has HP SSA loaded, and then modify the values of the options in the file as necessary for the target system. This method is useful for applying a standard configuration to several servers that have similar storage resources.

Write an original script.

Each line of text in an HP SSA script file is in the format option=value and can be written in uppercase or lowercase letters. For information about possible option values and the minimum configuration information that a valid script must have, see the sample custom input script (on page 82).

You can add blank lines and comments to any script to make it easier to read and understand. To create a comment, enter a semicolon, and then enter the comment text. HP SSA ignores all text on the same line after a semicolon.

Operations 81