Fibre Channel (SAN)

Reply
Occasional Contributor
Posts: 6
Registered: ‎06-02-2016
Accepted Solution

SNMP OID ISL "swnbmyport" getting false number port

Hi All,

 

I monitoring ISL port with tools like Nagios. I used SNMP protocol to get some informations about ISL.

And it seems that a mistake to get good ISL number port.

 

With SNMP :

SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.1.1 = INTEGER: 1
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.1.2 = INTEGER: 2
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.2.1 = INTEGER: 9
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.2.2 = INTEGER: 10
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.3.1 = INTEGER: 6
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.3.2 = INTEGER: 6
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.4.1 = INTEGER: 9
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.4.2 = INTEGER: 10
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.5.1 = INTEGER: 128
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.5.2 = INTEGER: 128
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.6.1 = INTEGER: 5 => UP
SNMPv2-SMI::enterprises.1588.2.1.1.1.2.9.1.6.2 = INTEGER: 0 => Down

SNMP OID used :

swnbmyport / 1.3.6.1.4.1.1588.2.1.1.1.2.9.1.2 / This is the port that has an ISL to another switch.

swnbremport / 1.3.6.1.4.1.1588.2.1.1.1.2.9.1.4 / This is the port index on the other end of the ISL.

swnbislstate / 1.3.6.1.4.1.1588.2.1.1.1.2.9.1.6 / The current state of the ISL. The swNbIslState will be 0 when ISL is in incompatible state or port is a slave port. (sw-down(0) or sw-active(5)).

 

With CLI :

Switch1> islshow
  1:  8->  8 10:00:c4:f5:7c:05:4c:60   6 switch2 sp:  8.000G bw: 16.000G TRUNK QOS CR_RECOV

Switch1> trunkshow
  1:  8->  8 10:00:c4:f5:7c:05:4c:60   6 deskew 15 MASTER
      9->  9 10:00:c4:f5:7c:05:4c:60   6 deskew 17

Switch1> switchshow

Index Port Address Media Speed       State   Proto
==================================================
   0   0   080000   id    16G      Online      FC  F-Port  21:00:00:0e:1e:c3:6f:53
   1   1   080100   id    16G      Online      FC  F-Port  50:0a:09:81:03:82:fc:50
   2   2   080200   id    16G      Online      FC  F-Port  50:0a:09:83:03:82:fc:50
   3   3   080300   id    16G      No_Light    FC  Disabled (Persistent)
   4   4   080400   id    16G      No_Light    FC  Disabled (Persistent)
   5   5   080500   id    16G      No_Light    FC  Disabled (Persistent)
   6   6   080600   id    8G       Online      FC  F-Port  21:00:00:10:86:63:b3:e6
   7   7   080700   id    8G       Online      FC  F-Port  21:00:00:10:86:63:bd:96
   8   8   080800   id    8G       Online      FC  LS E-Port  10:00:c4:f5:7c:05:4c:60 "switch2" (upstream)(Trunk master)
   9   9   080900   id    8G       Online      FC  LS E-Port  (Trunk port, master is Port  8 )
  10  10   080a00   --    8G       No_Module   FC  Disabled (Persistent)
  11  11   080b00   id    8G       No_Light    FC  Disabled (Persistent)

 

Switch2> switchshow

Index Port Address Media Speed       State   Proto
==================================================
   0   0   060000   id    16G      Online      FC  F-Port  21:00:00:0e:1e:c3:70:71
   1   1   060100   id    16G      Online      FC  F-Port  50:0a:09:81:03:82:fb:d0
   2   2   060200   id    16G      Online      FC  F-Port  50:0a:09:83:03:82:fb:d0
   3   3   060300   id    8G       No_Light    FC  Disabled (Persistent)
   4   4   060400   id    8G       No_Light    FC  Disabled (Persistent)
   5   5   060500   id    8G       No_Light    FC  Disabled (Persistent)
   6   6   060600   id    8G       Online      FC  F-Port  21:00:00:10:86:63:be:ea
   7   7   060700   id    8G       Online      FC  F-Port  21:00:00:10:86:63:b4:40
   8   8   060800   id    8G       Online      FC  LS E-Port  10:00:c4:f5:7c:05:4d:80 "switch1" (downstream)(Trunk master)
   9   9   060900   id    8G       Online      FC  LS E-Port  (Trunk port, master is Port  8 )
  10  10   060a00   id    16G      No_Light    FC  Disabled (Persistent)
  11  11   060b00   id    16G      No_Light    FC  Disabled (Persistent)
 

As you can see, SNMP get ISL number port 9 & 10, and CLI get ISL number port 8 & 9.

I tried on different SAN switch Brocade, and I have same result with number shift by +1.

 

Is somebody have meet same problem ?

 

Information about switch :

Models : Brocade DCX 8510-4 and 6505 (IBM)

FOS v7.4.0a and v7.4.1b

 

Thanks.

Broadcom
Posts: 445
Registered: ‎03-29-2011

Re: SNMP OID ISL "swnbmyport" getting false number port

Hi Sophia,

 

per the documentation (MIB manual for FOS 7.4.0 see http://www.brocade.com/content/html/en/message-reference-guides/FOS_740_MIB/wwhelp/wwhimpl/js/html/wwhelp.htm) the value returned is the port index + 1. \It is not noted in the SW-MIB itself, though. A few of port entries in SW-MIB are showing port + 1, I suspect to avoid starting port from a zero value, when I scanned the documentation.

 

kind regards




If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution".


Any and all information provided by me is not reviewed, approved or endorsed by Brocade and is provided solely as a convenience for Brocade customers. All systems and all networks are different and unique. If you have a service affecting network problem, please open a TAC service request for service through Brocade, or through your OEM equipment provider. If this provided you with a solution to this issue, please mark it with the button at the bottom "Accept as solution"
Occasional Contributor
Posts: 6
Registered: ‎06-02-2016

Re: SNMP OID ISL "swnbmyport" getting false number port

[ Edited ]

Thanks for feedback.

 

I saw that :

 

For OID "swtrunkportindex 1.3.6.1.4.1.1588.2.1.1.1.24.2.1.1" in mib SW-MIB

"This object identifies the switch port index. Note that the value of a port index is 1 higher than the port number labeled on the front panel. e.g. port index 1 correspond to port number 0."

 

So, I should adapt my monitoring, and I should susbtract 1 for ISL port.

 

I think, best way is Brocade adapt value when we get ISL OID. Is it possible to do ?

Join the Community

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

vADC is now Pulse Secure
Download FREE NVMe eBook