Тема: snmpget против snmpwalk
Есть проблема при мониторинге, не вытягиваются данные при помощи snmpget, snmpwalk работает.
С машины мониторинга:
snmpwalk -c public -v 1 192.168.1.42 UBNT-AirMAX-MIB::ubntStaRxCapacity.1
UBNT-MIB::ubntStaRxCapacity.1.\\\'......\\\' = INTEGER: 271440
snmpget -c public -v 1 192.168.1.42 UBNT-AirMAX-MIB::ubntStaRxCapacity.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UBNT-MIB::ubntStaRxCapacity.1
snmpwalk -c public -v 1 192.168.1.42 -v 1 .1.3.6.1.4.1.41112.1.4.7.1
UBNT-MIB::ubntStaMac.1.\'......\' = STRING: 4:18:d6:00:00:00
UBNT-MIB::ubntStaName.1.\'......\' = STRING: PowerBeam 5AC 620
UBNT-MIB::ubntStaSignal.1.\'......\' = INTEGER: -55
UBNT-MIB::ubntStaNoiseFloor.1.\'......\' = INTEGER: -89
UBNT-MIB::ubntStaDistance.1.\'......\' = INTEGER: 16650
UBNT-MIB::ubntStaCcq.1.\'......\' = INTEGER: 333
UBNT-MIB::ubntStaAmp.1.\'......\' = INTEGER: 0
UBNT-MIB::ubntStaAmq.1.\'......\' = INTEGER: 0
UBNT-MIB::ubntStaAmc.1.\'......\' = INTEGER: 0
UBNT-MIB::ubntStaLastIp.1.\'......\' = IpAddress: 192.168.1.42
UBNT-MIB::ubntStaTxRate.1.\'......\' = INTEGER: 526500000
UBNT-MIB::ubntStaRxRate.1.\'......\' = INTEGER: 468000000
UBNT-MIB::ubntStaTxBytes.1.\'......\' = Counter64: 22330197774
UBNT-MIB::ubntStaRxBytes.1.\'......\' = Counter64: 190673824184
UBNT-MIB::ubntStaConnTime.1.\'......\' = Timeticks: (1087400) 3:01:14.00
UBNT-MIB::ubntStaLocalCINR.1.\'......\' = INTEGER: 28
UBNT-MIB::ubntStaTxCapacity.1.\'......\' = INTEGER: 304200
UBNT-MIB::ubntStaRxCapacity.1.\'......\' = INTEGER: 300105
UBNT-MIB::ubntStaEntry.19.\'......\'.203 = INTEGER: 101
UBNT-MIB::ubntStaEntry.20.\'......\'.203 = INTEGER: 538
UBNT-MIB::ubntStaEntry.21.\'......\'.203 = INTEGER: 1
End of MIB
UBNT-MIB:
....
ubntStaTable OBJECT-TYPE
SYNTAX SEQUENCE OF UbntStaEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION \"Station list\"
::= { ubntAirMAX 7 }
ubntStaEntry OBJECT-TYPE
SYNTAX UbntStaEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION \"An entry in the ubntStaEntry\"
INDEX { ubntWlStatIndex, ubntStaMac }
::= { ubntStaTable 1 }
UbntStaEntry ::= SEQUENCE {
ubntStaMac MacAddress,
ubntStaName DisplayString,
ubntStaSignal Integer32,
ubntStaNoiseFloor Integer32,
ubntStaDistance Integer32,
ubntStaCcq Integer32,
ubntStaAmp Integer32,
ubntStaAmq Integer32,
ubntStaAmc Integer32,
ubntStaLastIp IpAddress,
ubntStaTxRate Integer32,
ubntStaRxRate Integer32,
ubntStaTxBytes Counter64,
ubntStaRxBytes Counter64,
ubntStaConnTime TimeTicks,
ubntStaLocalCINR Integer32,
ubntStaTxCapacity Integer32,
ubntStaRxCapacity Integer32
}
ubntStaMac OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Station MAC address\"
::= { ubntStaEntry 1 }
ubntStaName OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Station name\"
::= { ubntStaEntry 2 }
ubntStaSignal OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Signal strength, dBm\"
::= { ubntStaEntry 3 }
ubntStaNoiseFloor OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Noise floor\"
::= { ubntStaEntry 4 }
ubntStaDistance OBJECT-TYPE
SYNTAX INTEGER (1..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Distance\"
::= { ubntStaEntry 5 }
ubntStaCcq OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"CCQ in %\"
::= { ubntStaEntry 6 }
ubntStaAmp OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"airMAX priority\"
::= { ubntStaEntry 7 }
ubntStaAmq OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"airMAX quality\"
::= { ubntStaEntry 8 }
ubntStaAmc OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"airMAX capacity\"
::= { ubntStaEntry 9 }
ubntStaLastIp OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Last known IP address\"
::= { ubntStaEntry 10 }
ubntStaTxRate OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"TX rate\"
::= { ubntStaEntry 11 }
ubntStaRxRate OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"RX rate\"
::= { ubntStaEntry 12 }
ubntStaTxBytes OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"TX bytes\"
::= { ubntStaEntry 13 }
ubntStaRxBytes OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"TX rate\"
::= { ubntStaEntry 14 }
ubntStaConnTime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Connection Time in seconds\"
::= { ubntStaEntry 15 }
ubntStaLocalCINR OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Local CINR\"
::= { ubntStaEntry 16 }
ubntStaTxCapacity OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Uplink Capacity in Kbps\"
::= { ubntStaEntry 17 }
ubntStaRxCapacity OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Downlink Capacity in Kbps\"
::= { ubntStaEntry 18 }
END
С машины мониторинга:
snmpwalk -c public -v 1 192.168.1.42 UBNT-AirMAX-MIB::ubntStaRxCapacity.1
UBNT-MIB::ubntStaRxCapacity.1.\\\'......\\\' = INTEGER: 271440
snmpget -c public -v 1 192.168.1.42 UBNT-AirMAX-MIB::ubntStaRxCapacity.1
Error in packet
Reason: (noSuchName) There is no such variable name in this MIB.
Failed object: UBNT-MIB::ubntStaRxCapacity.1
snmpwalk -c public -v 1 192.168.1.42 -v 1 .1.3.6.1.4.1.41112.1.4.7.1
UBNT-MIB::ubntStaMac.1.\'......\' = STRING: 4:18:d6:00:00:00
UBNT-MIB::ubntStaName.1.\'......\' = STRING: PowerBeam 5AC 620
UBNT-MIB::ubntStaSignal.1.\'......\' = INTEGER: -55
UBNT-MIB::ubntStaNoiseFloor.1.\'......\' = INTEGER: -89
UBNT-MIB::ubntStaDistance.1.\'......\' = INTEGER: 16650
UBNT-MIB::ubntStaCcq.1.\'......\' = INTEGER: 333
UBNT-MIB::ubntStaAmp.1.\'......\' = INTEGER: 0
UBNT-MIB::ubntStaAmq.1.\'......\' = INTEGER: 0
UBNT-MIB::ubntStaAmc.1.\'......\' = INTEGER: 0
UBNT-MIB::ubntStaLastIp.1.\'......\' = IpAddress: 192.168.1.42
UBNT-MIB::ubntStaTxRate.1.\'......\' = INTEGER: 526500000
UBNT-MIB::ubntStaRxRate.1.\'......\' = INTEGER: 468000000
UBNT-MIB::ubntStaTxBytes.1.\'......\' = Counter64: 22330197774
UBNT-MIB::ubntStaRxBytes.1.\'......\' = Counter64: 190673824184
UBNT-MIB::ubntStaConnTime.1.\'......\' = Timeticks: (1087400) 3:01:14.00
UBNT-MIB::ubntStaLocalCINR.1.\'......\' = INTEGER: 28
UBNT-MIB::ubntStaTxCapacity.1.\'......\' = INTEGER: 304200
UBNT-MIB::ubntStaRxCapacity.1.\'......\' = INTEGER: 300105
UBNT-MIB::ubntStaEntry.19.\'......\'.203 = INTEGER: 101
UBNT-MIB::ubntStaEntry.20.\'......\'.203 = INTEGER: 538
UBNT-MIB::ubntStaEntry.21.\'......\'.203 = INTEGER: 1
End of MIB
UBNT-MIB:
....
ubntStaTable OBJECT-TYPE
SYNTAX SEQUENCE OF UbntStaEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION \"Station list\"
::= { ubntAirMAX 7 }
ubntStaEntry OBJECT-TYPE
SYNTAX UbntStaEntry
MAX-ACCESS not-accessible
STATUS current
DESCRIPTION \"An entry in the ubntStaEntry\"
INDEX { ubntWlStatIndex, ubntStaMac }
::= { ubntStaTable 1 }
UbntStaEntry ::= SEQUENCE {
ubntStaMac MacAddress,
ubntStaName DisplayString,
ubntStaSignal Integer32,
ubntStaNoiseFloor Integer32,
ubntStaDistance Integer32,
ubntStaCcq Integer32,
ubntStaAmp Integer32,
ubntStaAmq Integer32,
ubntStaAmc Integer32,
ubntStaLastIp IpAddress,
ubntStaTxRate Integer32,
ubntStaRxRate Integer32,
ubntStaTxBytes Counter64,
ubntStaRxBytes Counter64,
ubntStaConnTime TimeTicks,
ubntStaLocalCINR Integer32,
ubntStaTxCapacity Integer32,
ubntStaRxCapacity Integer32
}
ubntStaMac OBJECT-TYPE
SYNTAX MacAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Station MAC address\"
::= { ubntStaEntry 1 }
ubntStaName OBJECT-TYPE
SYNTAX DisplayString
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Station name\"
::= { ubntStaEntry 2 }
ubntStaSignal OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Signal strength, dBm\"
::= { ubntStaEntry 3 }
ubntStaNoiseFloor OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Noise floor\"
::= { ubntStaEntry 4 }
ubntStaDistance OBJECT-TYPE
SYNTAX INTEGER (1..65535)
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Distance\"
::= { ubntStaEntry 5 }
ubntStaCcq OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"CCQ in %\"
::= { ubntStaEntry 6 }
ubntStaAmp OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"airMAX priority\"
::= { ubntStaEntry 7 }
ubntStaAmq OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"airMAX quality\"
::= { ubntStaEntry 8 }
ubntStaAmc OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"airMAX capacity\"
::= { ubntStaEntry 9 }
ubntStaLastIp OBJECT-TYPE
SYNTAX IpAddress
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Last known IP address\"
::= { ubntStaEntry 10 }
ubntStaTxRate OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"TX rate\"
::= { ubntStaEntry 11 }
ubntStaRxRate OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"RX rate\"
::= { ubntStaEntry 12 }
ubntStaTxBytes OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"TX bytes\"
::= { ubntStaEntry 13 }
ubntStaRxBytes OBJECT-TYPE
SYNTAX Counter64
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"TX rate\"
::= { ubntStaEntry 14 }
ubntStaConnTime OBJECT-TYPE
SYNTAX TimeTicks
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Connection Time in seconds\"
::= { ubntStaEntry 15 }
ubntStaLocalCINR OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Local CINR\"
::= { ubntStaEntry 16 }
ubntStaTxCapacity OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Uplink Capacity in Kbps\"
::= { ubntStaEntry 17 }
ubntStaRxCapacity OBJECT-TYPE
SYNTAX Integer32
MAX-ACCESS read-only
STATUS current
DESCRIPTION \"Downlink Capacity in Kbps\"
::= { ubntStaEntry 18 }
END