Reference Guide

Increasing Available Memory
By default, the Java Application Launcher assigns 64 MB to the memory allocation pool. If an out-of-memory exception occurs while
executing a CompCU.jar command, use the Xms n and Xmx n arguments on the Java Application Launcher to increase the amount of
available memory. For example:
java -Xms128m -Xmx1024m -jar compcu.jar -c "replay"
NOTE: The value must be a multiple of 1024 that is greater than 2 MB. Use k for kilobytes or m for megabytes. For complete
information, see the Java Runtime Environment (JRE) documentation.
Executing CompCU Commands
The following sections provide CompCU.jar command examples.
Executing a Single Command
To execute a single command, use the –c option. Enclose the command and all command options with double quote marks ("). For
example, to execute the volume command, enter the following:
java -jar compcu.jar -host storagecenter1 -user admin -password mmm -c "volume"
To execute the volume command and save output to a text le named my output:
java -jar compcu.jar -host storagecenter1 -user admin -password mmm -c "volume -txt 'my output'"
Single Command Examples
The following samples are provided to illustrate basic command syntax: Create a server running Windows 2008 by specifying a server name
and multiple HBA names:
server create -name 'server 1' -wwn 'hba0,hba1,hba2' -os 'windows 2008'
Create a volume with a specic storage prole:
volume create -name 'volume 1' -size 32g -storageprofile 'Low Priority'
Map the volume to a specic controller on 'server 1':
volume map -name 'volume 1' -server 'server 1' -controller 'leader'
Save information about 'server 1' to a txt le:
server show -name 'server 1' -txt txtfile.txt
Script Examples
Follow these guidelines when creating script les:
Include one command per line.
Use the pound sign (#) as the rst character in a line to denote a comment.
To execute a script, use the –s option. For example, to execute a script named my script.txt:
java -jar compcu.jar -host storagecenter1 -user admin -password mmm -s "my script.txt"
Getting Started
17