Re: Monitoring Memory Utilization(%) on a router.

From: Sam Munzani (sam@munzani.com)
Date: Wed Feb 12 2003 - 12:38:48 GMT-3


Here is what TAC told me a while back when I had a TAC case opened for the same issue. His instructions are good and worked perfectly for me.

>>>>>> From Cisco TAC <<<<<<<<<
There are no objects (OIDs) that show the total physical DRAM installed.

You can calculate it like this.

snmpwalk <ipaddress> 1.3.6.1.4.1.9.9.48.1.1.1.2

cisco.ciscoMgmt.48.1.1.1.2.1 : OCTET STRING- (ascii): Processor

cisco.ciscoMgmt.48.1.1.1.2.2 : OCTET STRING- (ascii): I/O ---> get I/O OID

get "ciscoMemoryPoolUsed" , "ciscoMemoryPoolFree" for I/O and "processorRam"

snmpget <ipaddress> 1.3.6.1.4.1.9.9.48.1.1.1.5.2 1.3.6.1.4.1.9.9.48.1.1.1.6.2 1.3.6.1.4.1.9.3.6.6.0

cisco.ciscoMgmt.48.1.1.1.5.2 : Unsigned32: 1883152

cisco.ciscoMgmt.48.1.1.1.6.2 : Unsigned32: 23282672

cisco.temporary.6.6.0 : INTEGER: 75497472

1883152 + 23282672 = 25165824.00 ---> Total I/O + 75497472 (Processor) = 100663296.00 ---> Total Memory

SHOW VERSION MEMORY:

cisco 3640 (R4700) processor (revision 0x00) with 73728K/24576K bytes of memory.

24576 x 1024 = 25165824 ---> Total I/O

73728K x 1024 = 75497472.00 ---> Processor

Total Memory = 100663296.00

http://www.cisco.com/public/mibs/oid/CISCO-MEMORY-POOL-MIB.oid

http://www.cisco.com/public/mibs/v1/CISCO-MEMORY-POOL-MIB-V1SMI.my

"ciscoMemoryPoolTable" "1.3.6.1.4.1.9.9.48.1.1"

"ciscoMemoryPoolEntry" "1.3.6.1.4.1.9.9.48.1.1.1"

"ciscoMemoryPoolType" "1.3.6.1.4.1.9.9.48.1.1.1.1"

"ciscoMemoryPoolName" "1.3.6.1.4.1.9.9.48.1.1.1.2"

"ciscoMemoryPoolAlternate" "1.3.6.1.4.1.9.9.48.1.1.1.3"

"ciscoMemoryPoolValid" "1.3.6.1.4.1.9.9.48.1.1.1.4"

"ciscoMemoryPoolUsed" "1.3.6.1.4.1.9.9.48.1.1.1.5"

"ciscoMemoryPoolFree" "1.3.6.1.4.1.9.9.48.1.1.1.6"

http://www.cisco.com/public/mibs/oid/OLD-CISCO-CHASSIS-MIB.oid

http://www.cisco.com/public/mibs/v1/OLD-CISCO-CHASSIS-MIB.my

"processorRam" "1.3.6.1.4.1.9.3.6.6"

"nvRAMSize" "1.3.6.1.4.1.9.3.6.7"

"nvRAMUsed" "1.3.6.1.4.1.9.3.6.8"

*****************************************************

How to Get Free and Largest Block of Contiguous Memory Using SNMP

http://www.cisco.com/warp/customer/477/SNMP/index.html

Let me know if I can close the case.

Sam Munzani
CCIE # 6479(R&S, Security)

> Thanks Herve. That makes it clear....but how do i get the total amount of
> DRAM installed in the router via SNMP?? Which MIB and OID?
>
> Thanks
>
> Simon
>
>
> -----Original Message-----
> From: Herve Bruyere [mailto:hbruyere@cisco.com]
> Sent: Tuesday, February 11, 2003 4:48 PM
> To: simonkc@netsol.co.in
> Cc: ccielab@groupstudy.com
> Subject: Re: Monitoring Memory Utilization(%) on a router.
>
>
>
>
> simonkc@netsol.co.in wrote:
> > Hi,
> >
> > 1) i do a "show memory" on a cisco 26xx router. It shows me the Total
> > Processor Memory and Total IO memory.
> > When i add up these 2 values, why is it not equal to total amount of DRAM
> in
> > your router (as shown by sh ver)???
>
> Simply because Processor + I/O mem is not equal total DRAM.
>
> The IOS loaded in RAM and additional datas need also some space:
>
> muuma#sh ver | i with
> cisco 2611 (MPC860) processor (revision 0x202) with 28672K/4096K bytes of
> memory.
>
> muuma#sh mem
> Head Total(b) Used(b) Free(b) Lowest(b) Largest(b)
> Processor 80B7D5D0 17312304 2375180 14937124 14745720 14822080
> I/O 1C00000 4194304 1709592 2484712 2484712 2484668
>
> Below you can see that the total main memory + I/O fits the physical 32
> megs:
>
> muuma#sh region
> Region Manager:
>
> Start End Size(b) Class Media Name
> 0x01C00000 0x01FFFFFF 4194304 Iomem R/W iomem
> 0x60000000 0x60FFFFFF 16777216 Flash R/O flash
> 0x80000000 0x81BFFFFF 29360128 Local R/W main
> 0x80008088 0x807C18AB 8099876 IText R/O main:text
> 0x807C18AC 0x80A78F27 2848380 IData R/W main:data
> 0x80A78F28 0x80B7D5CF 1066664 IBss R/W main:bss
> 0x80B7D5D0 0x81BFFFFF 17312304 Local R/W main:heap
>
>
> Regards,
> Herve
>
>
>
>
>
> >
> > 2)Assuming the "sh memory" output does not give us the correct picture
> about
> > memory utilization, which MIBs and objects should we monitor to get the
> > memory utilization( as a %)of the router?
> > Or can we atleast get the "free memory" , "used memory" or "total memory"
> > via SNMP and using MIB expressions, we can compute the Memory utilization
> as
> > a %??What are the MIBs and objects to get this info?
> >
> > Cheers
> > Simon
> > .
> .
.



This archive was generated by hypermail 2.1.4 : Sat Mar 01 2003 - 11:06:19 GMT-3