Summary of the most commonly used symaccess commands with examples.
- symaccess -sid 1313 list – List all Initiator,Port and Storage Groups Created for Array 1313
- symaccess -sid 1313 list -v – List all Initiator,Port and Storage Groups Created for Array 1313 along with related Masking Views
- symaccess -sid 1313 list -type storage – List all Storage Groups Created for Array 1313
- symaccess -sid 1313 list -type initiator – List all Initiator Groups Created for Array 1313
- symaccess -sid 1313 list -type port – List all Port Groups Created for Array 1313
- symaccess -sid 1313 list view – List masking views Created for Array 1313 with related groups details
- symaccess -sid 1313 list assignment -dev 9A0:9AF – Shows the masking details of devices from 9A0 to 9AF
- symaccess -sid 1313 list no_assignments -dirport 12f:1 – Shows the devices are mapped to 12f:1 but not masked.
- symaccess -sid 1313 list -name MyGroup – List all groups named MyGroup
- symaccess -sid 1313 list -name MyGroup -v – List all groups named MyGroup and also shows the related Masking Views
- symaccess -sid 1313 list devinfo -ig MyInitiator – List the details of devices assigned to the initiatorgroup MyInitiator
- symaccess -sid 1313 show MyStorageGroup -type storage – Shows the contents of storage group MyStorageGroup Created on Array 1313
- symaccess -sid 1313 show MyInitiatorGroup -type initiator – Shows the contents of initiator group MyInitiatorGroup Created on Array 1313
- symaccess -sid 1313 show MyPortGroup -type port – Shows the contents of port group MyPortGroup Createdon Array 1313
- symaccess -sid 1313 show view MyView – Shows the contents of view MyView Created on Array 1313
- symaccess -sid 1313 -f MyBackup.txt backup – Creates a file MyBackup containing all the group and view information currently on the Symmetrix array 1313
- symaccess -sid 1313 -f MyBackup.txt restore – Restores all the group, view and security information from the specified backupup file
- symaccess -sid 1313 -type initiator -name Host1 create -wwn 1000000000000001 – Creates and initiator group called Host1 by adding the specified wwn
- symaccess -sid 1313 -type initiator -name Host1 add -wwn 1000000000000002 – Add the specified wwn in to the existing initiator group Host1
- symaccess -sid 1313 -type port -name 3E0_4E0_13E0_14E0 -dirport 3e:0,4e:0,13e:0,10e:0 create – Create the portgroup E0_4E0_13E0_14E0 with specified ports
- symaccess -sid 1313 -type storage -name Host1 create devs AAA:AAB – Create the storage group Host1 with specified range of devices
- symaccess -sid 1313 -type storage -name Host1 add devs AAA:AAB – Create the storage group Host1 with specified range of devices
- symaccess -sid 1313 create view -name Host1_Allocation -sg Host1 -pg 3E0_4E0_13E0_14E0 -ig Host1 – Create a masking view combined with specified groups
Tags: EMC, Symaccess, Symmetrix, VMax
1. Create the devices
create dev count=2, size=18414, data_member_count=3, config=RAID-5, disk_group=3, emulation=fba, dynamic_capability=dyn_rdf;
2. Create Initiator Group
symaccess -sid 1313 -type initiator -name Host1 create -wwn 1000000000000001
symaccess -sid 1313 -type initiator -name Host1 add -wwn 1000000000000002
3. Create Port Group
symaccess -sid 1313 -type port -name 3E0_4E0_13E0_14E0 -dirport 3e:0,4e:0,13e:0,10e:0 create
4. Create Storage Group
symaccess -sid 1313 -type storage -name Host1 create devs AAA:AAB
5. Create Masking View
symaccess -sid 1313 create view -name Host1_Allocation -sg Host1 -pg 3E0_4E0_13E0_14E0 -ig Host1
Tags: SAN, Symaccess, VMax