Unsolved

This post is more than 5 years old

9 Posts

19764

January 7th, 2010 09:00

Monitoring HBA card connection status from Windows Box

Hi,

Though I am not a Storage guy but I need some information on the same. There is a requirement to monitor the status of the HBA cards (alive or dead) from the Windows servers which are connected to the SAN.  We have Symmetrix DMX 3 SAN in our environment. The Physical (Windows) server has two HBA cards and are connected to the storage box.

Currently we  monitor the HBA card connection status through EMC Powerpath Console. As we have a large number of servers so sometimes it becomes laborious and time consuming.

Recently I found that we can do the same through command line using "powermt display" command. Now the output of this command is littile confusing for me. How do we come to know from the output this command if a HBA card connection is dead or alive.

I came to know form one of my colleague that there is tool called EMC Control Center through which we can accomplish the same easily. But for time being it is not possible for some obvious reasons.

Please suggest if you have any suggestion to accomplish the above with minimum effort.

Thanks,

Regards

Kunal Bhadra

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

January 7th, 2010 10:00

this will trigger alerts (based on how you parse its output) for LUNs that have been reclaimed and if "powermt check" has not been run to clean up dead devices. Dead devices does not necessarily mean dead HBA. My 2 cents.

45 Posts

January 7th, 2010 10:00

If you do a powermt display dev=all it will show you whether or not your paths are dead or alive.

Pseudo name=harddisk14
Symmetrix ID=0000000000
Logical device ID=0264
state=alive; policy=SymmOpt; priority=0; queued-IOs=1
==============================================================================
---------------- Host ---------------   - Stor -   -- I/O Path -  -- Stats ---
### HW Path                 I/O Paths    Interf.   Mode    State  Q-IOs Errors
==============================================================================
   2 port2\path0\tgt3\lun39    c2t3d39   FA  4aB   active  alive      1      0
   5 port5\path0\tgt3\lun39    c5t3d39   FA 13aB   active  alive      0      0

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

January 7th, 2010 10:00

Kunal,

this works with Emulex HBAs, don't have any Qlogic at the moment.  Download fcinfo utility from Microsoft

http://www.microsoft.com/downloads/details.aspx?FamilyID=73d7b879-55b2-4629-8734-b0698096d3b1&displaylang=en#filelist

Now run "fcinfo /ports" , ouput will looke similar to this. At this point you can scrub output from the "State" column with perl/vbscript ..whatever you like.


C:\>fcinfo /ports


                     com.emulex-LP9002-0, num: 3
-----------------------------------------------------------------------------
|  Type     State   Speed             WWN                     PortWWN       |
-----------------------------------------------------------------------------
   N_Port,   online,  2gbs,  20:00:00:00:c9:42:30:79,  10:00:00:00:c9:42:30:79
    Other,   online,  unkn,  10:00:08:00:88:a0:0e:97,  20:00:08:00:88:a0:0e:97
  NL_Port,   online,  unkn,  50:06:04:82:d5:30:f1:a3,  50:06:04:82:d5:30:f1:a3


                     com.emulex-LP9002-1, num: 4
-----------------------------------------------------------------------------
|  Type     State   Speed             WWN                     PortWWN       |
-----------------------------------------------------------------------------
   N_Port,   online,  2gbs,  20:00:00:00:c9:42:33:e2,  10:00:00:00:c9:42:33:e2
    Other,   online,  unkn,  10:00:08:00:88:e3:48:27,  20:00:08:00:88:e3:48:27
  NL_Port,   online,  unkn,  50:06:04:84:52:a5:4e:08,  50:06:04:84:52:a5:4e:08
  NL_Port,   online,  unkn,  50:06:04:82:cc:05:8c:b9,  50:06:04:82:cc:05:8c:b9

45 Posts

January 7th, 2010 11:00

Sounded like he wanted to know from looking at powermt which is why I replied as I did.  I might do it with symcli:

C:>symmask -wwn xxxxxxxxx list logins:

Symmetrix ID            : XXXXXXXXXXX

Director Identification : FA-4B
Director Port           : 0

                            User-generated                                     Logged  On
Identifier       Type  Node Name        Port Name        FCID   In           Fabric
----------------    -----    --------------------------------- ------ -                -----       ------
XXXXXXXXX Fibre    SERVERNAME      PORT1       6e0900  Yes      Yes

If logged in is 'No' the path is down.

9 Posts

January 8th, 2010 02:00

Hi SMW6181,

Thanks for your reply.

Whenever I run powermt display dev=all command it gives a huge output. It shows the status for all the LUNS.

9 Posts

January 8th, 2010 02:00

Hi Dynamox,

Thanks for your reply and sharing such a useful information. Does it generate any event in the event log. I am actually now more concerned to automate the same. My idea is to track the HBA card connection status through event log. Otherwise it is difficult to monitor every now and then. By the way we have Qlogic HBA card installed on the servers and also found that Qlogic SANsurfur FC Manager tool is installed on the server. Can we take any help from this tool to generate events.

Please let me know if you have suggestion.

11 Legend

 • 

20.4K Posts

 • 

87.4K Points

January 8th, 2010 04:00

not sure about logging to event viewer, sorry don't have a test box around at the moment.

45 Posts

January 8th, 2010 05:00

You can try this instead:

C:\Documents and Settings\sanmaint>powermt display
Symmetrix logical device count=12
CLARiiON logical device count=0
Invista logical device count=0
Generic logical device count=0
==============================================================================
----- Host Bus Adapters ---------  ------ I/O Paths -----  ------ Stats ------
### HW Path                        Summary   Total   Dead  IO/Sec Q-IOs Errors
==============================================================================
   2 port2\path0                   optimal      12      0       -     0      0
   5 port5\path0                   optimal      12      0       -     0      1

If all the I/O paths are dead for a path it's a fairly good indication that there's an issue with one of your connections.

The easiest way is probably the one Dynamox mentioned, or the one I mentioned about using symcli.

symmask -wwn XXXXXX list logins

6 Operator

 • 

2.1K Posts

January 13th, 2010 08:00

Have you considered monitoring from the switch side of things? That is assuming you have a switched environment of course. Do you have any switch management tools that would facilitate monitoring from that side of things?

9 Posts

January 13th, 2010 10:00

Hi Allen,

Thanks for your reply.

As I am not a storage guy so I do not have access to any switch management tools. May be storage admins have access to the switch management tool. But I need to monitor it from the windows box.

Thanks,

Regards

Kunal bhadra

No Events found!

Top