HP StorageWorks Storage System Scripting Utility reference (September 2005)

LS disk_group admin
Aliases
The utility commands recognize an alias, so you do not need to use full names except for LUN names.
Virtual disk exa mple
If you have \virtural_disks\my_virdisk\Active,youcanentermy_virdisk for the object. If
your object name contains spaces, the double quotes are mandatory.
Disk group example
If you have \Disk Groups\Default Disk Group,youcanenterDefault Disk Group for the object.
NOTE:
If you do not specify a full name, the utility checks to see if you are using an alias. However, LUNs need
to be specied with a full name. This is because LUNs are not uniquely identied by numb ers and several
different vi
rtual disks can have a LUN 1 presentation. In this instance, the full path name is required .
For example,
if you are specifying a LUN, you need to specify the full LUN name:
LS lun \Hosts
\MainServer\3
SET example
To specify a host without aliases:
SET host \Hosts\h1 name=h2
To specify a host with aliases:
set host h1 name=h2
Add snapshot ex ample
To add a snapshot without aliases:
add snapshot mysnap vdisk="\Virtual Disks\mydisk\ACTIVE"
To add a snapshot with aliases:
add snapshot mysnap2 vdisk=mydisk
Delete virtual disk example
To delete a virtual disk without aliases:
delete vdisk "\Virtual Disks\mydisk\ACTIVE"
To delete a virtual disk with aliases:
delete vdisk mydisk
Formatting and output of returned data
Most return LS command data can be formatted in the optional XML format.
The regular output of the LS command is in the format:
HP StorageWorks Storage System Scripting Utilit y reference
19