[c-nsp] Monitoring CPU of Sup and MSFC on Native IOS

Sam Stickland sam_ml at spacething.org
Wed Dec 1 12:27:58 EST 2004


Hi,

I graph using 1.3.6.1.4.1.9.2.1.57.0&1.3.6.1.4.1.9.2.1.58.0 (MRTG style) 
for the 1min and 5min averages for the MFSC (graphing 1 and 5 min averages 
helps to show 'peaky' CPU usage).

Unfortunately I don't think there's yet a version of IOS that exposes the 
Sup CPU under SNMP. You can get around this using a bit of scriping. For 
example this script works with RANCID:

#!/usr/bin/perl -w

use strict;

my $output = `/usr/local/rancid/bin/clogin -c "remote command switch sh 
proc cpu" 80.253.114.9 | grep "utilization"`;
$output =~ m/.*: (\w+)%\/(\w+)%;.*\: (\w+)%;.*: (\w+)%/;
print "$3\n";
print "$4\n";
print "Unknown\n";
print "Supervisor2 CPU Utilitization\n";

And then you can setup an MRTG target like so:

Target[x.y.z.w_sup_cpu]: `/home/mrtg/scripts/sup_cpu.pl`

Sam

On Wed, 1 Dec 2004, Sam Munzani wrote:

> Hi,
>
> I need to graph CPU utilization of Sup and MSFC on Native IOS(12.2.17d.SXB5). 
> Does anybody know the OID? I am polling
>
> snmpwalk nodename public .1.3.6.1.4.1.9.2.1.58
> enterprises.9.2.1.58.0 = 1
>
> I am using Sup2/MSFC2 on most of devices. Somewhere I use Sup720/MSFC3.
>
> Thanks,
> Sam
> _______________________________________________
> cisco-nsp mailing list  cisco-nsp at puck.nether.net
> https://puck.nether.net/mailman/listinfo/cisco-nsp
> archive at http://puck.nether.net/pipermail/cisco-nsp/
>


More information about the cisco-nsp mailing list