Snmp for inventory !

Unanswered Question
Aug 21st, 2009
User Badges:

Hi all, i want to collect inventory for the router i am targeting ( i am writing a program so need some help ). What i want is what modules are installed in router, their name, their serial no. If possible but optional for now is router flash and DRAM also. Kindly tell me which snmp oid shall i use. Plus also tell me the way by which i am able to search for my required oid, like in above case i dont know how to search cisco mib ?? i hope you understand my confusion, pls guide me

  • 1
  • 2
  • 3
  • 4
  • 5
Overall Rating: 0 (0 ratings)
Loading.
Joe Clarke Fri, 08/21/2009 - 06:40
User Badges:
  • Cisco Employee,
  • Hall of Fame,

    Founding Member

The answer to this question really depends on the device type and software version. Many devices today support the ENTITY-MIB for inventory. Within that MIB, the entPhysicalTable provides all of the necessary module details that you want (e.g. entPhysicalName, entPhysicalSerialNum, etc.). However, older versions of code may require you to use different MIBs such as the CISCO-STACK-MIB or OLD-CISCO-CHASSIS-MIB.


The same goes for memory and flash. In general, you will use the CISCO-MEMORY-POOL-MIB and CISCO-FLASH-MIB respectively. However, certain devices may require the CISCO-ENHANCED-MEMPOOL-MIB to properly get the available memory.


There are numerous MIB search tools out there. On Cisco.com, we have the SNMP Object Navigator at http://www.cisco.com/go/mibs/ . I wrote one at http://jaguar.ir.miami.edu/~marcus/snmptrans.html . There are also ones you can find simply by searching with Google.

Actions

This Discussion