[mrtg] Monitoring trunk info on brocades
Barton Wold
Barton.Wold at genmills.com
Mon Apr 21 21:08:33 CEST 2008
Thanks for the feedback. I'm new to MRTG and still have a bit of a learning curve. The output of the snmpwalk command is in hex, like:
bcsi.commDev.fibrechannel.fcSwitch.sw.swTrunk.swTrunkGrpTable.swTrunkGrpEntry.swTrunkGrpRx.1 : OCTET STRING- (hex): length = 8
0: 00 00 00 01 d1 ab 4c 8b -- -- -- -- -- -- -- -- ......L.........
bcsi.commDev.fibrechannel.fcSwitch.sw.swTrunk.swTrunkGrpTable.swTrunkGrpEntry.swTrunkGrpRx.2 : OCTET STRING- (hex): length = 8
0: 00 00 00 00 00 00 1f ec -- -- -- -- -- -- -- -- ................
I am thinking that I need to use the ConversionCode parameter and convert the hex input string into an integer. But I'm having a problem figuring this out. When I try to display the input string using a simple conversion code:
sub Hex2Dec {
my $hex = $_[0];
print "HEX: $hex\n";
}
The output of the mrtg command is:
HEX: ¨ú-
HEX: |Ð
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 at 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.austinenergy.com
More information about the mrtg
mailing list