Fibre Channel (SAN)

Reply
Occasional Contributor
Posts: 12
Registered: ‎08-17-2011

How to identify which port failed or went offline by looking at events?

Hi Experts

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

Message Text:

connUnitPortStatusChange unknown offline

===================================================

Thanks,

BK

Super Contributor
Posts: 635
Registered: ‎04-12-2010

Re: How to identify which port failed or went offline by looking at events?

Hi BK,

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.

Regards,

Andreas

Occasional Contributor
Posts: 12
Registered: ‎08-17-2011

Re: How to identify which port failed or went offline by looking at events?

Hi Andreas,

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"

Thanks,

BK

Super Contributor
Posts: 635
Registered: ‎04-12-2010

Re: How to identify which port failed or went offline by looking at events?

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

Andreas

Frequent Contributor
Posts: 76
Registered: ‎04-17-2010

Re: How to identify which port failed or went offline by looking at events?

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) :

--snip--

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.

--snip--

Occasional Contributor
Posts: 12
Registered: ‎08-17-2011

Re: How to identify which port failed or went offline by looking at events?

Thanks Christophe.

Commands you provided solved my purpose.

Thanks to you also Andreas.

Join the Community

Get quick and easy access to valuable resource designed to help you manage your Brocade Network.