Start a Conversation

This post is more than 5 years old

Solved!

Go to Solution

1788

May 11th, 2012 21:00

identify the host belonging to hba on symmetrix

Is there a way to identify a host belonging tohba on symmetrix arrays? What I see from symmaskdb list database is list of host HBA ports. So is there a way to identify the host to which the zoned hba belogs?

9 Legend

 • 

20.4K Posts

May 11th, 2012 21:00

some shops will assign meaningful names to the initiators, that you can see when you run

symmask list logins -sid 123 -dir ALL

if this shop does not do it you will need to look at your zoning and figure out if your WWN matches a particular zone or alias

42 Posts

May 11th, 2012 22:00

Thank You Dynamox.!! You saved the day for me .

No meaningful name assigned to the HBA WWPN . Need to check zone aliases.

1 Rookie

 • 

21 Posts

May 17th, 2012 12:00

I have a pair of scripts that help manage issues like this. 

The first one takes the output of symaccess list logins, and merges it with the output of symaccess list -type initiator.  The output shows the initiator group associated with each login instead of just showing the WWN.  It also makes note of hosts that are logged into a VMax FA port that are not part of an initiator group, which could be an indication of problems in your zoning.  And also makes note of initiators that are defined in an initiator group that are not logged in any where. This could be an indication of a problem that is keeping a path from logging in, or it could be that you need to do some clean up of unused initiator definitions.

http://www.the-welters.com/professional/scripts/emc-listlogins.txt

The next script approaches things from the SAN fabric point of view.  It merges the output of "switchshow" and "zoneshow" and puts the alias name for a given WWN next to the port in the switchshow output.  It also does cross checking where it will warn about hosts that are connected to the switch without having an alias, and also warn about aliases that are defined but are not logged in.

http://www.the-welters.com/professional/scripts/sw-alicheck.txt

1 Rookie

 • 

21 Posts

May 17th, 2012 13:00

Sorry, No cisco fabric switches at my site, so I won't be porting the sw-alicheck script.  :-)


But emc-listlogins doesn't care about the fabric switches, so it is still useful here.

9 Legend

 • 

20.4K Posts

May 17th, 2012 13:00

by the way that first link looks funny

1 Rookie

 • 

21 Posts

May 17th, 2012 13:00

Thanks, fixed the link.

9 Legend

 • 

20.4K Posts

May 17th, 2012 13:00

how about us Cisco users ?

79 Posts

May 24th, 2012 11:00

AndyWOhio:

I tried running the firlst script (I renamed the script to end with .pl also).

which I got @

http://www.the-welters.com/professional/scripts/emc-listlogins.txt

xsph10a062fn01(root):/home/nm93572/scripts:# ./symaccess_list_logins.pl
'-sid or -f ': Option is required in conjunction with the specified arguments.

File does not exist:  at ./symaccess_list_logins.pl line 99
xsph10a062fn01(root):/home/nm93572/scripts:# ./symaccess_list_logins.pl 123

'-sid or -f ': Option is required in conjunction with the specified arguments.

File does not exist:  at ./symaccess_list_logins.pl line 99

I get the above error. I am trying to run this from a HP-UX 11.31 Solutions Manager Host. Any input from your end would be most welcome.

-Regards,

KGD.

1 Rookie

 • 

21 Posts

May 24th, 2012 11:00

Kennedy,

The script assumes that you have the SYMCLI_SID environment variable set.  So that is where the first error message came from... then since the symaccess command failed, it didn't create the XML output, and that is where the "file does not exist" output came from.

Try setting SYMCLI_SID to the SID of the VMax that you want to run the report against.


But your error does show that I need to improve the documentation on it and add some error checking in case the symaccess commands fail so that they put out a better error message.

1 Rookie

 • 

21 Posts

May 24th, 2012 12:00

Kennedy,

Be my guest, the more users the better.  Feel free to post feedback.  I know how I use them... So I know they work for me.  But when other people use them in other environments, I get to learn how to improve them.


Andy

79 Posts

May 24th, 2012 12:00

Thanks a lot for your reply, Andy. I set the VARIABLE per your suggestion. The script works like a charm. Thanks a billion. You wouldn't mind if I check your other scripts on your web-page, correct?

No Events found!

Top