Ad Widget

Collapse

How to get value from same entity but different SNMP indexes?

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Cenzoooo
    Member
    • Jul 2015
    • 37

    #1

    How to get value from same entity but different SNMP indexes?

    Hello to all,

    I have problem getting correct SNMP values from Huawei Entity MIB. I want to make Huawei Entity discovery template with informations about CPU, memory, voltage... And that discovery would use entPhysicalDescr OID:


    iso.3.6.1.2.1.47.1.1.1.1.2.16777216 = STRING: "Assembling Components,NetEngine40E,CR5B0BKP0871,NE40E-X8A Integrated Chassis DC Components (Including 2 Fan Tray)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16842752 = STRING: "LPU slot 1"
    iso.3.6.1.2.1.47.1.1.1.1.2.16842753 = STRING: "12-Port 10GBase LAN/WAN-SFP+ Integrated Line Processing Unit(LPUI-120)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16843008 = STRING: "Card slot 1/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.16843264 = STRING: "Card slot 1/1"
    iso.3.6.1.2.1.47.1.1.1.1.2.16847104 = STRING: "12-port 10GBase LAN/WAN-SFP+ Fixed Card"
    iso.3.6.1.2.1.47.1.1.1.1.2.16847105 = STRING: "10300Mb/s-1310nm-LC-10km(0.009mm)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16847106 = STRING: "GigabitEthernet1/0/1"
    .
    .
    .
    iso.3.6.1.2.1.47.1.1.1.1.2.16847116 = STRING: "10300Mb/s-1310nm-LC-10km(0.009mm)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908288 = STRING: "LPU slot 2"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908289 = STRING: "48-Port 100/1000Base-X-SFP Integrated Line Processing Unit E(LPUI-51-E)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908544 = STRING: "Card slot 2/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908800 = STRING: "Card slot 2/1"
    iso.3.6.1.2.1.47.1.1.1.1.2.16912640 = STRING: "24-Port 100/1000Base-X-SFP Fixed Card"
    .
    .
    .
    iso.3.6.1.2.1.47.1.1.1.1.2.17367040 = STRING: "MPU slot 9"
    iso.3.6.1.2.1.47.1.1.1.1.2.17367041 = STRING: "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)"
    iso.3.6.1.2.1.47.1.1.1.1.2.17367296 = STRING: "CFCARD slot 9/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17371392 = STRING: "CFCARD 9/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17375489 = STRING: "GigabitEthernet9/0/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17432576 = STRING: "MPU slot 10"
    iso.3.6.1.2.1.47.1.1.1.1.2.17432577 = STRING: "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)"
    iso.3.6.1.2.1.47.1.1.1.1.2.17432832 = STRING: "CFCARD slot 10/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17436928 = STRING: "CFCARD 10/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17441025 = STRING: "GigabitEthernet10/0/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17498112 = STRING: "SFU slot 11"
    iso.3.6.1.2.1.47.1.1.1.1.2.17498113 = STRING: "480Gbps Switch Fabric Unit C(SFUI-480-C)"


    So I need CPU,MEM,TEMP and all other informations for Entities such "MPU slot 9", "LPU slot 1", "SFU slot 12" etc...

    Problem is that with CPU/MEM/TEMP OIDs for those entities and their INDEXES I don't get correct values, it is always 0. Correct values are under snmp indexes which are 1 above.

    Example for CPU usage:

    snmpwalk -v2c -c xxx xxxx 1.3.6.1.2.1.47.1.1.1.1.2.17367040
    iso.3.6.1.2.1.47.1.1.1.1.2.17367040 = STRING: "MPU slot 9"

    snmpwalk -v2c -c xxx xxx 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367040
    iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367040 = INTEGER: 0

    Correct information about CPU usage for "MPU slot 9" is under SNMP index 17367041

    snmpwalk -v2c -c xxx xxx 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367041
    iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367041 = INTEGER: 33



    How can I tell zabbix that for "MPU slot 9" doesn't look for its original index (17367040) but to look for 1 higher (17367041)?
    Last edited by Cenzoooo; 05-07-2017, 11:42.
  • batchenr
    Senior Member
    • Sep 2016
    • 440

    #2
    Originally posted by Cenzoooo
    Hello to all,

    I have problem getting correct SNMP values from Huawei Entity MIB. I want to make Huawei Entity discovery template with informations about CPU, memory, voltage... And that discovery would use entPhysicalDescr OID:


    iso.3.6.1.2.1.47.1.1.1.1.2.16777216 = STRING: "Assembling Components,NetEngine40E,CR5B0BKP0871,NE40E-X8A Integrated Chassis DC Components (Including 2 Fan Tray)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16842752 = STRING: "LPU slot 1"
    iso.3.6.1.2.1.47.1.1.1.1.2.16842753 = STRING: "12-Port 10GBase LAN/WAN-SFP+ Integrated Line Processing Unit(LPUI-120)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16843008 = STRING: "Card slot 1/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.16843264 = STRING: "Card slot 1/1"
    iso.3.6.1.2.1.47.1.1.1.1.2.16847104 = STRING: "12-port 10GBase LAN/WAN-SFP+ Fixed Card"
    iso.3.6.1.2.1.47.1.1.1.1.2.16847105 = STRING: "10300Mb/s-1310nm-LC-10km(0.009mm)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16847106 = STRING: "GigabitEthernet1/0/1"
    .
    .
    .
    iso.3.6.1.2.1.47.1.1.1.1.2.16847116 = STRING: "10300Mb/s-1310nm-LC-10km(0.009mm)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908288 = STRING: "LPU slot 2"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908289 = STRING: "48-Port 100/1000Base-X-SFP Integrated Line Processing Unit E(LPUI-51-E)"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908544 = STRING: "Card slot 2/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.16908800 = STRING: "Card slot 2/1"
    iso.3.6.1.2.1.47.1.1.1.1.2.16912640 = STRING: "24-Port 100/1000Base-X-SFP Fixed Card"
    .
    .
    .
    iso.3.6.1.2.1.47.1.1.1.1.2.17367040 = STRING: "MPU slot 9"
    iso.3.6.1.2.1.47.1.1.1.1.2.17367041 = STRING: "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)"
    iso.3.6.1.2.1.47.1.1.1.1.2.17367296 = STRING: "CFCARD slot 9/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17371392 = STRING: "CFCARD 9/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17375489 = STRING: "GigabitEthernet9/0/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17432576 = STRING: "MPU slot 10"
    iso.3.6.1.2.1.47.1.1.1.1.2.17432577 = STRING: "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)"
    iso.3.6.1.2.1.47.1.1.1.1.2.17432832 = STRING: "CFCARD slot 10/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17436928 = STRING: "CFCARD 10/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17441025 = STRING: "GigabitEthernet10/0/0"
    iso.3.6.1.2.1.47.1.1.1.1.2.17498112 = STRING: "SFU slot 11"
    iso.3.6.1.2.1.47.1.1.1.1.2.17498113 = STRING: "480Gbps Switch Fabric Unit C(SFUI-480-C)"


    So I need CPU,MEM,TEMP and all other informations for Entities such "MPU slot 9", "LPU slot 1", "SFU slot 12" etc...

    Problem is that with CPU/MEM/TEMP OIDs for those entities and their INDEXES I don't get correct values, it is always 0. Correct values are under snmp indexes which are 1 above.

    Example for CPU usage:

    snmpwalk -v2c -c xxx xxxx 1.3.6.1.2.1.47.1.1.1.1.2.17367040
    iso.3.6.1.2.1.47.1.1.1.1.2.17367040 = STRING: "MPU slot 9"

    snmpwalk -v2c -c xxx xxx 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367040
    iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367040 = INTEGER: 0

    Correct information about CPU usage for "MPU slot 9" is under SNMP index 17367041

    snmpwalk -v2c -c xxx xxx 1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367041
    iso.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367041 = INTEGER: 33



    How can I tell zabbix that for "MPU slot 9" doesn't look for its original index (17367040) but to look for 1 higher (17367041)?
    if you want to get a value why do u use snmpwalk and not snmpget ?

    Comment

    • Cenzoooo
      Member
      • Jul 2015
      • 37

      #3
      Originally posted by batchenr
      if you want to get a value why do u use snmpwalk and not snmpget ?

      The result is same...


      Probably you would ask question "Why you don't use then correct INDEX like .17367041 instead of .17367040 since it is same entity?"
      Yeah, problem is with "Description entity" then...


      snmpwalk -v2c -c xxx xxx 1.3.6.1.2.1.47.1.1.1.1.2.17367041
      iso.3.6.1.2.1.47.1.1.1.1.2.17367041 = STRING: "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)"

      I don't want to have entity description as "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)", since it is actually "MPU slot 9"
      Last edited by Cenzoooo; 05-07-2017, 15:20.

      Comment

      • batchenr
        Senior Member
        • Sep 2016
        • 440

        #4
        Originally posted by Cenzoooo
        The result is same...


        Probably you would ask question "Why you don't use then correct INDEX like .17367041 instead of .17367040 since it is same entity?"
        Yeah, problem is with "Description entity" then...


        snmpwalk -v2c -c xxx xxx 1.3.6.1.2.1.47.1.1.1.1.2.17367041
        iso.3.6.1.2.1.47.1.1.1.1.2.17367041 = STRING: "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)"

        I don't want to have entity description as "Finished Board Unit,NetEngine40E,CR57SRUA480A81,Switch and Route Processing Unit A8(16G Memory)", since it is actually "MPU slot 9"
        i tell you what- im not that of an expert in snmp but
        when i use snmpget i usally use the objecy name not OID

        so now i translated some oid that i used and yours there is a diffrance in the results :

        see my OID:
        Code:
        [root@node1:~:]snmptranslate  1.3.6.1.2.1.25.6.3.1.1.11
        HOST-RESOURCES-MIB::hrSWInstalledIndex.11
        yours:
        Code:
        [root@node1:~:]snmptranslate  1.3.6.1.4.1.2011.5.25.31.1.1.1.1.5.17367040
        SNMPv2-SMI::enterprises.2011.5.25.31.1.1.1.1.5.17367040
        it doesn't translate to an object.

        can you send me a link to download you mib file ? i want to check it and ill have more ideas

        Comment

        Working...