cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
476
Views
0
Helpful
2
Replies

SNMP query

Jonn cos
Level 4
Level 4

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

2 Replies 2

cmarva
Level 4
Level 4

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

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