08-17-2011 04:56 AM
We have a big SAN environment consist of Brocade SAN switches which gets monitored through SNMP by HPOV tools. Most of the time we get alert of port offline / online but in the alert details it doesn't mention which port has went offline or become online.
From switch console also (GUI / CLI) in errdump or errshow I can't see for which port the status has changed.
Is there any command which can tell like on what port the status has changed?
It is happening with all FOS switches (5.x / 6.x)
Alert Message Below for example:
Severity: Critical Id: c6d6cc7f-c8b0-0a5e1f100000
State: Active Node: switchA
Owner: T23-S04\: -
Created: 17/08/2011 11:09:50 Group: STORAGE
First Received: 17/08/2011 11:09:50 Object: offline
Last Received: 17/08/2011 11:09:50 Application: SNMPTraps
Time of Last State Change: 17/08/2011 11:09:57
connUnitPortStatusChange unknown offline
08-17-2011 07:44 AM
this trap should include some more information like:
connUnitPortname, connUnitPortState and as well connUnitPortStatus.
I am not familar with HPOV but you have to investigate on your tool to extract the correct name.
If your portname is enty you will get an empty string of connUnitPortName. But if you check the last digit of the OID you can see which port was affected. But this has to be extracted by HPOV to provide any additional information.
If you need further information please let me know.
08-17-2011 11:20 PM
Thanks for the reply and I will definitely check with HPOV team to get more info. But just in-case HPOV tool doesn't help more then is there any other way or command from where I can check what port went offline and when?
Like in error message it should show that port went offline and what port number, but it doesn't show when I do "errdump" and "errshow"
08-18-2011 08:08 AM
A port offline or online is not an error at all.
The trap which HPOV received should contain these informations which you are looking for.
It contains the status and the portname but if you havn't set a propper portname than it gets difficult.
Remeber that the OID which HPOV received contains a number of a tabel. This number is equal to port index +1
08-19-2011 02:11 AM
Actually 'fabstateshow' (obsolete) or 'fabriclog -s' will show you which ports went off- and back online.
For instance this output shows port 8 going through LR (Link Reset) :
fabriclog --show :
Time Stamp Input and *Action S, P Sn,Pn Port Xid
23:55:32.573467 SCN Port Offline;g=0x6 A2,P0 A2,P0 8 NA
23:55:32.573484 *Removing all nodes from port A2,P0 A2,P0 8 NA
23:55:33.519102 SCN LR_PORT (0);g=0x6 A2,P0 A2,P0 8 NA
23:55:33.526069 SCN Port Online;g=0x6 A2,P0 A2,P1 8 NA
23:55:33.526248 Port Elp engaged A2,P1 A2,P0 8 NA
23:55:33.526281 SCN Port F_PORT A2,P1 A2,P0 8 NA
23:55:33.526299 *Removing all nodes from port A2,P0 A2,P0 8 NA
23:56:05.577050 SCN Port Offline;g=0x8 A2,P0 A2,P0 8 NA
23:56:05.577067 *Removing all nodes from port A2,P0 A2,P0 8 NA
From the supportShow command reference guide (attached, pretty old though, wondering if there's a newer version of it available) :
P, Pn -> current port state and next port state. Possible port states include:
• P0 – Port offline or in initial state
• P1 – Port online
• P2 – Send /receive ELP accept
• P3 – Receive active port state
• I0 - exchange trunk time stamp.
• I1 – Receive time stamp accept, then send trunk parameters
• I2 – Receive trunk parameter accept, transition to I3, and link reset port
• I3 – Wait for port active state.
• T0 – Receive trunk time stamp
• T1 – Receive trunk parameter.
• T2 – Send trunk parameter accept
• T3 – Wait for port active state.
• Port -> port number
• Xid -> exchange ID.