06-04-2013 11:54 PM - edited 03-07-2019 01:43 PM
Hi all,
I am thinking of writing a program that will query the router (and switch) for the following information
1) Model
2) Platform serial number
3) Any interface/modules connected and their serial numbers
4) RAM
I have 2 queries for this
1) Can i fetch above information through snmp ?
2) If yes, will the snmp oids will be different for different devices or same ?
I know there are free and commercial tools out there but i want to do it for my own educational purpose
06-05-2013 10:31 AM
I'm using perl scripts to do this, although I am not a coder, but here's how I'm doing it
model - use the sysoid and bounce against cisco-products-mib for platform
serial number - can be found in the entity-mib, although it might be elsewhere also
interfaces/modules - entity-mib, works on router platforms and cat 4500/6500 switches
ram - I don't have this scripted but I'd say look in the cisco-memory-mib.
hth, chris
06-05-2013 10:58 AM
Hi there,
The first answer is yes. A big yes I would say. Unfortunately the oids can change from vendor to vendor and between different (same vendor) boxes and even releases. If you are going to write a software like that I would really like to suggest you to gather all the ideas and requirements in this forum. It could be a complete software for a wider set of applications.
Hope this helps
Alessio
Sent from Cisco Technical Support iPad App
Discover and save your favorite ideas. Come back to expert answers, step-by-step guides, recent topics, and more.
New here? Get started with these tips. How to use Community New member guide