Creating an hp ssa script file, Script file requirements, Sample custom input script – HP Smart Storage Administrator User Manual
Page 71
![background image](/manuals/398677/71/background.png)
Operations 71
Then, enter the following command at the system command line prompt:
hpssascripting -i FILENAME [-internal | -external] [-reset] -e FILENAME
The -i switch information specifies the input file to use.
The -internal and -external switches limit configuration operations to internal or external controllers.
The -reset flag destroys any existing data and overwrites the current configuration with the configuration
specified in the script.
The -e switch 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
•
Create a Capture file for capturing a configuration (on page
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
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.
Script file requirements
The script file used by HP SSA Scripting is a text file that contains options and parameters required to
configure array controllers. In order to be successfully implemented, scripts must follow the guidelines below:
•
Ordering of the options and parameters is important. Options need to be read in the sequence
Control>Controller>Array>Logical Drive.
•
Lines of the script file are written in the form option=value or left blank.
•
HP SSA Scripting does not distinguish between upper- and lowercase, except for the
"CHASSISNAME", "CONNECTIONNAME" and "HOSTMODE" options.
•
Semicolons are used for comments within script files. If the first character in the line is a semicolon, HP
SSA Scripting ignores everything up to the next line.
•
Some script options require the installation of a valid license key.
Sample custom input script
The sample script in this section gives all possible values for each option.
•
If an option is shown in bold type, you must enter a value for that option when writing your own script.
•
Default options are not universal across controllers and firmware.