HP Smart Storage Administrator Scripting Cookbook

Advanced commands 13
This option filters the discovered controllers, restricting the command to only internal or only external
controllers.
Example
When using the Controller=First command, if the system had no internal controllers (due to hardware failure
or discovery failure) but had an external controller for shared storage, the script would attempt to create a
volume on the external controller. To prevent that action, the -internal command line argument restricts
discovery to only internal controllers:
# hpssascripting -i input.txt -internal
Controller=First
Array=A
Drive=1E:1:1, 1E:1:2
LogicalDrive=1
RAID=1
Array=Next
You can use Array=Next instead of the Array=A command.
Advantage
You do not need to know how many arrays exist. The scripting software selects the next valid array identifier.
Example
Add one array to the configuration, regardless of how many arrays already exist:
Controller=Slot1
Array=Next
Drive=1E:1:1, 1E:1:2
LogicalDrive=2
RAID=1
HP recommends pairing the Array=Next command with LogicalDrive=Next (on page 13), because
you would not create an array without also creating a logical drive, and this additional command does not
require you to know how many logical drives already exist.
LogicalDrive=Next
You can use LogicalDrive=Next instead of the LogicalDrive=N command.
Advantage
You do not need to know how many logical drives exist. The scripting software selects the next valid
identifier.
Example
Add one logical drive to Array A, regardless of how many logical drives already exist:
Controller=Slot1
Array=A
Drive=1E:1:1, 1E:1:2
LogicalDrive=Next
RAID=1