Ad Widget

Collapse

Disovery and calculated OID

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • skipzoid
    Junior Member
    • Jul 2019
    • 20

    #1

    Disovery and calculated OID

    I am writing a template to enumerate the power outputs of a mains distribution unit. However it has some quirks in its SNMP support.

    I am discoverying the outputs with discovery[{#SNMPVALUE},.1.3.6.1.4.1.6853.3.4.1.1] which discovers 12 outputs which is correct for the device.
    I can enumerate the status of the outputs with 1.3.6.1.4.1.6853.3.4.1.2.{#SNMPINDEX} and that works to showing which is on and which is off.

    Its possible also to get the name of the output as defined in the web interface of the device however it lists its GPI outputs before the 12 outputs in the list.

    An snmp walk shows -

    .1.3.6.1.4.1.6853.2.2.1.4.1 = STRING: "GPI 1"
    .1.3.6.1.4.1.6853.2.2.1.4.2 = STRING: "GPI 2"
    .1.3.6.1.4.1.6853.2.2.1.4.3 = STRING: "GPI 3"
    .1.3.6.1.4.1.6853.2.2.1.4.4 = STRING: "GPI 4"
    .1.3.6.1.4.1.6853.2.2.1.4.5 = STRING: "GPI 5"
    .1.3.6.1.4.1.6853.2.2.1.4.6 = STRING: "GPI 6"
    .1.3.6.1.4.1.6853.2.2.1.4.7 = STRING: "GPI 7"
    .1.3.6.1.4.1.6853.2.2.1.4.8 = STRING: "GPI 8"
    .1.3.6.1.4.1.6853.2.2.1.4.9 = STRING: "GPI 9"
    .1.3.6.1.4.1.6853.2.2.1.4.10 = STRING: "GPI 10"
    .1.3.6.1.4.1.6853.2.2.1.4.11 = STRING: "GPI 11"
    .1.3.6.1.4.1.6853.2.2.1.4.12 = STRING: "GPI 12"
    .1.3.6.1.4.1.6853.2.2.1.4.13 = STRING: "GPI 13"
    .1.3.6.1.4.1.6853.2.2.1.4.14 = STRING: "GPI 14"
    .1.3.6.1.4.1.6853.2.2.1.4.15 = STRING: "GPI 15"
    .1.3.6.1.4.1.6853.2.2.1.4.16 = STRING: "GPI 16"
    .1.3.6.1.4.1.6853.2.2.1.4.17 = STRING: "LCD Monitor"
    .1.3.6.1.4.1.6853.2.2.1.4.18 = STRING: "VM HOST PSU 1"
    .1.3.6.1.4.1.6853.2.2.1.4.19 = STRING: "VM HOST PSU 2"
    .1.3.6.1.4.1.6853.2.2.1.4.20 = STRING: "Spare"
    .1.3.6.1.4.1.6853.2.2.1.4.21 = STRING: "Spare"
    .1.3.6.1.4.1.6853.2.2.1.4.22 = STRING: "Spare"
    .1.3.6.1.4.1.6853.2.2.1.4.23 = STRING: "VM HOST1 PSU 1"
    .1.3.6.1.4.1.6853.2.2.1.4.24 = STRING: "Cisco Switch"
    .1.3.6.1.4.1.6853.2.2.1.4.25 = STRING: "Spare"
    .1.3.6.1.4.1.6853.2.2.1.4.26 = STRING: "Spare"
    .1.3.6.1.4.1.6853.2.2.1.4.27 = STRING: "Spare"
    .1.3.6.1.4.1.6853.2.2.1.4.28 = STRING: "FAN"


    I need to run a discovery with a calculation like 1.3.6.1.4.1.6853.2.2.1.4.{#SNMPINDEX}+16 so I just grab the last 12. This doesnt work though. Any ideas how to acheive this would be useful.
    thanks.
    Last edited by skipzoid; 08-07-2020, 18:38. Reason: corrected spelling - cannot change topic though.
Working...