[mrtg] Re: Graphs Cisco Catalyst 2900XL c2900BandwidthUsagePeakTable

Jerry Heidtke jheidtke at fmlh.edu
Wed Apr 2 16:35:47 MEST 2003


I wrote a script that is very similar to yours, and it seems to work
fine. A few small differences in how the script is called, and in
internal logic, but the end result is the same.

# c2900BandwidthUsagePeak for a Cisco 2900 switch
#
# Author: Jerry Heidtke
# Version : 1.0
#
# Usage: 
# [path]perl [path]c2900BandwidthUsage.pl community at host
#
# 1.0 Initial version
#-----------------------------------------------
# Import libraries
require 5.005;
use strict;
# location of mrtg libraries
use lib qw(d:\mrtg\lib\mrtg2);
use MRTG_lib "2.090006";
use SNMP_Session "0.77";
use BER "0.77";
use SNMP_util "0.77";

my $host = $ARGV[0];
my @c2900BandwidthUsageCurrent;
my @c2900BandwidthUsageCurrentPeakEntry;
my @c2900BandwidthUsagePeak;

@c2900BandwidthUsageCurrent = snmpget($host,
"enterprises.9.9.87.1.5.1.0");
print "@c2900BandwidthUsageCurrent[0]\n";

@c2900BandwidthUsageCurrentPeakEntry = snmpget($host,
"enterprises.9.9.87.1.5.5.0");
@c2900BandwidthUsagePeak = snmpget($host,
"enterprises.9.9.87.1.5.6.1.3. at c2900BandwidthUsageCurrentPeakEntry[0]");
print "@c2900BandwidthUsagePeak[0]\n";



-----Original Message-----
From: Michael Markstaller [mailto:mm at elabnet.de] 
Sent: Wednesday, April 02, 2003 2:11 AM
To: mrtg at list.ee.ethz.ch
Subject: [mrtg] Graphs Cisco Catalyst 2900XL
c2900BandwidthUsagePeakTable


I did a small script c2900Bandwidth.pl to graph the value from the
current c2900BandwidthUsagePeak in MBit/second determined by reading
c2900BandwidthUsageCurrentPeakEntry. I didn't managed to monitor this
another way, any hints are welcome..
It outputs c2900BandwidthUsageCurrent as first (in) value..
Michael Markstaller

Elaborated Networks GmbH 
www.elabnet.de 
Lise-Meitner-Str. 1, D-85662 Hohenbrunn, Germany 
fon: +49-8102-8951-60, fax: +49-8102-8951-80 

-- Attached file removed by Ecartis and put at URL below --
-- Type: application/octet-stream
-- Desc: c2900BandwithPeak.pl
-- Size: 2k (2910 bytes)
-- URL : http://www.ee.ethz.ch/~slist/pantomime/c2900BandwithPeak.pl


--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi


Confidentiality Notice: This e-mail message, including any attachments,
is for the sole use of the intended recipient(s) and may contain
confidential and privileged information.  Any unauthorized review, use,
disclosure or distribution is prohibited.  If you are not the intended
recipient, please contact the sender by reply e-mail and destroy all
copies of the original message.

--
Unsubscribe mailto:mrtg-request at list.ee.ethz.ch?subject=unsubscribe
Archive     http://www.ee.ethz.ch/~slist/mrtg
FAQ         http://faq.mrtg.org    Homepage     http://www.mrtg.org
WebAdmin    http://www.ee.ethz.ch/~slist/lsg2.cgi



More information about the mrtg mailing list