This is a discussion on Re: [mrtg] Monitoring trunk info on brocades within the MRTG forums, part of the Networking and Network Related category; Thanks for the feedback. I'm new to MRTG and still have a bit of a learnin= g curve. The ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
Thanks for the feedback. I'm new to MRTG and still have a bit of a learnin=
g curve. The output of the snmpwalk command is in hex, like: bcsi.commDev.fibrechannel.fcSwitch.sw.swTrunk.swTr unkGrpTable.swTrunkGrpEnt= ry.swTrunkGrpRx.1 : OCTET STRING- (hex): length =3D 8 0: 00 00 00 01 d1 ab 4c 8b -- -- -- -- -- -- -- -- ......L.......= ... bcsi.commDev.fibrechannel.fcSwitch.sw.swTrunk.swTr unkGrpTable.swTrunkGrpEnt= ry.swTrunkGrpRx.2 : OCTET STRING- (hex): length =3D 8 0: 00 00 00 00 00 00 1f ec -- -- -- -- -- -- -- -- ..............= ... I am thinking that I need to use the ConversionCode parameter and convert t= he hex input string into an integer. But I'm having a problem figuring thi= s out. When I try to display the input string using a simple conversion co= de: sub Hex2Dec { my $hex =3D $_[0]; print "HEX: $hex\n"; } The output of the mrtg command is: HEX: =A8=FA- HEX: |=D0 I obviously can't parse this. Not surprisingly, the output string using a = different OID that is working shows integer values in the output. So what = am I missing? Is there a parameter I need to pass to the mrtg.cfg file? -----Original Message----- From: Daniel J McDonald [mailto:dan.mcdonald@austinenergy.com] Sent: Thursday, April 17, 2008 4:23 PM To: Barton Wold Subject: Re: [mrtg] Monitoring trunk info on brocades On Thu, 2008-04-17 at 14:57 -0500, Barton Wold wrote: > I have recently setup snmp monitoring via MRTG to graph the read/write > I/O on my brocade 48k and 24k. However, now I would like to use the > SNMP OID for swTrunkGrpTx and swTrunkGrpRx so I can gather info on > trunk throughput. I get successful output from the snmpwalk command, > but MRTG fails with: > You probably need to append an instance. If it works with *snmpget*, then = it will work with mrtg. -- Daniel J McDonald, CCIE #2495, CISSP #78281, CNX Austin Energy http://www.a= ustinenergy.com _______________________________________________ mrtg mailing list mrtg@lists.oetiker.ch https://lists.oetiker.ch/cgi-bin/listinfo/mrtg |
![]() |
| Thread Tools | |
| Display Modes | |
|
|