SNMP采集主机网络连接、IP地址、路由、ARP信息


.iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry
.iso.org.dod.internet.mgmt.mib-2.ip.ipAddrTable.ipAddrEntry
.iso.org.dod.internet.mgmt.mib-2.ip.ipRouteTable.ipRouteEntry
.iso.org.dod.internet.mgmt.mib-2.ip.ipNetToMediaTable.ipNetToMediaEntry

C:\usr\bin>snmpwalk -v 2c -c public 192.168.111.139 .iso.org.dod.internet.mgmt.mib-2.ip.ipAddrTable.ipAddrEntry
IP-MIB::ipAdEntAddr.127.0.0.1 = IpAddress: 127.0.0.1
IP-MIB::ipAdEntAddr.192.168.111.139 = IpAddress: 192.168.111.139
IP-MIB::ipAdEntAddr.192.168.122.1 = IpAddress: 192.168.122.1
IP-MIB::ipAdEntIfIndex.127.0.0.1 = INTEGER: 1
IP-MIB::ipAdEntIfIndex.192.168.111.139 = INTEGER: 2
IP-MIB::ipAdEntIfIndex.192.168.122.1 = INTEGER: 3
IP-MIB::ipAdEntNetMask.127.0.0.1 = IpAddress: 255.0.0.0
IP-MIB::ipAdEntNetMask.192.168.111.139 = IpAddress: 255.255.255.0
IP-MIB::ipAdEntNetMask.192.168.122.1 = IpAddress: 255.255.255.0
IP-MIB::ipAdEntBcastAddr.127.0.0.1 = INTEGER: 0
IP-MIB::ipAdEntBcastAddr.192.168.111.139 = INTEGER: 1
IP-MIB::ipAdEntBcastAddr.192.168.122.1 = INTEGER: 1

C:\usr\bin>snmpwalk -v 2c -c public 192.168.111.139 .iso.org.dod.internet.mgmt.mib-2.ip.ipRouteTable.ipRouteEntry
RFC1213-MIB::ipRouteDest.0.0.0.0 = IpAddress: 0.0.0.0
RFC1213-MIB::ipRouteDest.192.168.111.0 = IpAddress: 192.168.111.0
RFC1213-MIB::ipRouteDest.192.168.122.0 = IpAddress: 192.168.122.0
RFC1213-MIB::ipRouteIfIndex.0.0.0.0 = INTEGER: 2
RFC1213-MIB::ipRouteIfIndex.192.168.111.0 = INTEGER: 2
RFC1213-MIB::ipRouteIfIndex.192.168.122.0 = INTEGER: 3
RFC1213-MIB::ipRouteMetric1.0.0.0.0 = INTEGER: 1
RFC1213-MIB::ipRouteMetric1.192.168.111.0 = INTEGER: 0
RFC1213-MIB::ipRouteMetric1.192.168.122.0 = INTEGER: 0
RFC1213-MIB::ipRouteNextHop.0.0.0.0 = IpAddress: 192.168.111.2
RFC1213-MIB::ipRouteNextHop.192.168.111.0 = IpAddress: 0.0.0.0
RFC1213-MIB::ipRouteNextHop.192.168.122.0 = IpAddress: 0.0.0.0
RFC1213-MIB::ipRouteType.0.0.0.0 = INTEGER: indirect(4)
RFC1213-MIB::ipRouteType.192.168.111.0 = INTEGER: direct(3)
RFC1213-MIB::ipRouteType.192.168.122.0 = INTEGER: direct(3)
RFC1213-MIB::ipRouteProto.0.0.0.0 = INTEGER: local(2)
RFC1213-MIB::ipRouteProto.192.168.111.0 = INTEGER: local(2)
RFC1213-MIB::ipRouteProto.192.168.122.0 = INTEGER: local(2)
RFC1213-MIB::ipRouteMask.0.0.0.0 = IpAddress: 0.0.0.0
RFC1213-MIB::ipRouteMask.192.168.111.0 = IpAddress: 255.255.255.0
RFC1213-MIB::ipRouteMask.192.168.122.0 = IpAddress: 255.255.255.0
RFC1213-MIB::ipRouteInfo.0.0.0.0 = OID: SNMPv2-SMI::zeroDotZero
RFC1213-MIB::ipRouteInfo.192.168.111.0 = OID: SNMPv2-SMI::zeroDotZero
RFC1213-MIB::ipRouteInfo.192.168.122.0 = OID: SNMPv2-SMI::zeroDotZero

C:\usr\bin>snmpwalk -v 2c -c public 192.168.111.139 .iso.org.dod.internet.mgmt.mib-2.ip.ipNetToMediaTable.ipNetToMediaEntry
IP-MIB::ipNetToMediaIfIndex.2.192.168.111.1 = INTEGER: 2
IP-MIB::ipNetToMediaIfIndex.2.192.168.111.2 = INTEGER: 2
IP-MIB::ipNetToMediaIfIndex.2.192.168.111.254 = INTEGER: 2
IP-MIB::ipNetToMediaPhysAddress.2.192.168.111.1 = STRING: 0:50:56:c0:0:8
IP-MIB::ipNetToMediaPhysAddress.2.192.168.111.2 = STRING: 0:50:56:f7:7b:e9
IP-MIB::ipNetToMediaPhysAddress.2.192.168.111.254 = STRING: 0:50:56:f5:bf:5
IP-MIB::ipNetToMediaNetAddress.2.192.168.111.1 = IpAddress: 192.168.111.1
IP-MIB::ipNetToMediaNetAddress.2.192.168.111.2 = IpAddress: 192.168.111.2
IP-MIB::ipNetToMediaNetAddress.2.192.168.111.254 = IpAddress: 192.168.111.254
IP-MIB::ipNetToMediaType.2.192.168.111.1 = INTEGER: dynamic(3)
IP-MIB::ipNetToMediaType.2.192.168.111.2 = INTEGER: dynamic(3)
IP-MIB::ipNetToMediaType.2.192.168.111.254 = INTEGER: dynamic(3)

C:\usr\bin>snmpwalk -v 2c -c public 192.168.111.139 .iso.org.dod.internet.mgmt.mib-2.interfaces.ifTable.ifEntry
IF-MIB::ifIndex.1 = INTEGER: 1
IF-MIB::ifIndex.2 = INTEGER: 2
IF-MIB::ifIndex.3 = INTEGER: 3
IF-MIB::ifIndex.4 = INTEGER: 4
IF-MIB::ifDescr.1 = STRING: lo
IF-MIB::ifDescr.2 = STRING: ens34
IF-MIB::ifDescr.3 = STRING: virbr0
IF-MIB::ifDescr.4 = STRING: virbr0-nic
IF-MIB::ifType.1 = INTEGER: softwareLoopback(24)
IF-MIB::ifType.2 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.3 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifType.4 = INTEGER: ethernetCsmacd(6)
IF-MIB::ifMtu.1 = INTEGER: 65536
IF-MIB::ifMtu.2 = INTEGER: 1500
IF-MIB::ifMtu.3 = INTEGER: 1500
IF-MIB::ifMtu.4 = INTEGER: 1500
IF-MIB::ifSpeed.1 = Gauge32: 10000000
IF-MIB::ifSpeed.2 = Gauge32: 0
IF-MIB::ifSpeed.3 = Gauge32: 0
IF-MIB::ifSpeed.4 = Gauge32: 10000000
IF-MIB::ifPhysAddress.1 = STRING:
IF-MIB::ifPhysAddress.2 = STRING: 0:c:29:d1:5b:3
IF-MIB::ifPhysAddress.3 = STRING: 52:54:0:a9:5c:4b
IF-MIB::ifPhysAddress.4 = STRING: 52:54:0:a9:5c:4b
IF-MIB::ifAdminStatus.1 = INTEGER: up(1)
IF-MIB::ifAdminStatus.2 = INTEGER: up(1)
IF-MIB::ifAdminStatus.3 = INTEGER: up(1)
IF-MIB::ifAdminStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.1 = INTEGER: up(1)
IF-MIB::ifOperStatus.2 = INTEGER: up(1)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifLastChange.1 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.2 = Timeticks: (0) 0:00:00.00
IF-MIB::ifLastChange.3 = Timeticks: (608) 0:00:06.08
IF-MIB::ifLastChange.4 = Timeticks: (608) 0:00:06.08
IF-MIB::ifInOctets.1 = Counter32: 1540
IF-MIB::ifInOctets.2 = Counter32: 113296
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInUcastPkts.1 = Counter32: 28
IF-MIB::ifInUcastPkts.2 = Counter32: 1443
IF-MIB::ifInUcastPkts.3 = Counter32: 0
IF-MIB::ifInUcastPkts.4 = Counter32: 0
IF-MIB::ifInNUcastPkts.1 = Counter32: 0
IF-MIB::ifInNUcastPkts.2 = Counter32: 0
IF-MIB::ifInNUcastPkts.3 = Counter32: 0
IF-MIB::ifInNUcastPkts.4 = Counter32: 0
IF-MIB::ifInDiscards.1 = Counter32: 0
IF-MIB::ifInDiscards.2 = Counter32: 0
IF-MIB::ifInDiscards.3 = Counter32: 0
IF-MIB::ifInDiscards.4 = Counter32: 0
IF-MIB::ifInErrors.1 = Counter32: 0
IF-MIB::ifInErrors.2 = Counter32: 0
IF-MIB::ifInErrors.3 = Counter32: 0
IF-MIB::ifInErrors.4 = Counter32: 0
IF-MIB::ifInUnknownProtos.1 = Counter32: 0
IF-MIB::ifInUnknownProtos.2 = Counter32: 0
IF-MIB::ifInUnknownProtos.3 = Counter32: 0
IF-MIB::ifInUnknownProtos.4 = Counter32: 0
IF-MIB::ifOutOctets.1 = Counter32: 1540
IF-MIB::ifOutOctets.2 = Counter32: 65445
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutUcastPkts.1 = Counter32: 28
IF-MIB::ifOutUcastPkts.2 = Counter32: 738
IF-MIB::ifOutUcastPkts.3 = Counter32: 0
IF-MIB::ifOutUcastPkts.4 = Counter32: 0
IF-MIB::ifOutNUcastPkts.1 = Counter32: 0
IF-MIB::ifOutNUcastPkts.2 = Counter32: 0
IF-MIB::ifOutNUcastPkts.3 = Counter32: 0
IF-MIB::ifOutNUcastPkts.4 = Counter32: 0
IF-MIB::ifOutDiscards.1 = Counter32: 0
IF-MIB::ifOutDiscards.2 = Counter32: 0
IF-MIB::ifOutDiscards.3 = Counter32: 0
IF-MIB::ifOutDiscards.4 = Counter32: 0
IF-MIB::ifOutErrors.1 = Counter32: 0
IF-MIB::ifOutErrors.2 = Counter32: 0
IF-MIB::ifOutErrors.3 = Counter32: 0
IF-MIB::ifOutErrors.4 = Counter32: 0
IF-MIB::ifOutQLen.1 = Gauge32: 0
IF-MIB::ifOutQLen.2 = Gauge32: 0
IF-MIB::ifOutQLen.3 = Gauge32: 0
IF-MIB::ifOutQLen.4 = Gauge32: 0
IF-MIB::ifSpecific.1 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.2 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.3 = OID: SNMPv2-SMI::zeroDotZero
IF-MIB::ifSpecific.4 = OID: SNMPv2-SMI::zeroDotZero

猜你喜欢

转载自blog.csdn.net/allway2/article/details/92681317