Cisco Support Community
cancel
Showing results for 
Search instead for 
Did you mean: 
Announcements

Welcome to Cisco Support Community. We would love to have your feedback.

For an introduction to the new site, click here. And see here for current known issues.

New Member

SNMP poll for free memory as a percentage

I'm trying to poll a device for the amount of free memory as a percentage of total memory. I am able to poll the device for the amount of free memory in bits currently. Is there a different OID that can be retrieved to report free memory as a percentage of total memory? Ideally, I'd like to set a threshold percentage to have the router/switch trap to my management station if memory usage goes above a certain percentage for a certain interval. Much like the

"process cpu threshold" configuration, but for memory as opposed to cpu utilization. Any help would be appreciated.

Thanks in advance.

1 REPLY
Cisco Employee

Re: SNMP poll for free memory as a percentage

The best way of doing this is to use the CISCO-MEMORY-POOL-MIB to poll the ciscoMemoryPoolUsed + ciscoMemoryPoolFree to get total, then divide that into ciscoMemoryPoolFree and multiply by 100.

However, if you're trying to setup notifications on free memory, have a look at the "memory" commands (see http://www.cisco.com/en/US/products/ps6350/products_configuration_guide_chapter09186a0080455977.html) as well as the Embedded Resource Manager (see http://www.cisco.com/en/US/products/ps6441/products_configuration_guide_chapter09186a00804559ae.html).

There is also the EXPRESSION-MIB and EVENT-MIB that allow you to setup customized events, even using calculations, via SNMP (see http://www.cisco.com/en/US/tech/tk648/tk362/technologies_configuration_example09186a008023267a.shtml).

1484
Views
4
Helpful
1
Replies