Есть APC Network Management Card <AP9617>. Настроил доступ по SNMP. Можно ли получать по SNMP (читать из переменных) данные о состоянии упса (On-Line, On-Battery, нагрузка, сколько осталось времени работы от батарей и т.д.)?
>Есть APC Network Management Card <AP9617>. Настроил доступ по SNMP. Можно ли получать по SNMP (читать из переменных) данные о состоянии упса (On-Line, On-Battery, нагрузка, сколько осталось времени работы от батарей и т.д.)?Ну а натравить snmpwalk на вашу железку если?
>Ну а натравить snmpwalk на вашу железку если?Не нашел ничего подходящего. Может ли snmpwalk чего-то не показывать, или это все переменные какие есть?
SNMPv2-MIB::sysDescr.0 = STRING: APC Web/SNMP Management Card (MB:v3.6.4 PF:v2.5.0 PN:apc_hw02_aos_250.bin AF1:v2.5.1 AN1:apc_hw02_sumx_251.bin MN:AP9617 HR:A10 SN: JA0441040900 MD:10/09/2004) (Embedded PowerNet SNMP Agent SW v2.2 compatible)
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.318.1.3.2.12
DISMAN-EVENT-MIB::sysUpTimeInstance = Timeticks: (7977) 0:01:19.77
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING: UPS12
SNMPv2-MIB::sysLocation.0 = STRING:
SNMPv2-MIB::sysServices.0 = INTEGER: 72
IF-MIB::ifNumber.0 = INTEGER: 1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifDescr.1 = STRING: lance
IF-MIB::ifType.1 = INTEGER: iso88023Csmacd(7)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 100000000
IF-MIB::ifPhysAddress.1 = STRING: 0:c0:b7:71:20:e2
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifInOctets.1 = Counter32: 23746
IF-MIB::ifInUcastPkts.1 = Counter32: 262
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 25095
IF-MIB::ifOutUcastPkts.1 = Counter32: 249
IF-MIB::ifOutNUcastPkts.1 = Counter32: 4
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 1
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
RFC1213-MIB::atIfIndex.1.1.10.1.7.10 = INTEGER: 1
RFC1213-MIB::atPhysAddress.1.1.10.1.7.10 = Hex-STRING: 00 02 4A 1A B8 06
RFC1213-MIB::atNetAddress.1.1.10.1.7.10 = Network Address: 0A:6F:39:0A
IP-MIB::ipForwarding.0 = INTEGER: 0
IP-MIB::ipDefaultTTL.0 = INTEGER: 64
IP-MIB::ipInReceives.0 = Counter32: 278
IP-MIB::ipInHdrErrors.0 = Counter32: 0
IP-MIB::ipInAddrErrors.0 = Counter32: 0
IP-MIB::ipForwDatagrams.0 = Counter32: 0
IP-MIB::ipInUnknownProtos.0 = Counter32: 0
IP-MIB::ipInDiscards.0 = Counter32: 0
IP-MIB::ipInDelivers.0 = Counter32: 284
IP-MIB::ipOutRequests.0 = Counter32: 267
IP-MIB::ipOutDiscards.0 = Counter32: 0
IP-MIB::ipOutNoRoutes.0 = Counter32: 0
IP-MIB::ipReasmTimeout.0 = INTEGER: 0
IP-MIB::ipReasmReqds.0 = Counter32: 0
IP-MIB::ipReasmOKs.0 = Counter32: 0
IP-MIB::ipReasmFails.0 = Counter32: 0
IP-MIB::ipFragOKs.0 = Counter32: 0
IP-MIB::ipFragFails.0 = Counter32: 0
IP-MIB::ipFragCreates.0 = Counter32: 0
IP-MIB::ipAdEntAddr.10.1.7.12 = IpAddress: 10.1.7.12
IP-MIB::ipAdEntIfIndex.10.1.7.12 = INTEGER: 1
IP-MIB::ipAdEntNetMask.10.1.7.12 = IpAddress: 255.255.255.248
IP-MIB::ipAdEntBcastAddr.10.1.7.12 = INTEGER: 1
IP-MIB::ipAdEntReasmMaxSize.10.1.7.12 = INTEGER: 0
RFC1213-MIB::ipRouteDest.0.0.0.0 = IpAddress: 0.0.0.0
RFC1213-MIB::ipRouteIfIndex.0.0.0.0 = INTEGER: 1
RFC1213-MIB::ipRouteMetric1.0.0.0.0 = INTEGER: -1
RFC1213-MIB::ipRouteMetric2.0.0.0.0 = INTEGER: -1
RFC1213-MIB::ipRouteMetric3.0.0.0.0 = INTEGER: -1
RFC1213-MIB::ipRouteMetric4.0.0.0.0 = INTEGER: -1
RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: 10.1.7.10
RFC1213-MIB::ipRouteType.0.0.0.0 = INTEGER: other(1)
RFC1213-MIB::ipRouteProto.0.0.0.0 = INTEGER: local(2)
RFC1213-MIB::ipRouteMask.0.0.0.0 = IpAddress: 0.0.0.0
RFC1213-MIB::ipRouteMetric5.0.0.0.0 = INTEGER: -1
RFC1213-MIB::ipRouteInfo.0.0.0.0 = OID: SNMPv2-SMI::zeroDotZero
IP-MIB::ipNetToMediaIfIndex.1.10.1.7.10 = INTEGER: 1
IP-MIB::ipNetToMediaPhysAddress.1.10.1.7.10 = STRING: 0:2:4a:1a:b8:6
IP-MIB::ipNetToMediaNetAddress.1.10.1.7.10 = IpAddress: 10.1.7.10
IP-MIB::ipNetToMediaType.1.10.1.7.10 = INTEGER: dynamic(3)
IP-MIB::ipRoutingDiscards.0 = Counter32: 0
IP-MIB::icmpInMsgs.0 = Counter32: 27
IP-MIB::icmpInErrors.0 = Counter32: 0
IP-MIB::icmpInDestUnreachs.0 = Counter32: 0
IP-MIB::icmpInTimeExcds.0 = Counter32: 0
IP-MIB::icmpInParmProbs.0 = Counter32: 0
IP-MIB::icmpInSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpInRedirects.0 = Counter32: 0
IP-MIB::icmpInEchos.0 = Counter32: 27
IP-MIB::icmpInEchoReps.0 = Counter32: 0
IP-MIB::icmpInTimestamps.0 = Counter32: 0
IP-MIB::icmpInTimestampReps.0 = Counter32: 0
IP-MIB::icmpInAddrMasks.0 = Counter32: 0
IP-MIB::icmpInAddrMaskReps.0 = Counter32: 0
IP-MIB::icmpOutMsgs.0 = Counter32: 27
IP-MIB::icmpOutErrors.0 = Counter32: 0
IP-MIB::icmpOutDestUnreachs.0 = Counter32: 0
IP-MIB::icmpOutTimeExcds.0 = Counter32: 0
IP-MIB::icmpOutParmProbs.0 = Counter32: 0
IP-MIB::icmpOutSrcQuenchs.0 = Counter32: 0
IP-MIB::icmpOutRedirects.0 = Counter32: 0
IP-MIB::icmpOutEchos.0 = Counter32: 0
IP-MIB::icmpOutEchoReps.0 = Counter32: 27
IP-MIB::icmpOutTimestamps.0 = Counter32: 0
IP-MIB::icmpOutTimestampReps.0 = Counter32: 0
IP-MIB::icmpOutAddrMasks.0 = Counter32: 0
IP-MIB::icmpOutAddrMaskReps.0 = Counter32: 0
TCP-MIB::tcpRtoAlgorithm.0 = INTEGER: vanj(4)
TCP-MIB::tcpRtoMin.0 = INTEGER: 100 milliseconds
TCP-MIB::tcpRtoMax.0 = INTEGER: 64000 milliseconds
TCP-MIB::tcpMaxConn.0 = INTEGER: 32
TCP-MIB::tcpActiveOpens.0 = Counter32: 2
TCP-MIB::tcpPassiveOpens.0 = Counter32: 0
TCP-MIB::tcpAttemptFails.0 = Counter32: 0
TCP-MIB::tcpEstabResets.0 = Counter32: 0
TCP-MIB::tcpCurrEstab.0 = Gauge32: 0
TCP-MIB::tcpInSegs.0 = Counter32: 39
TCP-MIB::tcpOutSegs.0 = Counter32: 18
TCP-MIB::tcpRetransSegs.0 = Counter32: 0
TCP-MIB::tcpConnState.0.0.0.0.5888.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnState.0.0.0.0.20480.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnLocalAddress.0.0.0.0.5888.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalAddress.0.0.0.0.20480.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnLocalPort.0.0.0.0.5888.0.0.0.0.0 = INTEGER: 23
TCP-MIB::tcpConnLocalPort.0.0.0.0.20480.0.0.0.0.0 = INTEGER: 80
TCP-MIB::tcpConnRemAddress.0.0.0.0.5888.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemAddress.0.0.0.0.20480.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemPort.0.0.0.0.5888.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpConnRemPort.0.0.0.0.20480.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpInErrs.0 = Counter32: 0
TCP-MIB::tcpOutRsts.0 = Counter32: 0
UDP-MIB::udpInDatagrams.0 = Counter32: 0
UDP-MIB::udpNoPorts.0 = Counter32: 0
UDP-MIB::udpInErrors.0 = Counter32: 303
UDP-MIB::udpOutDatagrams.0 = Counter32: 299
UDP-MIB::udpLocalAddress.0.0.0.0.386 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.0.0.0.0.12541 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.0.0.0.0.25082 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.0.0.0.0.41216 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.0.0.0.0.50921 = IpAddress: 0.0.0.0
UDP-MIB::udpLocalAddress.10.1.7.12.56870 = IpAddress: 10.1.7.12
UDP-MIB::udpLocalPort.0.0.0.0.386 = INTEGER: 33281
UDP-MIB::udpLocalPort.0.0.0.0.12541 = INTEGER: 64816
UDP-MIB::udpLocalPort.0.0.0.0.25082 = INTEGER: 64097
UDP-MIB::udpLocalPort.0.0.0.0.41216 = INTEGER: 161
UDP-MIB::udpLocalPort.0.0.0.0.50921 = INTEGER: 59846
UDP-MIB::udpLocalPort.10.1.7.12.56870 = INTEGER: 9950
SNMPv2-MIB::snmpInPkts.0 = Counter32: 455
SNMPv2-MIB::snmpOutPkts.0 = Counter32: 310
SNMPv2-MIB::snmpInBadVersions.0 = Counter32: 6
SNMPv2-MIB::snmpInBadCommunityNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadCommunityUses.0 = Counter32: 0
SNMPv2-MIB::snmpInASNParseErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpInNoSuchNames.0 = Counter32: 0
SNMPv2-MIB::snmpInBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpInReadOnlys.0 = Counter32: 0
SNMPv2-MIB::snmpInGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpInTotalReqVars.0 = Counter32: 320
SNMPv2-MIB::snmpInTotalSetVars.0 = Counter32: 0
SNMPv2-MIB::snmpInGetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpInGetNexts.0 = Counter32: 324
SNMPv2-MIB::snmpInSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpInGetResponses.0 = Counter32: 0
SNMPv2-MIB::snmpInTraps.0 = Counter32: 0
SNMPv2-MIB::snmpOutTooBigs.0 = Counter32: 0
SNMPv2-MIB::snmpOutNoSuchNames.0 = Counter32: 0
SNMPv2-MIB::snmpOutBadValues.0 = Counter32: 0
SNMPv2-MIB::snmpOutGenErrs.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetNexts.0 = Counter32: 0
SNMPv2-MIB::snmpOutSetRequests.0 = Counter32: 0
SNMPv2-MIB::snmpOutGetResponses.0 = Counter32: 334
SNMPv2-MIB::snmpOutTraps.0 = Counter32: 0
SNMPv2-MIB::snmpEnableAuthenTraps.0 = INTEGER: 0
>Есть APC Network Management Card <AP9617>. Настроил доступ по SNMP. Можно ли получать по SNMP (читать из переменных) данные о состоянии упса (On-Line, On-Battery, нагрузка, сколько осталось времени работы от батарей и т.д.)?http://bog.pp.ru/hard/UPS.html
>http://bog.pp.ru/hard/UPS.html
Спасибо. Будем разбираться.