HP StorageWorks Command View XP Command Line Interface (CLI) reference guide (B9357-96161, January 2006)
194 Batch processing
Example 6
The combination of modify host mode, modify fibre topology and modify fibre address commands when
operated on same port causes an error for the XP512 array.
modify host_mode CL1-B,0
modify fibre_topology CL1-B,1
modify fibre_address CL1-B,6
NOTE: This combination of commands works on XP128/XP1024 arrays.
Example 7
Creating a WWN group and adding WWNs to it:
create wwn_group CL1-D,wwngrp1,trial,try1
add wwn_to_wwn_group CL1-D,wwngrp1,0sanjay
Example 8
Adding WWNs to a WWN group (for the same port and WWN group) as individual commands:
add wwn_to_wwn_group CL1-D,wwngrp1,0sanjay
add wwn_to_wwn_group CL1-D,wwngrp1,testwwn
This can be achieved by using the following range command in a batch file:
add wwn_to_wwn_group CL1-D,wwngrp1,0sanjay,testwwn
Example 9
Deleting WWNs from a WWN group (for the same port and WWN group) as individual commands:
delete wwn_from_wwn_group CL1-D,wwngrp1,0sanjay
delete wwn_from_wwn_group CL1-D,wwngrp1,testwwn
This can be achieved by using the following range command in a batch file:
delete wwn_from_wwn_group CL1-D,wwngrp1,0sanjay,testwwn
Example 10
Deleting LUNs from a LUN group (for the same port and LUN group) as individual commands:
delete lun_from_lun_group CL1-H,Test,00
delete lun_from_lun_group CL1-H,Test,02
This can be achieved by using the following range command in a batch file:
delete lun_from_lun_group CL1-H,Test,00,02
Example 11
Adding and deleting luns to or from a LUN group and modifying the LUN group nickname (for the same
port and LUN group):
add lun_to_lun_group CL1-H,Test,00,02
modify lun_group_nickname CL1-H,Test,LunTest
or
delete lun_from_lun_group CL1-H,Test,00,02
modify lun_group_nickname CL1-H,Test,LunTest