Need an OID for fetching chassis type of router
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 09:06 AM
Hi ,
Please can anybody help me giving the OID to fetch the chassis type of a router.
I just want to use a single OID which can tell me which chassis it is like whether it is 3600 or 7200 etc.
I tried 1.3.6.1.4.1.9.3.6.1 but its giving me some number like 320 and then i need to check in database what this 320 stands for and then i get router chassis number but I want to run the OID which can directly give me chassis for router.
Thanks
- Labels:
-
Network Management
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 11:33 AM
Try .1.3.6.1.2.1.1.2 = sysObjectID which will return you the id for the device. You can then look up that id in the pdocuts mib for the model or use the CCO SNMP Translate tool to do the same.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 12:30 PM
Hi Rizwan,
Thanks for your quick reply.
I already tried that but the problem is I have more than 700 routers in my network and i am running a script which can get me the integer value but then I need to check for all the values which is very lengthy work.
If possible I am looking for some OID which can straight way fetch me the chassis number of my routers in my network.
Thanks
Ankur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 01:06 PM
There isn't a specific OID that will return the chassis number, without you having to translate that last OID number into the model/chassis number. CW2K will do this, provided you have the correct IDU.
If you have a script that is grabbing the device OID, simply put some logic in your script telling it if sysObjectID = somenumber, then return this actual chassis number.
Of course if you have 700 DIFFERENT router chassis, then this won't help.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 01:27 PM
Hi Steve,
Thanks for the reply.
I tried thw OID and I got the switch chassis number.
1.3.6.1.4.1.9.5.1.2.16.0 = WS-C6506
Is something like this is not applicable for routers.
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-20-2005 01:52 PM
This OID may help, but you'll have to parse the information out:
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1
It returns chassis and HW serial number for newer routers (7206, 3600, 2600).
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-24-2005 07:24 PM
Hi Steve,
Can you give me the full OID please? this seemd to be partial, i cant run this one.
Thanks
Ankur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 07:12 PM
Hi Steve,
Please can you check this OID as I am not able to run this seems to be incomplete.
SNMPv2-SMI::mib-2.47.1.1.1.1.2.1
Will be waiting.
Thanks
Ankur
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-26-2005 08:12 PM
Sorry Ankur, the "SNMPv2-SMI::mib-2" is the MIB for OID 1.3.6.1.2.1 here's the actual OID you'll need:
1.3.6.1.2.1.47.1.1.1.1.2
A better OID would be 1.3.6.1.2.1.47.1.1.1.1.13, but not all vendors populate this one.
You can read the descriptions for these here:
http://tools.cisco.com/Support/SNMP/do/BrowseOID.do?local=en
If you'd like to see what OIDs you can query you can run "snmpwalk -v 2c -c
-v can be 2c or 1 depending on your snmp version
-c is your RO SNMP community string
-w.x.y.z is the ip address of the device
> somefile dumps the output to a file so you can view it
HTH
