Mark Cave-Ayland
2006-03-31 13:16:34 UTC
Hiya folks,
I'm currently trying to read some Tx/Rx counters from a fibre switch network
consisting of a mixture of Brocade Silkworm and Qlogic SANbox switches using
SNMP and the Fibre Alliance MIBS (FA-MIBS).
The problem I am currently coming up against is that according to the FA-MIB
specification, the Tx/Rx counters are returned as a 64-bit HexString encoded
counter, similar to as shown below:
[***@th2 ~]# snmpwalk -v 2c -c public brocade1 1.3.6.1.3.94.4.5.1.4
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.1 = Hex-STRING: 00 00 00 00 09 48 6F 11
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.2 = Hex-STRING: 00 00 00 00 00 00 01 16
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.3 = Hex-STRING: 00 00 00 00 00 86 47 18
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.4 = Hex-STRING: 00 00 00 00 00 CF 8A 59
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.5 = Hex-STRING: 00 00 00 00 EF 12 77 69
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.6 = Hex-STRING: 00 00 00 00 00 48 74 5E
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.7 = Hex-STRING: 00 00 00 00 01 1D 99 52
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.8 = Hex-STRING: 00 00 00 00 00 00 00 31
My problem at the moment is trying to get this information into OpenNMS
since I can't find a type that will correctly decode the HexString into a
64-bit integer (or double) that can be stored with RRDTool. Would I be right
in thinking that I need to create a new custom type (called something like
counter_hexstring64) in order to read in these values? Or has anyone else
managed to find a workaround for this?
Many thanks,
Mark.
------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT
T: +44 (0)1752 797131
F: +44 (0)1752 791023
http://www.webbased.co.uk
http://www.infomapper.com
http://www.swtc.co.uk
This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.
I'm currently trying to read some Tx/Rx counters from a fibre switch network
consisting of a mixture of Brocade Silkworm and Qlogic SANbox switches using
SNMP and the Fibre Alliance MIBS (FA-MIBS).
The problem I am currently coming up against is that according to the FA-MIB
specification, the Tx/Rx counters are returned as a 64-bit HexString encoded
counter, similar to as shown below:
[***@th2 ~]# snmpwalk -v 2c -c public brocade1 1.3.6.1.3.94.4.5.1.4
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.1 = Hex-STRING: 00 00 00 00 09 48 6F 11
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.2 = Hex-STRING: 00 00 00 00 00 00 01 16
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.3 = Hex-STRING: 00 00 00 00 00 86 47 18
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.4 = Hex-STRING: 00 00 00 00 00 CF 8A 59
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.5 = Hex-STRING: 00 00 00 00 EF 12 77 69
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.6 = Hex-STRING: 00 00 00 00 00 48 74 5E
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.7 = Hex-STRING: 00 00 00 00 01 1D 99 52
SNMPv2-SMI::experimental.94.4.5.1.4.16.0.0.96.105.192.13.255.0.0.0.0.0.0.0.0
.8 = Hex-STRING: 00 00 00 00 00 00 00 31
My problem at the moment is trying to get this information into OpenNMS
since I can't find a type that will correctly decode the HexString into a
64-bit integer (or double) that can be stored with RRDTool. Would I be right
in thinking that I need to create a new custom type (called something like
counter_hexstring64) in order to read in these values? Or has anyone else
managed to find a workaround for this?
Many thanks,
Mark.
------------------------
WebBased Ltd
17 Research Way
Plymouth
PL6 8BT
T: +44 (0)1752 797131
F: +44 (0)1752 791023
http://www.webbased.co.uk
http://www.infomapper.com
http://www.swtc.co.uk
This email and any attachments are confidential to the intended recipient
and may also be privileged. If you are not the intended recipient please
delete it from your system and notify the sender. You should not copy it or
use it for any purpose nor disclose or distribute its contents to any other
person.