[c-nsp] SNMP and Free/Total memory

Matlock, Kenneth L MatlockK at exempla.org
Sun Apr 20 20:46:22 EDT 2008


I've been working all day trying to figure this out.
 
I'm trying to get via snmp the free and used processor memory values of a 6506 via SNMP (same sort of things are happening on other chassis).
 
When getting the ciscoMemoryPoolUsed and ciscoMemoryPoolFree values, with the .1 index (to get the processor values), it's not reporting the correct information.
 
snmpwalk -v2c -c dummysnmpstring 170.188.x.x .1.3.6.1.4.1.9.9.48.1.1.1
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.1 = STRING: "Processor"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.2.2 = STRING: "I/O"
SNMPv2-SMI::enterprises.9.9.48.1.1.1.3.1 = INTEGER: 0
SNMPv2-SMI::enterprises.9.9.48.1.1.1.3.2 = INTEGER: 0
SNMPv2-SMI::enterprises.9.9.48.1.1.1.4.1 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.48.1.1.1.4.2 = INTEGER: 1
SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.1 = Gauge32: 95728704
SNMPv2-SMI::enterprises.9.9.48.1.1.1.5.2 = Gauge32: 4584928
SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.1 = Gauge32: 739672
SNMPv2-SMI::enterprises.9.9.48.1.1.1.6.2 = Gauge32: 28969504
SNMPv2-SMI::enterprises.9.9.48.1.1.1.7.1 = Gauge32: 396410528
SNMPv2-SMI::enterprises.9.9.48.1.1.1.7.2 = Gauge32: 28969464

The 95728704 value should be the used value, and 739672 should be the free value. But when I look at it from the command line, I get:
 
>sho mem
System Memory: 524288K total, 330728K used, 193560K free, 1000K kernel reserved
Lowest(b)    : 194682880

Neither of these values even come close to the snmp values. The version of code on the chassis is 12.2(18)SXF6 (Modular).  Is there something fundamental I'm missing (or other values I should be looking at. All I really want is to get via SNMP how much memory is in use, and free for the processor.
 
Ken Matlock
matlockk at exempla.org
Network Analyst
Exempla Healthcare
(303) 467-4671 
 
 


More information about the cisco-nsp mailing list