anyone succesful in displaying free memory on cisco 7200??

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

recombinator
Posts: 22
Joined: Fri Jan 17, 2003 1:24 am

anyone succesful in displaying free memory on cisco 7200??

Post by recombinator »

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.......
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

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
recombinator
Posts: 22
Joined: Fri Jan 17, 2003 1:24 am

Post by recombinator »

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. :(
recombinator
Posts: 22
Joined: Fri Jan 17, 2003 1:24 am

Post by recombinator »

Should the Max value be something like 160000000???
and turn bytes into bits??......could that help??
recombinator
Posts: 22
Joined: Fri Jan 17, 2003 1:24 am

Post by recombinator »

Got it working now dude....thx.
Indeed it was my fault with the max value........once i adapted that to the value i got from an snmpwalk....everything worked fine.
I now have free and used memory in one graph.
:D :D
edmcguigan
Posts: 8
Joined: Thu Jan 23, 2003 12:18 pm

Which MIB does the OID come from? What kind of Memory?

Post by edmcguigan »

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
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."
The MIB that is being used for the 7200 is presumably different.
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
edmcguigan
Posts: 8
Joined: Thu Jan 23, 2003 12:18 pm

Looks like the MIB is an SNMP V1 MIB - OLD-CISCO-MEMORY-MIB

Post by edmcguigan »

Of course I was looking in the Version 2 MIBs.

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
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.
Ed McGuigan
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

I use two objects from the MIB you mentioned to track router memory:
  • "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"
They return values you can see by using IOS command "sh mem". On the graph I draw memory used as an "area" and then memory free as "stacked". This gives me total memory visible on the graph as well.

These objects are quite universal - they work for me on any routers from 1700 up to 7200.

- bulek
edmcguigan
Posts: 8
Joined: Thu Jan 23, 2003 12:18 pm

CDEFs to get percentage memory usage

Post by edmcguigan »

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:

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.
Shows that there is 155648K available.
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* 
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?
Ed McGuigan
edmcguigan
Posts: 8
Joined: Thu Jan 23, 2003 12:18 pm

Thanks Bulek

Post by edmcguigan »

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 )
Ed McGuigan
edmcguigan
Posts: 8
Joined: Thu Jan 23, 2003 12:18 pm

What about multiple routers on a single graph

Post by edmcguigan »

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?
Ed McGuigan
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

I would say external script is the best you can do. Handling CDEF is not the strongest point of cacti... you can't make too flexible CDEF functions with web interface without quite a lot of admin efforts.

- bulek
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Re: Thanks Bulek

Post by TFC »

edmcguigan 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 )
Try ciscoMemoryPoolUsed" ".1.3.6.1.4.1.9.9.48.1.1.1.5.1
I control this value ın HP open view and its snmp mib browser. It works
User avatar
bulek
Cacti Pro User
Posts: 854
Joined: Mon May 20, 2002 2:07 am
Location: Poland
Contact:

Post by bulek »

This is incorrect... proper OID for ciscoMemoryPoolUsed is ".1.3.6.1.4.1.9.9.48.1.1.1.5" (without ".1" at the end).

- bulek
User avatar
TFC
Cacti Pro User
Posts: 739
Joined: Wed Apr 09, 2003 2:17 am
Location: Izmir/Turkey

Post by TFC »

1 assigns to DRAM
Post Reply

Who is online

Users browsing this forum: No registered users and 5 guests