Ad Widget

Collapse

Zabbix inventory collection Cisco devices

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • NBD
    Junior Member
    • Nov 2019
    • 11

    #1

    Zabbix inventory collection Cisco devices

    Hello,

    I wan´t to use Zabbix for doing inventory of several different Cisco network devices, primarily i want to collect Product ID, Serialnumber and software version. I have located the OIDs where this information is located but since Cisco have a bad habbit of changing the location of where information is stored in different products it makes life a little bit harder when trying to do this in Zabbix.

    Is there some easier way to collect this information rather than to a SNMP query directly to the OID? Perhaps use a MIB file somehow?

    I have managed to import MIBs and get them working but i have no clue what MIBs i may need and what to query

    Have anyone here done something similar with Zabbix or can help me out in some direction?
  • NBD
    Junior Member
    • Nov 2019
    • 11

    #2
    Maybe i should have mentioned that i have tried to use the default Cisco Templates but they either return wrong values or no values.

    For example "Hardware model name" is using OID: 1.3.6.1.2.1.47.1.1.1.1.13.1

    The device is a Cisco WS-C2960-24LT-L , pretty common basic switch.

    If i do a snmpwalk on that device on OID 1.3.6.1.2.1.47.1.1.1.1.13.1 i get the following response.

    snmpwalk -v 2c -c xxx xx.xx.xx.xx 1.3.6.1.2.1.47.1.1.1.1.13.1
    SNMPv2-SMI::mib-2.47.1.1.1.1.13.1 = No Such Instance currently exists at this OID

    I have found out that the following OID querys give me Hardware model name in most of all the devices
    .1.3.6.1.2.1.47.1.1.1.1.13["index",".1.3.6.1.2.1.47.1.1.1.1.4","0"]
    .1.3.6.1.2.1.47.1.1.1.1.13["index",".1.3.6.1.2.1.47.1.1.1.1.4","1"]

    When i try to discover serialnumbers with the default templates it often dont discover the system serialnumber but some other component like a power supply for example.

    snmpwalk -v 2c -c xxx xx.xx.xx.xx 1.3.6.1.2.1.47.1.1.1.1.11 gives me the output below, where SNMPv2-SMI::mib-2.47.1.1.1.1.11.1001 is the system serialnumber but don´t gets discovered the other OID (Powersupply) however get discovered. My experience is that the system serialnumber is often located at the first OID in the index.

    SNMPv2-SMI::mib-2.47.1.1.1.1.11.1001 = STRING: "XXXXXXXXXX"
    SNMPv2-SMI::mib-2.47.1.1.1.1.11.1002 = ""
    SNMPv2-SMI::mib-2.47.1.1.1.1.11.1003 = STRING: "YYYYYYYYYY"
    Last edited by NBD; 31-03-2020, 23:16.

    Comment

    • NBD
      Junior Member
      • Nov 2019
      • 11

      #3
      The OID for Cisco Serialnumber (1.3.6.1.2.1.47.1.1.1.1.11.1) that is used in the default template "Template Module Cisco Inventory SNMPv2" works for about 70% of my devices for the remaining devices i get the following error message "No Such Instance currently exists at this OID" for those devices the correct OID for serialnumer is ".1.3.6.1.2.1.47.1.1.1.1.11.1001"

      From what i understand the common index for this is .1.3.6.1.2.1.47.1.1.1.1.11 so is it possible somehow in Zabbix to always use the first OID in that index? That would solve my serialnumber problem.

      If i use the serial number discovery in the default template it catches all the serialnumbers except the system serialnumber that always seems to be the first one in the index.

      Comment

      Working...