SNMP::Info::CiscoStats - Perl5 Interface to CPU and Memory stats for Cisco Devices
Max Baker (max@warped.org)
# Let SNMP::Info determine the correct subclass for you.
my $ciscostats = new SNMP::Info(
AutoSpecify => 1,
Debug => 1,
# These arguments are passed directly on to SNMP::Session
DestHost => 'myswitch',
Community => 'public',
Version => 2
)
or die "Can't connect to DestHost.\n";
my $class = $ciscostats->class(); print "SNMP::Info determined this device to fall under subclass : $class\n";
SNMP::Info::CiscoStats is a subclass of SNMP::Info that provides cpu, memory, os and version information about Cisco Devices.
Use or create in a subclass of SNMP::Info. Do not use directly.
none.
MIBs can be found at ftp://ftp.cisco.com/pub/mibs/v2/v2.tar.gz
cpu()ios_cpu() or cat_cpu(), whichever is available.
cpu_1min()ios_cpu_1min() or cat_cpu1min(), whichever is available.
cpu_5min()ios_cpu_5min() or cat_cpu5min(), whichever is available.
mem_total()mem_free() + mem_used()
os()description()
os_ver()description()
ios_cpu()1.3.6.1.4.1.9.2.1.56.0 = OLD-CISCO-CPU-MIB:avgBusyPer
ios_cpu_1min()1.3.6.1.4.1.9.2.1.57.0
ios_cpu_5min()1.3.6.1.4.1.9.2.1.58.0
cat_cpu()CISCO-PROCESS-MIB::cpmCPUTotal5sec.9
cat_cpu_1min()CISCO-PROCESS-MIB::cpmCPUTotal1min.9
cat_cpu_5min()CISCO-PROCESS-MIB::cpmCPUTotal5min.9
mem_free()CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolFree.1
mem_used()CISCO-MEMORY-POOL-MIB::ciscoMemoryPoolUsed.1
None.