Some Most Useful Symcli Commands
Some Most Useful Symcli Commands
symcfg
symcfg -version Displays SYMCLI Version
symcfg -sid 1234 remove Remove the array 1234 from symcfg list.
symcfg -sid 1234 list -lockn all List all the external locks held in Symmetrix array 1234.
symcfg -sid 1234 -lockn 15 release -force Release the lock 15 held on array 1234 .
symcfg -sid 1234 list -rdfg all List details about all the rdf groups in array.
symcfg -sid 1234 list -rdfg 3 List details about rdf group 3 .
symcfg -sid 1234 list -rdfg all -dynamic List details about all the dynamic rdf groups in array .
symcfg -sid 1234 list -rdfg all -static List details about all the static rdf groups in array .
symcfg -sid 1234 list -da all List all disk adapter ports with status( Online/Offline)
symcfg -sid 1234 list -fa all Lists all fiber adapter ports with WWPN of the ports
symdev
symdev -sid 1234 list List all devices in symmetrix 1234.
symdev -sid 1234 list -range AAA:BBB List all devices from a range of AAA to BBB
symdev -sid 1234 list -emulation celerra List all the celerra devices in array 1234
symdev -sid 1234 list -noport List the devices which are not mapped to any ports.
symdev -sid 1234 list -noport -meta List all unmapped meta devices.
symdev -sid 1234 list -dynamic List all devices whose dyn_rdf attribute set .
symdev -sid 1234 list -hotspare Checks whether hotspare invoked in the array .
symdev -sid 1234 show ABC Show the detailed information about device ABC.
symdev -sid 1234 write_disable ABC -SA all Write disable the device ABC from through all directors.
symdev -sid 1234 not_ready ABC -SA all Not ready the device ABC from through all directors.
symdev -sid 1234 ready ABC -SA all Ready the device ABC from through all directors.
www.rajeshvu.com
:: symcli commands
symdev -sid 1234 list -disk_group 1 Lists all the devices created in DISKGROUP 1
symdev -sid 1234 list -lock Lists the devices which are locked.
symdev -sid 1234 list -multiport -range AAA:AAA Displays the mapping information of device AAA
symdev -sid 1234 list -r1 Lists all RDF-1 devices in array 1234
symdev -sid 1234 list -r2 Lists all RDF-2 devices in array 1234
symdev -sid 1234 list -r21 Lists all RDF-21 devices in array 1234
symmaskdb
symmaskdb -sid 1234 -dev ABC list assign List the masking details of the dev ABC .
symmaskdb -sid 1234 -wwn xxxxxxx list devs List the devices masked to given wwn number .
symmaskdb -sid 1234 -awwn hba_alias list devs List the devices masked to given alias hba name .
symmaskdb -sid 1234 list no_assignment Lists devices mapped but not masked .
symmaskdb -sid 1234 -file <file> backup Backup the current VCMDB to file
symmaskdb -sid 1234 -file <file> restore Restore VCMDB from file
symmask
symmask list hba List HBA details of the host.
symmask -sid 1234 -dir 4a -p 0 list logins List out wwns logged through port 4a0 .
symmask -sid 1234 list logins -wwn xxx Check the logins of wwn xxx in ports of array 1234
symmask -sid 1234 -wwn xxxx -dir 4a -p 0 add devs Mask the devices ABC and ABD to given wwn in 1234
ABC,ABD array.
symmask -sid 1234 -awwn Alias_Name -dir 4a -p 0 Mask the devices ABC and ABD to given wwn_alias in
add devs ABC,ABD 1234 arrray .
symmask -sid 1234 -wwn xxxx -dir 4a -p 0 remove Unmask the devices ABC and ABD from given wwn in
devs ABC,ABD 1234 array .
symmask -sid 1234 -awwn Alias_Name -dir 4a -p 0 Unmask the devices ABC and ABD from given wwn_alias
remove devs ABC,ABD in 1234 arrray .
symmask -sid 1234 -wwn xxx1 replace xxx2 Replace wwn xxx1 with xxx2 in VCMDB
symmask -sid 1234 -wwn xxx rename Alias_Name Set an alias name to wwn xxx
symmask -sid 1234 -wwn xxx delete -logins Delete all the entries of wwn xxx from the VCMDB
symdg
List device groups which include the devices from array
symdg -sid 1234 list
1234.
symdg create mydg -type rdf1 Create device group mydg of rdf1 type .
www.rajeshvu.com
:: symcli commands
Create a file from a dg which can be used later to create
symdg -sid 1234 dg2file mydg -f dgfile.txt
another
symld
Add the RDF device ABC to device group mydg as
symld -g mydg -sid 1234 add dev ABC DEV006
DEV006
symld -g mydg remove DEV006 Remove DEV006 form device group mydg.
symrdf
symrdf -sid 1234 -rdfg 3 -file rdf.txt query Query the Devices by using device pair file.
symrdf -g mydg set mode acp_disk Set synching mode to Adaptive Copy.
symrdf -g mydg split Split the srdf pair for devices given in mydg.
symrdf -sid 1234 -rdfg 3 -file rdf.txt deletepair.txt Delete the srdf pairing between R1/R2 and return them
-force to standard.
symdisk
symdisk -sid 1234 list -hotspare List Hotspares configured in the array.
symdisk -sid 1234 list -by_diskgroup Displays all the disks in array by disk groups.
symdisk -sid 1234 list -diskg_roup 1 Displays all the disks in disk group 1.
symaccess
List all Initiator, Port and Storage Groups Created for
symaccess -sid 1234 list
Array 1234
symaccess -sid 1234 list -type storage List all Storage Groups Created for Array 1234
symaccess -sid 1234 list -type initiator List all Storage Groups Created for Array 1234
symaccess -sid 1234 list -type port List all Storage Groups Created for Array 1234
symaccess -sid 1234 list assignment -dev 9A0:9AF Shows the masking details of devices from 9A0 to 9AF
symaccess -sid 1234 list -name MyGroup List all groups named MyGroup
symaccess -sid 1234 list -name MyGroup -v List all groups named MyGroup and also shows the
www.rajeshvu.com
:: symcli commands
related Masking Views
symaccess -sid 1234 show MyStorageGroup -type Shows the contents of storage group MyStorageGroup
storage Created on Array 1234
symaccess -sid 1234 show MyInitiatorGroup -type Shows the contents of initiator group MyInitiatorGroup
initiator ceated on Array 1234
symaccess -sid 1234 -type initiator -name Host1 Creates and initiator group called Host1 by adding the
create -wwn 1000000000000001 specified wwn
symaccess -sid 1234 -type initiator -name Host1 add Add the specified wwn in to the existing initiator group
-wwn 1000000000000002 Host1
symaccess -sid 1234 -type storage -name Host1 Create the storage group Host1 with specified range of
create devs AAA:AAB devices
symaccess -sid 1234 -type storage -name Host1 add Create the storage group Host1 with specified range of
devs AAA:AAB devices
www.rajeshvu.com