MIB中未定义的OID中的尾随数字和点

时间:2017-08-07 19:17:44

标签: snmp net-snmp

我正在尝试深入了解SNMP以正确使用其功能。我有一项监控无线接入点(WAP)状态的任务。 AP由一个知道AP状态的控制器控制,它是我使用SNMP提取信息的地方。我发现这个OID显示" 0"如果AP断开连接

# snmpget -v2c -c xxx 1.2.3.4 SNMPv2-SMI::enterprises.25053.1.2.2.1.1.2.1.1.3.6.240.62.144.17.39.0
SNMPv2-SMI::enterprises.25053.1.2.2.1.1.2.1.1.3.6.240.62.144.17.39.0 = INTEGER: 0

我使用net-snmp。我为此产品安装了所有MIB。然而,当我进行snmptranslate时,它只解释了OID中的某个点

# snmptranslate -m ALL -Td SNMPv2-SMI::enterprises.25053.1.2.2.1.1.2.1.1.3.6.240.62.144.17.39.0
RUCKUS-ZD-WLAN-MIB::ruckusZDWLANAPStatus.'..>..''.0
ruckusZDWLANAPStatus OBJECT-TYPE
  -- FROM       RUCKUS-ZD-WLAN-MIB
  SYNTAX        INTEGER {disconnected(0), connected(1), approvalPending(2), upgradingFirmware(3), provisioning(4)}
  MAX-ACCESS    read-only
  STATUS        current
  DESCRIPTION   "The connection status with ZD."
::= { iso(1) org(3) dod(6) internet(1) private(4) enterprises(1) ruckusRootMIB(25053) ruckusObjects(1) ruckusZD(2) ruckusZDWLANModule(2) ruckusZDWLANMIB(1) ruckusZDWLANObjects(1) ruckusZDWLANAPInfo(2) ruckusZDWLANAPTable(1) ruckusZDWLANAPEntry(1) ruckusZDWLANAPStatus(3) 6 240 62 144 17 39 0 }

不解释尾随6.240.62.144.17.39.0。我还发现这个尾随部分用于其他OID以获取有关AP的其他信息,例如名称,IP地址,序列号等......

所以我的问题是,在哪里可以找出每个数字在这个尾随字符串中的含义?它是在MIB中定义的吗?它与SNMP"表"?有关吗?谢谢!

1 个答案:

答案 0 :(得分:1)

http://www.circitor.fr/Mibs/Mib/R/RUCKUS-ZD-WLAN-MIB.mib

ruckusZDWLANAPTable OBJECT-TYPE
    SYNTAX  SEQUENCE OF RuckusZDWLANAPEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "ZD WLAN AP table."
    ::= { ruckusZDWLANAPInfo 1 }

ruckusZDWLANAPEntry OBJECT-TYPE
    SYNTAX  RuckusZDWLANAPEntry
    MAX-ACCESS not-accessible
    STATUS current
    DESCRIPTION
        "Specifies each ZD WLAN AP entry."
    INDEX {
        ruckusZDWLANAPMacAddr }
    ::= { ruckusZDWLANAPTable 1 }

RuckusZDWLANAPEntry ::= SEQUENCE {
  ruckusZDWLANAPMacAddr                 MacAddress,
  ruckusZDWLANAPDescription             DisplayString,
  ruckusZDWLANAPStatus                  INTEGER,
  ruckusZDWLANAPModel                   DisplayString,
  ruckusZDWLANAPSerialNumber            DisplayString,
  ruckusZDWLANAPUptime                  TimeTicks,
  ruckusZDWLANAPSWversion               DisplayString,
  ruckusZDWLANAPHWversion               DisplayString,
  ruckusZDWLANAPIPAddr                  IpAddress,
  ruckusZDWLANAPNumRadios               Unsigned32,
  ruckusZDWLANAPNumVAP                  Unsigned32,
  ruckusZDWLANAPNumSta                  Unsigned32,
  ruckusZDWLANAPNumRogues               Unsigned32,
  ruckusZDWLANAPConnectionMode          INTEGER,
  ruckusZDWLANAPMeshEnable              TruthValue,
  ruckusZDWLANAPMeshHops                Unsigned32,
  ruckusZDWLANAPMeshType                INTEGER,
  ruckusZDWLANAPLANStatsRXByte          Counter32,
  ruckusZDWLANAPLANStatsRXPkt           Counter32,
  ruckusZDWLANAPLANStatsRXPktErr        Counter32,
  ruckusZDWLANAPLANStatsRXPKTSucc       Counter32,
  ruckusZDWLANAPLANStatsTXByte          Counter32,
  ruckusZDWLANAPLANStatsTXPkt           Counter32,
  ruckusZDWLANAPMemUtil                 INTEGER,
  ruckusZDWLANAPMemTotal                Unsigned32,
  ruckusZDWLANAPCPUUtil                 INTEGER,
  ruckusZDWLANAPFWSize                  Unsigned32,
  ruckusZDWLANAPFWAvail                 Unsigned32,
  ruckusZDWLANAPMultipleVlanCapability  TruthValue,
  ruckusZDWLANAP11bCapable              TruthValue,
  ruckusZDWLANAP11gCapable              TruthValue,
  ruckusZDWLANAPMultiModeAccessStatus   TruthValue,
  ruckusZDWLANAPEthStateChange          Counter32,
  ruckusZDWLANAPSyncConf                TruthValue,
  ruckusZDWLANAPUpgrade                 TruthValue,
  ruckusZDWLANAPFirstJoinTime           DisplayString,
  ruckusZDWLANAPLastBootTime            DisplayString,
  ruckusZDWLANAPLastUpgradeTime         DisplayString,
  ruckusZDWLANAPLastConfSyncTime        DisplayString,
  ruckusZDWLANAPLANStatsRXPKTBcast      Counter32,
  ruckusZDWLANAPLANStatsRXPKTMcast      Counter32,
  ruckusZDWLANAPLANStatsRXPKTUcast      Counter32,
  ruckusZDWLANAPLANStatsTXPKTBcast      Counter32,
  ruckusZDWLANAPLANStatsTXPKTMcast      Counter32,
  ruckusZDWLANAPLANStatsTXPKTUcast      Counter32,
  ruckusZDWLANAPLANStatsDropped         Counter32,
  ruckusZDWLANAPMeshUpPortCntUpdown     Counter32,
  ruckusZDWLANAPMeshDownPortCntUpdown   Counter32,
  ruckusZDWLANAPTxFrameDropped          Counter32,
  ruckusZDWLANAPTxFrameError            Counter32,
  ruckusZDWLANAPCoverageTech            INTEGER,
  ruckusZDWLANAPStaTxBytes              Counter32,
  ruckusZDWLANAPStaRxBytes              Counter32,
  ruckusZDWLANAPNetmask                 IpAddress,
  ruckusZDWLANAPGateway                 IpAddress,
  ruckusZDWLANAPDNS1                    IpAddress,
  ruckusZDWLANAPDNS2                    IpAddress,
  ruckusZDWLANAPTotalUser               Unsigned32,
  ruckusZDWLANAPLANStatsRXByteRate      Counter32,
  ruckusZDWLANAPLANStatsTXByteRate      Counter32
}

由于表使用MacAddress作为索引,因此OID看起来就像那样。