Ad Widget

Collapse

Dynamic Indexes - Unknown Object Identifier

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Crypty
    Member
    • Jul 2012
    • 80

    #1

    Dynamic Indexes - Unknown Object Identifier

    Hi all,

    I have an issue with the dynamic Indexes.

    When I want to access ifSpeed parameter in IF-MIB, I can do that:

    Code:
    zabbix:~ # snmpwalk -v 2c -c public 192.168.x.y IF-MIB::ifTable
    IF-MIB::ifIndex.1 = INTEGER: 1
    IF-MIB::ifIndex.2 = INTEGER: 2
    IF-MIB::ifDescr.1 = STRING: radio
    IF-MIB::ifDescr.2 = STRING: ethernet
    IF-MIB::ifType.1 = INTEGER: other(1)
    IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
    IF-MIB::ifMtu.1 = INTEGER: 1500
    IF-MIB::ifMtu.2 = INTEGER: 1500
    IF-MIB::ifSpeed.1 = Gauge32: 10420
    IF-MIB::ifSpeed.2 = Gauge32: 1000000000
    And then read, that radio ifSpeed is 10420...

    I can read only that information now by:
    Code:
    zabbix:~ # snmpwalk -v 2c -c public 192.168.x.y IF-MIB::ifSpeed.1
    IF-MIB::ifSpeed.1 = Gauge32: 10420
    But how can I access it using dynamic indexes? I thought this would solve the issue, but not:
    Code:
    zabbix:~ # snmpwalk -v 2c -c public 192.168.x.y IF-MIB::ifSpeed["index","ifDescr","radio"]
    No log handling enabled - using stderr logging
    It's happening in the Web GUI too - if I use it at Item creation, OID - it returns "not supported" message.

    What am I doing wrong?

    Thanks in advance...

    Using version 1.8.12
    Last edited by Crypty; 13-07-2012, 13:28.
  • Crypty
    Member
    • Jul 2012
    • 80

    #2
    Hi,

    does anybody know any help?

    I attached the screenshot of one example, which works. But it works because I used the index "1" at the OID field.

    I would like to access the ifSpeed value without knowing that "radio" interface is at the index "1". So I would like to use only "ifDescr" value (or another example could be IP address which will be fixed so I would know what station I'm dealing with...) to access the ifSpeed parameter.

    Is there a way?

    Thanks.
    Last edited by Crypty; 19-02-2018, 16:29.

    Comment

    • ericgearhart
      Senior Member
      • Jan 2009
      • 115

      #3
      Take a look at either SNMP low level discovery or dynamic indexes... especially dynamic indexes is what you want. You can base the items you poll on the interface description if you use ifAlias

      e.g. ifInOctets["index","ifAlias","My-Port-Description-On-The-Switch"]

      Comment

      Working...