Вы находитесь на странице: 1из 6

Quick References Symcli Commands

Cheatsheet of symcli commands..

Symcli - Know about the version, list of symcli commands ect..


symcli Displays the version of symapi. symcli -v Shows the version of symapi and total list of symcli commands with a short description. symcli -env The list of ennvironmental variable that can be set for a SYMCLI session. symcli -def List of currently defined environmental variables .

Symcfg - Discovers or displays Symmetrix configuration information.


symcfg discover Scans all the devices in hosts lookin for new symmetri! devices and rebuilds the symmetri!
confi uration database . symcfg list " brief description of the all connected Symmetri! bo!es.

symcfg -sid 1234 verify Check whether the SYM"#I database is in sync with the current confi uration of array
$%&'.

symcfg list -status Check the confi uartion and SYM"#I database status of all arrays. symcfg -db Shows the confi uration information about the current symapi database. symcfg -sid 1234 remove (emove the array $%&' from symcf list. symcfg -sid 1234 list -lockn all List all the e!ternal locks held in Symmetri! array $%&'. symcfg -sid 1234 -lockn 15 release -force (elease the lock $) held on array $%&' . symcfg -sid 1234 list -v Displays detailed information about the Symmetri! "rray $%&'. symcfg -sid 1234 list -dir all Displays the online status of all directors* +rontend,-ackend.. symcfg -sid 1234 list -sa all Displays the online status of all +ront/end directors. symcfg -sid 1234 list -da all Displays the online status of all -ack/end directors. symcfg -sid 1234 list -fa all Displays wwn of all front/end director ports. symcfg -sid 1234 list -fa all -port Displays online and connection status of all front/end director ports. symcfg -sid 1234 list -ra all List all (" ports with details like rdf number 0 remote array sid and online status. symcfg -sid 1234 -dir 4a -p 0 list -addr -avail List the L12 information 3 availability of lun ids on port 'a4
in array $%&' .

symcfg -sid 1234 list -rdfg all List details about all the rdf roups in array. symcfg -sid 1234 list -rdfg 3 List details about rdf roup & . symcfg -sid 1234 list -rdfg all -dynamic List details about all the dynamic rdf roups in array . symcfg -sid 1234 list -rdfg all -static List details about all the static rdf roups in array . symcfg -sid 1234 list memory shows the amount and details of memory confi ure in the array . symcfg -sid 1234 list -env_data Dispalys the information and status of array5s physical components like
powersupply units0+ans etc.

Symdev - Performs operations on a Symmetrix device name.


symdev -sid 1234 list List all devices in symmetri! $%&'. 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 dyn6rdf attribute set . symdev -sid 1234 list -emulation celerra List all celerra devices . symdev -sid 1234 list -emulation FB
List all +- devices .

symdev -sid 1234 list -!otspare Checks whether hotspare invoked in the array . symdev -sid 1234 list -inventory Lists the rouped list of various devices 0 like ("ID/)0%/7ay6Mirror0etc.. symdev -sid 1234 s!o" B# show the detailed information about device "-C.

symdev -sid 1234 list -range B#$ B% -v show the detailed information of devices "-C to "-8. symdev -sid 1234 list -range B#$ B% -multiport List the devices from "-C9"-8 with the mapped +"
information if they are assi ned to more than one +" port.

symdev -sid 1234 "rite_disable symdev -sid 1234 "rite_disable symdev -sid 1234 not_ready symdev -sid 1234 not_ready

B# -& B# -&

all 7rite disable the device "-C from throu h all directors. 3a -p 0 7rite disable the device "-C on +" port &a94.

B# -& B# -&

all 2ot ready the device "-C from throu h all directors. 3a -p 0 2ot ready the device "-C on +" port &a94.

Symmaskdb - Initialize bac

!up, restore and show the contents of the device mas ing "#$D%.

symmaskdb -sid 1234 -dev

B# list assign List the maskin details of the dev "-C .

symmaskdb -sid 1234 -""n ''''''' list devs List the devices masked to iven wwn number . symmaskdb -sid 1234 -a""n !ba_alias list devs List the devices masked to iven alias hba name .

Symmask - $as

or &nmas the symmetrix devices or list the wwn logins.

symmask list !ba List :-" details of the host. symmask -sid 1234 -dir 4a -p 0 list logins List out wwns lo ed throu h port 'a4 . symmask -sid 1234 list logins -""n ''' Check whether wwn !!! lo ed in to any of the +"s on array
$%&'.

symmask -sid 1234 delete -logins -""n ''' Delete the lo in history of wwn !!! from all +" lo ed ports. symmask -sid 1234 refres! (efresh the ;CM Data -ase after a maskin and unmaskin operation. symmask -sid 1234 -""n '''' -dir 4a -p 0 add devs B#( B) Mask the devices "-C and "-D to
iven wwn in $%&' arrray .

symmask -sid 1234 -""n '''' -dir 4a -p 0 remove devs B#( B) 1nmask the devices "-C and
"-D from iven wwn in $%&' arrray .

symmask -sid 1234 -""n '''' replace yyyy (eplace all occurance of wwn !!!! with yyyy in array $%&'.

Symdg - Performs various operations on Symmetrix Device 'roup li


e creation,deletion and importing.

symdg -sid 1234 list List device roups which include the devices from array $%&'. symdg create mydg -type rdf1 Create device roup myd of rdf$ type . symdg s!o" mydg Shows members3details of myd . symdg rename mydg yourdg (enames the myd to yourd . symdg -sid 1234 e'port mydg -f mydgfile*t't 8!port myd to file myd file.t!t. symdg -sid 1234 import mydg -f mydgfile*t't Create myd from the file myd file.t!t which created earlier
usin e!port option.

symdg -sid 1234 e'portall -f mydgfile*t't 8!port all device roups created in array $%&' to file
myd file.t!t.

symdg -sid 1234 importall -f mydgfile*t't Create all device roups from the file myd file.t!t which created
earlier usin e!portall option.

symdg -sid 1234 -g mydg move )%+002 yourdg Move the device D8;44& from myd to yourd * both
D<s must be in same (D+<.

symdg -sid 1234 -g mydg moveall yourdg Move all the devices from myd to yourd * both D<s must be
in same (D+<.

symdg delete mydg -force Delete device roup myd .

Symld -Performs operations on one or more S(D, %#", ('( or "D)" devices in a device group *D'+.
symld -g mydg -sid 1234 add dev
D8;44=

B# )%+00, "dd the (D+ device "-C to device roup myd as

symld -g mydg remove )%+00, (emove D8;44= form device roup myd .

Symrdf - Performs various S,D- operations symmetrix devices..lso performs dynamic ,D- group
controls/.dding,modifying or removing a dynamic ,D- group.

symrdf -sid 1234 -rdfg 3 -type rdf1 -file rdf*t't -g mydg createpair -establis! 8stablish the S(D+
relation between the devices iven in the file rdf.t!t from array $%&'*($. and remote bo! accordin to the rdf roup . This command start sync between ($ and (%0 and also add these devices after creatin the device roup myd . symrdf -sid 1234 -rdfg 3 -file rdf*t't -uery >uery the Devices by usin device pair file.

symrdf -g mydg set mode acp_disk Set synchin mode to "daptive Copy. symrdf -g mydg -uery >uery device roup. symrdf -g mydg split Split the srdf pair for devices iven in myd . symrdf -sid 1234 -rdfg 3 -file rdf*t't deletepair*t't -force Delete the srdf pairin between ($3(% and
return them to stanadard.

Syminq- S#SI Dis


and 0%. information on the local host.

symin- Lists all physical devices attached to local host. symin- !ba Shows the :-" details of the local host like :-" 2ame 0 772 etc.. symin- -mapinfo Lists all physical devices with tar et ports which are mapped.

Symdisk - Displays configuration and status of dis


s and their hypers within Symmetrix arrays.

symdisk -sid 1234 list List of total disks in the array. symdisk -sid 1234 s!o" 1 $#12 Shows the detailed information like speed and :Y#8(S of the disk $"9C$%. symdisk -sid 1234 s!o" 1 $#12 -gaps Shows the available space*<"#S. on the disk $"9C$%. symdisk -sid 1234 s!o" 1 $#12 -gaps_only Shows only the available space*<"#S. on the disk $"9C$%. symdisk -sid 1234 list -!otspare List :otspares confi ured in the array.

symdisk -sid 1234 list -v -spare_info Displays the details of all hotspare in the array. symdisk -sid 1234 list -by_diskgroup Displays all the disks in array by disk roups. symdisk -sid 1234 list -diskg_roup 1 Displays all the disks in disk roup $.

Symaccess - Specifically using for "max .llocation to do various operations on $as


'roups.

ing view and related

symaccess -sid 1234 list List all Initiator0#ort and Stora e <roups Created for "rray $%&' symaccess -sid 1234 list -v List all Initiator0#ort and Stora e <roups Created for "rray $%&' alon with related
Maskin ;iews

symaccess -sid 1234 list -type storage List all Stora e <roups Created for "rray $%&' symaccess -sid 1234 list -type initiator List all Initiator <roups Created for "rray $%&' symaccess -sid 1234 list -type port List all #ort <roups Created for "rray $%&' symaccess -sid 1234 list vie" List maskin views Created for "rray $%&' with related roups details symaccess -sid 1234 list assignment -dev . 0$. F Shows the maskin details of devices from ?"4 to
?"+

symaccess -sid 1234 -""n '''' replace -ne"_""n yyyy (eplace all occurance of wwn !!!! with
yyyy in array $%&'

symaccess -sid 1234 list logins -""n '''' Check whether wwn !!! lo ed in to any of the +"s on array
$%&'.

symaccess -sid 1234 list -type initiator -""n '''' Check whether the :-" 772 !!!! is a member of
any Initiator <roup.

symaccess -sid 1234 list -type storage -dev


any Initiator <roup.

Check whether the :-" 772 !!!! is a member of

symaccess -sid 1234 list no_assignments -dirport 12f$1 Shows the devices are mapped to $%f9$ but
not masked.

symaccess -sid 1234 list -name /y0roup List all roups named My<roup symaccess -sid 1234 list -name /y0roup -v List all roups named My<roup and also shows the related
Maskin ;iews

symaccess -sid 1234 list devinfo -ig /y1nitiator List the details of devices assi ned to the initiator roup
MyInitiator

symaccess -sid 1234 s!o" /y&torage0roup -type storage Shows the contents of stora e roup
MyStora e<roup Created on "rray $%&'

symaccess -sid 1234 s!o" /y1nitiator0roup -type initiator Shows the contents of initiator roup
MyInitiator<roup Created on "rray $%&'

symaccess -sid 1234 s!o" /y2ort0roup -type port Shows the contents of port roup My#ort<roup
Createdon "rray $%&'

symaccess -sid 1234 s!o" vie" /y+ie" Shows the contents of view My;iew Created on "rray $%&' symaccess -sid 1234 -f /yBackup*t't backup Creates a file My-ackup containin all the roup and view
information currently on the Symmetri! array $%&'

symaccess -sid 1234 -f /yBackup*t't restore (estores all the roup0 view and security information from
the specified backupup file

symaccess -sid 1234 -type initiator -name 3ost1 create -""n 1000000000000001 Creates and
initiator roup called :ost$ by addin the specified wwn

symaccess -sid 1234 -type initiator -name 3ost1 rename -ne"_name 3ost2 (ename the Initiator
<orup :ost$ as :ost%

symaccess -sid 1234 -type port -name 3%0_4%0_13%0_14%0 -dirport 3e$0(4e$0(13e$0(10e$0 create Create the port roup 846'846$&846$'84 with specified ports symaccess -sid 1234 -type port -name 3%0_4%0_13%0_14%0 rename -ne"_name 3%1_4%1_13%1_14%1 (ename the #ort <orup &846'846$&846$'84 as &8$6'8$6$&8$6$'8$ symaccess -sid 1234 -type storage -name 3ost1 create devs
:ost$ with specified ran e of devices

$ $

B Create the stora e roup B Create the stora e roup $ $ B (emove the device B -unmap (emove the

symaccess -sid 1234 -type storage -name 3ost1 add devs


:ost$ with specified ran e of devices

symaccess -sid 1234 -type storage -name 3ost1 remove devs


""" to ""- from stora e roup :ost$

symaccess -sid 1234 -type storage -name 3ost1 remove devs


device """ to ""- from stora e roup :ost$ and also unmap from the +"s

symaccess -sid 1234 -type storage -name 3ost1 rename -ne"_name 3ost2 (ename the Stora e
<orup :ost$ as :ost%

symaccess -sid 1234 create vie" -name 3ost1_ llocation -sg 3ost1 -pg 3%0_4%0_13%0_14%0 -ig 3ost1 Create a maskin view combined with specified roups symaccess -sid 1234 create vie" -name 3ost1_ llocation rename -ne"_name 3ost2_ llocation (ename name of view :ost$6"llocation as :ost%6"llocation symaccess -sid 1234 delete vie" -name 3ost1_ llocation Delete view :ost$6"llocation. symaccess -sid 1234 delete vie" -name 3ost1_ llocation -unmap Delete view :ost$6"llocation
and also unmap all the device in associated stora e roup.

Вам также может понравиться