Ad Widget

Collapse

Enclosed SNMP Item (OID of OID)

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • kalyan57
    Junior Member
    • Jan 2017
    • 7

    #1

    Enclosed SNMP Item (OID of OID)

    hi, fellows!
    I want to get Interface Name of the interface, which was chosen as STP Root Port on certain switch (interface leading to the root switch of the net on this switch)
    SNMP OID BRIDGE-MIB::dot1dStpRootPort (.1.3.6.1.2.1.17.2.7.0) returns decimal integer value as 0,1,2,3... but this decimal value does not always point to the corresponding ifname (fa0/1=1, fa0/2=2, etc)
    Code:
    snmpwalk -v 2c -c <snmp_connunity> <switch_IP_was_here> IF-MIB::ifDescr.6
    IF-MIB::ifDescr.6 = STRING: FastEthernet3/1
    Is there oportunity to grab SNMP value of an OID by previously taken SNMP value of an OID. I mean construction like IF-MIB::ifDescr.(BRIDGE-MIB::dot1dStpRootPort).
    Here BRIDGE-MIB::dot1dStpRootPort would return decimal index of root-designated interface (let it be 1) and later IF-MIB::ifDescr.1 would return ifName
    If that's impossible... can i get item of an item in zabbix? item1=BRIDGE-MIB::dot1dStpRootPort and item2=IF-MIB::ifDescr.item1

    PS: I'm using zabbix 3.2 on centos7
    I want to use ifName as item value, not as a name of any object
Working...