Reference Guide

The Command Utility rst veries the command syntax for all commands in the script le. If there are no syntax errors, Storage Center CU
executes the commands one-by-one. If an error is encountered (either in the initial syntax parsing or during a command execution), script
execution is terminated.
java –jar compcu.jar –default -defaultname saved_default_01 -host storagecenter1 -user admin -
password mmm
The following samples are provided to illustrate basic script syntax:
# Sample Script 1
# Create a Volume
volume create -name 'new volume' -size 8g
# Output all volume information to an xml file
volume -xml 'volumes.xml'
# End of Sample Script 1
# Sample Script 2
# Create a server named ser1 with two HBAs
# Create four volumes and map the volumes to server 'ser1'
volume create -name 'vol 1' -size 32g -server 'ser1' -folder 'ser1 vols'
volume create -name 'vol 2' -size 32g -server 'ser1' -folder 'ser1 vols'
volume create -name 'vol 3' -size 32g -server 'ser1' -folder 'ser1 vols' -storageprofile 'Low
Priority'
volume create -name 'vol 4' -size 32g -server 'ser1' -folder 'ser1 vols'
# End of Sample Script 2
18 Getting Started