Sym Commands
Sym Commands
Now that the database has been updated, simply copy it to an offline location (e.g.
your laptop).
For Windows, the default SYMAPI DB path is C:\Program
Files\EMC\SYMAPI\db\symapi_db.bin.
For UNIX/Linux, you�ll most likely find it at /usr/emc/API/symapi/db/symapi_db.bin.
symcfg list -v
Detailed info on the arrays in the DB
symsg list
List storage groups (optional �v for verbose)
http://blog.scummins.com/?p=68
These examples commands are running against a VMAX with a symmetrix ID of 123
The basic syntax for running symconfigure updates using a command file called
command.txt is
Older symmetrix devices has 512 bytes in a block, new devices have 520 bytes in a
block.
The starting point is to find any unmapped devices using the command symdev list
-noport. If any of these devices are allocated as BCV pairs or defined to device
groups, then split them out using commands like this
symtier -sid 123 create -name TSDP1 -inc_type static -tgt_raid5 -tgt_prot 3+1
-technology SATA -dsk_grp 2
This command will create a flash disk tier in RAID1 format. -vp means this tier
will be allocated using virtual provisioning
symtier -sid 123 create -name TEFD1 -tgt_raid1 -technology EFD -vp
To add a disk group to an exisiting tier use the following command. This adds 'disk
group 3' to existing Storage Tier 'TSDP1'.
1'
symtier -sid 123 rename -tier_name TSDP1 -name Tier_qxy29p1
and finally, to delete a tier use this command.
symapierr
Returns a string with a detailed description of any return code generated by any
SYMAPI function
To return a string for error number 10, enter:
symapierr 10
The following will be output:
syminq -pdevfile
back to top
symsg -sid <serial> list -v' will display all storage groups and their member
devices.
Find out the failed director (front end FA and disk DA)
# symcfg -sid 1234 list -dir all => get the FA or DA number from here
# symcfg -sid 1234 list -fa 5g -v | egrep "Negotiated Speed (GB/Second)" => speed
should be a number
# symcfg -sid 1234 list -da 5d -v | egrep "Director Status"
List which applications (symcfg/stpdaemon etc) are running the commands against
given array
# symcfg �sid 1234 -application list
SYMMASK
=======
Set or clear visibility in masking database so that host should find all devices,
even if they are noncontiguous LUNs
# symmask set visibility
Set the record in the database to hold information on the host type that may differ
than the current setting on the corresponding FA
# symmask set heterogeneous
Discover the WWN or iSCSI names of the HBAs on the host and writes the ASCII names
to the login history table, if empty
# symmask discover hba
Display list of devices seen by WWN of given HBA for given host
# symmask list hba
# symmask list hba -v
Display WWNs logged into given FA port (displays the login history table contents)
# symmask -sid 1234 list logins (for the whole array)
# symmask -sid 1234 list logins -dir 3a -p 0 (on given port)
# symaccess �sid 1234 list logins �dirport 5e:0 (on VMAX)
Turn on the flag for different OSs (D for Solaris; C,SC3,OS2007,SPC2 for
Windows/VMWare, SPC2 for linux)
On DMX
# symmask -sid 1234 set hba_flags on D �enable -wwn 10000001234567 -dir 8C -p 1
(DMX)
# symmask �sid 1234 refresh
On VMAX
# symaccess �sid 1234 �type init show hostname_ig -detail
# symaccess -sid 1234 set hba_flags on C,SC3,OS2007,SPC2 -enable �wwn
100000000123456
# symaccess -sid 1234 set hba_flags on C,SC3,OS2007,SPC2 -enable �name hostname_ig
�type init
Globally on FA port
set port 1d:0 SCSI_3=enable,SPC2_Protocol_Version=enable,SCSI_Support1=enable;
SYMCONFIGURE
============
Create raid5 (7+1) thick device (when emulation mode is disabled number of
cylinders should be halved to achieve the same size)
# symconfigure -sid 1234 -cmd "create dev count=64, size=49604 cyl,
emulation=FBA, data_member_count=7, config=raid-5 disk_group=3;" prepare
# symconfigure -sid 1234 -cmd "create dev count=64, size=24802 cyl,
emulation=FBA, data_member_count=7, config=raid-5 disk_group=3;" prepare
Create new replicated tdevs on local and remote arrays, bind them to pool, srdf
pairing relationship between them
# symconfigure -sid 1234 -cmd "create dev count=64, size=24802, emulation=FBA,
config=RDF1+TDEV, dynamic_capability=dyn_rdf, remote_config=RDF2+TDEV, ra_group=1,
binding to pool=source_rep_pool, remote_pool=target_rep_pool;" prepare
SYMLMF
========
Display host based and array based licenses that apply to Symm array
# symlmf �sid 1234 list �type sym
Display the state and usage number for all activated licenses on Symm 1234
# symlmf �sid 1234 query �type emclm