08-11-2014 03:26 AM
I'm trying to retrieve the port speed of a fibre channel port on an IBM 2005-B16 (rebadged Silkworm 200E) FC switch. I have the Brocade MIB Reference:
This has an entry for swFCPortSpeed with an OID of 22.214.171.124.4.1.15126.96.36.199.188.8.131.52.35. This should return "The desired baud rate for the port". There's a note in the reference doc though, which states:
"The baud rate can be 1 Gbit/sec, 2 Gbit/sec, autonegotiate, or 4 Gbit/sec or 8 Gbit/sec. 4 Gbit/sec is only applicable to the Brocade 4100, 4900, 7500, 7600, and 48000.8 Gbit/sec is only applicable to the Brocade DCX director."
When I retrieve this value on my switch, I get a value of 3 returned. The port queried is currently running at 2Gbps and I've also tried it on a port running at 4Gbps, which also returned a 3. This is obviously not correct, so I assume this OID isn't implemented on my switch.
Does anyone know of another way of retrieving the port speed via SNMP on this switch? I'd ideally like to return two values; the speed the port is capable of and the speed the port is currently running at.
Some other info which may help:
Switch: IBM 2005-B16 (re-badged Brocade Silkworm 200E)
OID: 184.108.40.206.4.1.15220.127.116.11.18.104.22.168.35.1 (to query port 0 on the switch)
A couple of neighbouring OIDs work fine, for example 22.214.171.124.4.1.15126.96.36.199.188.8.131.52.34.1 correctly returns the port's WWPN.
Any help much appreciated!
08-11-2014 05:42 AM
Thanks for your suggestion. OID 184.108.40.206.220.127.116.11.1.5 is ifSpeed. I've been looking at this one, but I can so far only get it to return "noSuchInstance". If I query ifNumber, it returns 21. This is a 16 port switch, so that 21 figure presumably also includes network interfaces and presumably serial interfaces too. I can't find anything that tells me how each port relates to the instance number, so I've tried querying ports 1-22, like this:
But I always get "noSuchInstance" returned. Do you have any idea what instance I need to be passing it to query the FC ports?
08-11-2014 05:54 AM
Just figured it out by using a MIB browser on my PC (I've been pulling the data out so far via a PERL script on a Linux box). Looks like FC port 0 is id 1073741824 (obvious really!?!), then the count goes up from there. Seems to work now :-)
Thanks for your help!