Is there a SNMP OID to detect network equipment vendor name? For Cisco and Juniper equipment I have used sysDescr.0(.126.96.36.199.188.8.131.52.0), which among other data includes the vendor name. However, this is usually a multi-line string with no fixed structure and needs to be parsed if used in scripts. Maybe there is a standard OID to query equipment vendor name? Or equipment OS(Junos, IOS XR, IOS, IOS XE, etc) family?
No, there's not a single OID tree to describe the equipment. There is a vendor-specific tree, and each vendor implements their own MIB tree under that. Whether or not any particular vendor bothers (major enterprise vendors do) is a matter for them. Within their own tree the vendor can define whatever they like and that may include the model. Not all equipment from a single vendor will support their entire MIB tree.
There's the generic RFC4133 Entity MIB which may be useful to get more exact description of the hardware brand and model and its components. If you go through the entPhysicalTable subtree (
184.108.40.206.220.127.116.11.18.104.22.168), you may find some more useful information.
A Juniper router:
.22.214.171.124.126.96.36.199.188.8.131.52.1 = STRING: "Juniper MX240 Internet Backbone Router"
An Arista 7050-SX switch:
.184.108.40.206.220.127.116.11.18.104.22.168.1 = STRING: "48 SFP+ + 4 QSFP+ 1RU"
A Cisco ASR:
.22.214.171.124.126.96.36.199.188.8.131.52.1 = STRING: "Cisco ASR1002 Chassis"
However, not all vendors implement this MIB, and some provide more detailed information than others.