anyone succesful in displaying free memory on cisco 7200??
Moderators: Developers, Moderators
-
- Posts: 22
- Joined: Fri Jan 17, 2003 1:24 am
anyone succesful in displaying free memory on cisco 7200??
I'm not getting a graph in cacti for reading out free memory on 7200...
I know i got the right oid, because we're using the same one with cricket on cisco 5800.
Anyone know if i need to make a special something in the graph settings??
Any help would be great.......
I know i got the right oid, because we're using the same one with cricket on cisco 5800.
Anyone know if i need to make a special something in the graph settings??
Any help would be great.......
Well... without any details from your side hard to say. I can succesfully poll free memory on 7200 router with the following OID: ".1.3.6.1.4.1.9.9.48.1.1.1.6". I don't have any special settings for graph displaying. Just be sure you have good min/max value settings in DS and type set to GAUGE.
- bulek
- bulek
-
- Posts: 22
- Joined: Fri Jan 17, 2003 1:24 am
i tried with oid .1.3.6.1.4.1.9.9.48.1.1.1.5 and didn't get any results.
I'm now trying with your oid and am still getting nothing. I tried with different min,max values is the DS settings. Min is now 0 and Max 160.
Memory inside the router is just over 160Mb.
This is just about the only one i can't get to work.....the memory. I got the temperature ok......the traffic on multiple interfaces.......but this is killing me.
I'm now trying with your oid and am still getting nothing. I tried with different min,max values is the DS settings. Min is now 0 and Max 160.
Memory inside the router is just over 160Mb.
This is just about the only one i can't get to work.....the memory. I got the temperature ok......the traffic on multiple interfaces.......but this is killing me.
-
- Posts: 22
- Joined: Fri Jan 17, 2003 1:24 am
-
- Posts: 22
- Joined: Fri Jan 17, 2003 1:24 am
-
- Posts: 8
- Joined: Thu Jan 23, 2003 12:18 pm
Which MIB does the OID come from? What kind of Memory?
You jolted me into setting up Memory monitoring on my 7200 routers.
I was scouring the Cisco MIBs and I can see an AS5800 specific MIB which refers to used and free memory
Can anyone tell me which MIB it is and give some more details on what the OID is actually providing information on?
There seems to be a partitioning of memory into IOS OS memory and packet buffer (as well as some other more esoteric types ).
I did a grep on the Cisco MIBs looking for lines with memory and (free or used ) and the most promising MIBs looked to be ones with MEMORY-POOL in the name. I'm going to take a look at the MEMORY-POOL MIBs but any informed pointers would be welcome.
I was scouring the Cisco MIBs and I can see an AS5800 specific MIB which refers to used and free memory
The MIB that is being used for the 7200 is presumably different.CISCO-5800-HEALTH-MON-MIB.my:-- o # of IOmem free (IO-mem ciscoMemoryPoolUsed from CISCO-MEMORY-POOL-MIB.my)
CISCO-5800-HEALTH-MON-MIB.my:-- o # of IOmem used (IO-mem ciscoMemoryPoolFree from CISCO-MEMORY-POOL-MIB.my)
CISCO-5800-HEALTH-MON-MIB.my: "The number of bytes of IO memory that are currently
CISCO-5800-HEALTH-MON-MIB.my: ciscoMemoryPoolUsed of io-mem type on the router shelf."
CISCO-5800-HEALTH-MON-MIB.my: "The number of bytes of IO memory that are currently
CISCO-5800-HEALTH-MON-MIB.my: ciscoMemoryPoolFree of io-mem type on the router shelf."
Can anyone tell me which MIB it is and give some more details on what the OID is actually providing information on?
There seems to be a partitioning of memory into IOS OS memory and packet buffer (as well as some other more esoteric types ).
I did a grep on the Cisco MIBs looking for lines with memory and (free or used ) and the most promising MIBs looked to be ones with MEMORY-POOL in the name. I'm going to take a look at the MEMORY-POOL MIBs but any informed pointers would be welcome.
Ed McGuigan
-
- Posts: 8
- Joined: Thu Jan 23, 2003 12:18 pm
Looks like the MIB is an SNMP V1 MIB - OLD-CISCO-MEMORY-MIB
Of course I was looking in the Version 2 MIBs.
Which is .1.3.6.4.1.9.2.1.8.0
The other stuff in the MIB looks too complex to graph in a useful way ( small, medium, large, big and huge buffers? )
So I guess what I need to do is set up a method of tracking memory USED as a percentage by hard coding the actual available memory into DS or a CDEF or something.
I'll post again once I've figured it out.
Code: Select all
org(3) type=0
dod(6) type=0
internet(1) type=0
directory(1) type=0
mgmt(2) type=0
mib-2(1) type=0
transmission(10) type=0
experimental(3) type=0
private(4) type=0
enterprises(1) type=0
cisco(9) type=0
ciscoProducts(1) type=0
local(2) type=0
lmem(1) type=0
freeMem(8) type=3
The other stuff in the MIB looks too complex to graph in a useful way ( small, medium, large, big and huge buffers? )
So I guess what I need to do is set up a method of tracking memory USED as a percentage by hard coding the actual available memory into DS or a CDEF or something.
I'll post again once I've figured it out.
Ed McGuigan
I use two objects from the MIB you mentioned to track router memory:
These objects are quite universal - they work for me on any routers from 1700 up to 7200.
- bulek
- "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"
These objects are quite universal - they work for me on any routers from 1700 up to 7200.
- bulek
-
- Posts: 8
- Joined: Thu Jan 23, 2003 12:18 pm
CDEFs to get percentage memory usage
1/ This memory amount relates to processor memory. Some of a router's RAM gets partitioned off for packet buffering.
The first thing to do is work out how much RAM is available for the processor. I am not 100% sure of how to do this. First I tried:
Shows that there is 155648K available.
Multiplying that by 1024 ( bytes is 1K ) gives : 159383552
However I also looked at:
The 113589640 agrees with what the SNMP OID gives me so maybe I should use the "Total" figure shown here of 123822208. This is what I decided to do.
I am going to need a CDEF for every different router memory amount so this one is going to be for a router with 160MB ( with 4MB reserved for buffers ).
The calculation is:
( (total_mem - free_mem) / total_mem) * 100
In RPN this is:
total_mem,free_mem,-,total_mem,/,100,*
or
123822208,free_mem,-,123822208,/,100,*
====================
My graph looks about right.
The downer is the need to have a CDEF for every router model / memory amount in my network.
Anyone else have some other ideas on this?
The first thing to do is work out how much RAM is available for the processor. I am not 100% sure of how to do this. First I tried:
Code: Select all
BR7206-1>sh ver
Cisco Internetwork Operating System Software
IOS (tm) 7200 Software (C7200-JX2-M), Version 12.2(7b), RELEASE SOFTWARE (fc1)
Copyright (c) 1986-2002 by cisco Systems, Inc.
Compiled Mon 04-Mar-02 21:54 by pwade
Image text-base: 0x600089C0, data-base: 0x614D8000
ROM: System Bootstrap, Version 12.0(19990210:195103) [12.0XE 105], DEVELOPMENT SOFTWARE
BR7206-1 uptime is 4 days, 17 hours, 42 minutes
System returned to ROM by power-on
System restarted at 01:31:00 UTC Sun Jan 19 2003
System image file is "slot0:c7200-jx2-mz.122-7b.bin"
cisco 7206VXR (NPE300) processor (revision B) with 155648K/40960K bytes of memory.
Multiplying that by 1024 ( bytes is 1K ) gives : 159383552
However I also looked at:
Code: Select all
BR7206-1#sh proc mem
Total: 123822208, Used: 10232568, Free: 113589640
PID TTY Allocated Freed Holding Getbufs Retbufs Process
0 0 101312 1848 8558248 0 0 *Init*
I am going to need a CDEF for every different router memory amount so this one is going to be for a router with 160MB ( with 4MB reserved for buffers ).
The calculation is:
( (total_mem - free_mem) / total_mem) * 100
In RPN this is:
total_mem,free_mem,-,total_mem,/,100,*
or
123822208,free_mem,-,123822208,/,100,*
====================
My graph looks about right.
The downer is the need to have a CDEF for every router model / memory amount in my network.
Anyone else have some other ideas on this?
Ed McGuigan
-
- Posts: 8
- Joined: Thu Jan 23, 2003 12:18 pm
Thanks Bulek
Much simpler than my way.
I couldn't get a response from the 7200 when I was trying the CISCO-MEMORY-POOL-MIB ( didn't have the right OIDs I guess )
I couldn't get a response from the 7200 when I was trying the CISCO-MEMORY-POOL-MIB ( didn't have the right OIDs I guess )
Ed McGuigan
-
- Posts: 8
- Joined: Thu Jan 23, 2003 12:18 pm
What about multiple routers on a single graph
Bulek:
I set up a graph with your area(used)/stack(free) approach and then I thought about the screen real estate issues of a separate graph per router.
If I wanted to graph several routers on a single graph showing just percentage usage rather than actual kbytes, is there a way to do it without resorting to an external script that fetches the two OIDs and does the calculation.
I guess combining data sources using custom CDEFs per router would work but become an admin nightmare.
Any one have other ideas before I start writing the script?
I set up a graph with your area(used)/stack(free) approach and then I thought about the screen real estate issues of a separate graph per router.
If I wanted to graph several routers on a single graph showing just percentage usage rather than actual kbytes, is there a way to do it without resorting to an external script that fetches the two OIDs and does the calculation.
I guess combining data sources using custom CDEFs per router would work but become an admin nightmare.
Any one have other ideas before I start writing the script?
Ed McGuigan
Re: Thanks Bulek
Try ciscoMemoryPoolUsed" ".1.3.6.1.4.1.9.9.48.1.1.1.5.1edmcguigan wrote:Much simpler than my way.
I couldn't get a response from the 7200 when I was trying the CISCO-MEMORY-POOL-MIB ( didn't have the right OIDs I guess )
I control this value ın HP open view and its snmp mib browser. It works
Who is online
Users browsing this forum: No registered users and 1 guest