Using symmask for multiple devices to multiple wwpns
I am trying to use symmask to mask multiple devices to 30 wwpns that reside on 2 FA sets 4aa/13aa, 4bb/13bb.
I'm new to SE so my commands are pretty basic and am having a difficult time masking to multiple wwns, FAs and devices. I could do this one line at a time but was hoping someone has a shortcut they could share.
while this definitely works, looping through every single device is so inefficient, i would rather have all devices in a file and just loop through the list of WWNs.
I know that this is already answered but thought I would kick in my 2 cents here, There are a couple of shortcuts to this.
First off if you haven't tried the masking wizard from Symmetrix management console it really is the business, not just for VMAX for DMX too, just a few clicks and you're done here. The wizard will actually do the mapping too for you if the devices aren't already mapped. Worth looking at if you are not already using it.
Another shortcut for this from the command line would be to set up host aliases.. There is a little bit of setup to this first time you do it but the result is worth the effort.
Once you have set these up with the commands below alias is separated by / to form Node Name followed by Port Name
"The wizard will actually do the mapping too for you if the devices aren't already mapped. Worth looking at if you are not already using it.".. DMX traditionally has to go through both mapping and masking. Are you saying by using SMC the wizard will take care of mapping as well as masking together? So by using SMC the provisioning on both DMX and VMAX happens similarly(not much diff)? can there be masking view concept for DMAX when SMC is used?
dynamox
11 Legend
•
20419 Posts
•
87439 Points
811
0
Posted February 17th, 2011 13:00
i don't think you can get away from specifying each FA and WWN but you can put devices in a device group or a file and mask it that way, for example:
symmask -sid 123 -wwn 1111111111111111 -dir 7a -p 0 add -g -nop
or
symmask -sid 123 -wwn 1111111111111111-dir 7a-p 0 add -f yourdevices.txt -nop
where device file looks like this:
0BAD 0
002F 0
1361 0