Hi,
ich möchte mit Hilfe von SNMP die Anzahl der Drucke eines Printers auslesen. Bei den Druckern handelt es sich um Xerox und HP Drucker die nur SNMP Version 1 unterstüzen. Nur welche OID??? Wird das überhaupt unterstützt?
ich möchte mit Hilfe von SNMP die Anzahl der Drucke eines Printers auslesen. Bei den Druckern handelt es sich um Xerox und HP Drucker die nur SNMP Version 1 unterstüzen. Nur welche OID??? Wird das überhaupt unterstützt?
user@host ~ $ snmpwalk -c public -v 1 10.128.8.3
SNMPv2-MIB::sysDescr.0 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM G.07.02,JETDIRECT,JD30,EEPROM G.08.49
SNMPv2-MIB::sysObjectID.0 = OID: SNMPv2-SMI::enterprises.11.2.3.9.1
SNMPv2-MIB::sysUpTime.0 = Timeticks: (1870530) 5:11:45.30
SNMPv2-MIB::sysContact.0 = STRING:
SNMPv2-MIB::sysName.0 = STRING:
SNMPv2-MIB::sysLocation.0 = STRING: HP LaserJet 5000n
SNMPv2-MIB::sysServices.0 = INTEGER: 64
IF-MIB::ifNumber.0 = INTEGER: 1
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifDescr.1 = STRING: HP ETHERNET MULTI-ENVIRONMENT,ROM G.07.02,JETDIRECT,JD30,EEPROM G.08.49
IF-MIB::ifType.1 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifPhysAddress.1 = STRING: 0:10:83:d:b7:99
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: 15373369
IF-MIB::ifInUcastPkts.1 = Counter32: 7311
IF-MIB::ifInNUcastPkts.1 = Counter32: 108554
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 607215
IF-MIB::ifOutUcastPkts.1 = Counter32: 6379
IF-MIB::ifOutNUcastPkts.1 = Counter32: 9
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 1
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero.0
RFC1213-MIB::atIfIndex.1.1.10.128.2.1 = INTEGER: 1
RFC1213-MIB::atIfIndex.1.1.10.128.2.31 = INTEGER: 1
RFC1213-MIB::atIfIndex.1.1.10.128.2.32 = INTEGER: 1
RFC1213-MIB::atIfIndex.1.1.10.128.6.217 = INTEGER: 1
RFC1213-MIB::atPhysAddress.1.1.10.128.2.1 = Hex-STRING: 00 07 E9 18 44 EF
RFC1213-MIB::atPhysAddress.1.1.10.128.2.31 = Hex-STRING: 00 0E 0C B3 2F FC
RFC1213-MIB::atPhysAddress.1.1.10.128.2.32 = Hex-STRING: 00 0C 29 3C 74 07
RFC1213-MIB::atPhysAddress.1.1.10.128.6.217 = Hex-STRING: 00 30 05 6B 67 58
RFC1213-MIB::atNetAddress.1.1.10.128.2.1 = Network Address: 0A:80:02:01
RFC1213-MIB::atNetAddress.1.1.10.128.2.31 = Network Address: 0A:80:02:1F
RFC1213-MIB::atNetAddress.1.1.10.128.2.32 = Network Address: 0A:80:02:20
RFC1213-MIB::atNetAddress.1.1.10.128.6.217 = Network Address: 0A:80:069
IP-MIB::ipForwarding.0 = INTEGER: notForwarding(2)
IP-MIB::ipDefaultTTL.0 = INTEGER: 60
IP-MIB::ipInReceives.0 = Counter32: 17854
IP-MIB::ipInHdrErrors.0 = Counter32: 0
IP-MIB::ipInAddrErrors.0 = Counter32: 27
IP-MIB::ipForwDatagrams.0 = Counter32: 0
IP-MIB::ipInUnknownProtos.0 = Counter32: 0
IP-MIB::ipInDiscards.0 = Counter32: 0
IP-MIB::ipInDelivers.0 = Counter32: 17833
IP-MIB::ipOutRequests.0 = Counter32: 6351
IP-MIB::ipOutDiscards.0 = Counter32: 1
IP-MIB::ipOutNoRoutes.0 = Counter32: 0
IP-MIB::ipReasmTimeout.0 = INTEGER: 60
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.128.8.3 = IpAddress: 10.128.8.3
IP-MIB::ipAdEntIfIndex.10.128.8.3 = INTEGER: 1
IP-MIB::ipAdEntNetMask.10.128.8.3 = IpAddress: 255.255.0.0
IP-MIB::ipAdEntBcastAddr.10.128.8.3 = INTEGER: 1
IP-MIB::ipAdEntReasmMaxSize.10.128.8.3 = INTEGER: 1500
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.128.0.2
RFC1213-MIB::ipRouteType.0.0.0.0 = INTEGER: indirect(4)
RFC1213-MIB::ipRouteProto.0.0.0.0 = INTEGER: local(2)
RFC1213-MIB::ipRouteAge.0.0.0.0 = INTEGER: 18705
RFC1213-MIB::ipRouteMask.0.0.0.0 = IpAddress: 255.255.0.0
RFC1213-MIB::ipRouteMetric5.0.0.0.0 = INTEGER: -1
RFC1213-MIB::ipRouteInfo.0.0.0.0 = OID: SNMPv2-SMI::zeroDotZero.0
IP-MIB::ipNetToMediaIfIndex.1.10.128.2.1 = INTEGER: 1
IP-MIB::ipNetToMediaIfIndex.1.10.128.2.31 = INTEGER: 1
IP-MIB::ipNetToMediaIfIndex.1.10.128.2.32 = INTEGER: 1
IP-MIB::ipNetToMediaIfIndex.1.10.128.6.217 = INTEGER: 1
IP-MIB::ipNetToMediaPhysAddress.1.10.128.2.1 = STRING: 0:7:e9:18:44:ef
IP-MIB::ipNetToMediaPhysAddress.1.10.128.2.31 = STRING: 0:e:c:b3:2f:fc
IP-MIB::ipNetToMediaPhysAddress.1.10.128.2.32 = STRING: 0:c:29:3c:74:7
IP-MIB::ipNetToMediaPhysAddress.1.10.128.6.217 = STRING: 0:30:5:6b:67:58
IP-MIB::ipNetToMediaNetAddress.1.10.128.2.1 = IpAddress: 10.128.2.1
IP-MIB::ipNetToMediaNetAddress.1.10.128.2.31 = IpAddress: 10.128.2.31
IP-MIB::ipNetToMediaNetAddress.1.10.128.2.32 = IpAddress: 10.128.2.32
IP-MIB::ipNetToMediaNetAddress.1.10.128.6.217 = IpAddress: 10.128.6.217
IP-MIB::ipNetToMediaType.1.10.128.2.1 = INTEGER: dynamic(3)
IP-MIB::ipNetToMediaType.1.10.128.2.31 = INTEGER: dynamic(3)
IP-MIB::ipNetToMediaType.1.10.128.2.32 = INTEGER: dynamic(3)
IP-MIB::ipNetToMediaType.1.10.128.6.217 = INTEGER: dynamic(3)
IP-MIB::ipRoutingDiscards.0 = Counter32: 0
IP-MIB::icmpInMsgs.0 = Counter32: 14
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: 14
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: 14
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: 14
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: 10 milliseconds
TCP-MIB::tcpRtoMax.0 = INTEGER: 120000 milliseconds
TCP-MIB::tcpMaxConn.0 = INTEGER: 3
TCP-MIB::tcpActiveOpens.0 = Counter32: 0
TCP-MIB::tcpPassiveOpens.0 = Counter32: 32
TCP-MIB::tcpAttemptFails.0 = Counter32: 0
TCP-MIB::tcpEstabResets.0 = Counter32: 1
TCP-MIB::tcpCurrEstab.0 = Gauge32: 1
TCP-MIB::tcpInSegs.0 = Counter32: 1835
TCP-MIB::tcpOutSegs.0 = Counter32: 58
TCP-MIB::tcpRetransSegs.0 = Counter32: 0
TCP-MIB::tcpConnState.10.128.8.3.21.0.0.0.0.0 = INTEGER: listen(2)
TCP-MIB::tcpConnLocalAddress.10.128.8.3.21.0.0.0.0.0 = IpAddress: 10.128.8.3
TCP-MIB::tcpConnLocalPort.10.128.8.3.21.0.0.0.0.0 = INTEGER: 21
TCP-MIB::tcpConnRemAddress.10.128.8.3.21.0.0.0.0.0 = IpAddress: 0.0.0.0
TCP-MIB::tcpConnRemPort.10.128.8.3.21.0.0.0.0.0 = INTEGER: 0
TCP-MIB::tcpInErrs.0 = Counter32: 0
TCP-MIB::tcpOutRsts.0 = Counter32: 0
UDP-MIB::udpInDatagrams.0 = Counter32: 7994
UDP-MIB::udpNoPorts.0 = Counter32: 7950
UDP-MIB::udpInErrors.0 = Counter32: 0
UDP-MIB::udpOutDatagrams.0 = Counter32: 5409
UDP-MIB::udpLocalAddress.10.128.8.3.137 = IpAddress: 10.128.8.3
UDP-MIB::udpLocalPort.10.128.8.3.137 = INTEGER: 137
UDP-MIB::udpLocalAddress.10.128.8.3.161 = IpAddress: 10.128.8.3
Error: OID not increasing: UDP-MIB::udpLocalPort.10.128.8.3.137
>= UDP-MIB::udpLocalAddress.10.128.8.3.161