11-07-2008 03:16 AM
Dear sir,
We are regular customer of cisco. We have a query about snmp devices.
we have cisco2621 which has system object id .1.3.6.1.4.1.9.1.209
By "snmp get" command to cisco2621 for sysObjectID .1.3.6.1.2.1.1.2.0, we get value .1.3.6.1.4.1.9.1.209 .
For this we should first know that .1.3.6.1.4.1.9.1.209 is cisco2621. which is router.
My question is how we can find out that particular snmp device is router or switch. Is there any OID for retriveing the type of snmp device.
We need it on vey priority basis. I request you to please reply the answer as early as possible.
Thanks in advance,
Regards,
Vaibhav
11-07-2008 09:58 AM
If by router vs. switch you mean whether or not a device is forwarding IP packets, then this can be determined by querying the ipForwarding object from the IP-MIB. If the device returns 1, then it is forwarding IP packets (i.e. the device is routing). If the object's value is 2, then it is not routing.
That said, many modern switches are capable of layer 3 switching, and will indicate that they are routing (because they are). Another method you could use is to get the cdpCacheCapabilities objects from a CDP neighbor of the device in question. If the value of the capabilities is 0x1 when logically OR'd with 0x1, then the device is a router.
11-10-2008 09:29 PM
Hi,
Thanks for reply. I still have not cleared regarding my posted query.
I wanted to know that how can we find out the particular type of any network device which is snmp enabled. Any MIB tells us about device type?
The question was not only for router or switch, It can be any device. Kindly let me know if you understood my query or not.
waiting for your reply,
11-10-2008 10:01 PM
You can use the CISCO-PRODUCTS-MIB to map sysObjectID to an object name (like you did for the 2621). Alternatively, sysDescr.0 usually tells you enough about the device type. sysObjectID is what is typically used by Network Management applications to obtain the device type.
11-10-2008 10:07 PM
I should clarify that other than the objects I have already said, there is no object that will return "router," "switch, "Access Point," etc. Most NMSes will take the sysObjectID and map it to a device type in order to poll platform-specific objects.
11-10-2008 10:30 PM
Thanks for reply. I have few questions. You mean that sysObjectID is the only way to find out particular device. right? If so then we should have database table for sysObjectIDs and known type for all types of devices. right? That we have have to get from CISCO-PRODUCTS-MIB. right?
If so then what should we do for other company's devices which is other than ciscoproducts?
And in sysdescr we do not get type of device, which is as follows,
SNMPv2-MIB::sysDescr.0 = STRING: "Cisco Internetwork Operating System Software
IOS (tm) C2600 Software (C2600-D-M), Version 12.0(7)T, RELEASE SOFTWARE (fc2)
Copyright (c) 1986-1999 by cisco Systems, Inc.
Compiled Tue 07-Dec-99 01:20 by phanguye"
Waiting for your reply.
11-10-2008 10:46 PM
Other vendors have their own MIBs to translate their sysObjectIDs. As for finding the device "type," this is nebulous as I have already said. That is, one device can be capable of being a router, switch, AP, firewall, etc. all at the same time. So, once you know the model name, you'd have to search the vendor's product or support site to get the capabilities.
11-10-2008 10:59 PM
This means we have to have database created for all types of devices and corresponding sysObjectIDs. Is any latest readymade list availabe? Or we have to do it by our own by geting product mib of all other companies.
11-10-2008 11:55 PM
For cisco devices, you can find a list here:
Note that the above list may not include some of the newer devices.
For non-cisco, you've got to contact them and find out.
11-11-2008 10:30 PM
jclarke and dany,
Thanks a lot for your information.
Best regards,
Vaibhav
06-30-2022 11:13 AM
Any updated link to such document?
06-30-2022 12:21 PM
Hello,
here is a list with Cisco product OIDs:
https://bestmonitoringtools.com/mibdb/mibdb_search.php?mib=CISCO-PRODUCTS-MIB
06-30-2022 02:05 PM
As I understand the generic OID SysObjectID or 1.3.6.1.2.1.1.2 it points to the particular SysObjectID or 1.3.6.1.4.1.9.1.1.x where x is the product in question but when FTP the MIB file carrying OIDs or see the link you shared I am unable to find for N9K-C93600CD-GX so what to do here?
06-30-2022 11:07 PM
Hello,
did you try the SNMP Object Navigator ?
https://snmp.cloudapps.cisco.com/Support/SNMP/do/BrowseOID.do
07-01-2022 01:23 AM
I tried it and the product SysObjectID not found maybe doing it wrong but didn't see N9K-C93600CD-GX
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