全部博文(167)
分类: 系统运维
2010-06-04 19:10:28
(端口信息)
# 端口列表
[root@affnet-cnc2300-63 ~]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.2.1.2.2.1.2
IF-MIB::ifDescr.1 = STRING: Ethernet 1
IF-MIB::ifDescr.2 = STRING: Ethernet 2
IF-MIB::ifDescr.3 = STRING: Ethernet 3
IF-MIB::ifDescr.4 = STRING: Ethernet 4
IF-MIB::ifDescr.5 = STRING: Ethernet 5
IF-MIB::ifDescr.6 = STRING: Ethernet 6
IF-MIB::ifDescr.7 = STRING: Ethernet 7
IF-MIB::ifDescr.8 = STRING: Ethernet 8
IF-MIB::ifDescr.9 = STRING: Ethernet 9
IF-MIB::ifDescr.10 = STRING: Ethernet 10
IF-MIB::ifDescr.11 = STRING: Ethernet 11
IF-MIB::ifDescr.12 = STRING: Ethernet 12
或
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.7.1.1.2.1.2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.1 = STRING: "ethernet1"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.2 = STRING: "ethernet2"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.3 = STRING: "ethernet3"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.4 = STRING: "ethernet4"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.5 = STRING: "ethernet5"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.6 = STRING: "ethernet6"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.7 = STRING: "ethernet7"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.8 = STRING: "ethernet8"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.9 = STRING: "ethernet9"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.10 = STRING: "ethernet10"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.11 = STRING: "ethernet11"
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.2.12 = STRING: "ethernet12"
# 端口MAC地址
[root@affnet-cnc2300-63 ~]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.2.1.2.2.1.6
IF-MIB::ifPhysAddress.1 = STRING: 0:1f:a0:1:2d:53:0
IF-MIB::ifPhysAddress.2 = STRING: 0:1f:a0:1:2d:52:0
IF-MIB::ifPhysAddress.3 = STRING: 0:1f:a0:1:2d:51:0
IF-MIB::ifPhysAddress.4 = STRING: 0:1f:a0:1:2d:50:0
IF-MIB::ifPhysAddress.5 = STRING: 0:1f:a0:1:2d:57:0
IF-MIB::ifPhysAddress.6 = STRING: 0:1f:a0:1:2d:56:0
IF-MIB::ifPhysAddress.7 = STRING: 0:1f:a0:1:2d:55:0
IF-MIB::ifPhysAddress.8 = STRING: 0:1f:a0:1:2d:54:0
IF-MIB::ifPhysAddress.9 = STRING: 0:1f:a0:1:34:f3:0
IF-MIB::ifPhysAddress.10 = STRING: 0:1f:a0:1:34:f2:0
IF-MIB::ifPhysAddress.11 = STRING: 0:1f:a0:1:34:f2:0
IF-MIB::ifPhysAddress.12 = STRING: 0:1f:a0:1:34:f2:0
或
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.7.1.1.2.1.7
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.1 = Hex-STRING: 00 1F A0 01 2D 53
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.2 = Hex-STRING: 00 1F A0 01 2D 52
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.3 = Hex-STRING: 00 1F A0 01 2D 51
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.4 = Hex-STRING: 00 1F A0 01 2D 50
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.5 = Hex-STRING: 00 1F A0 01 2D 57
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.6 = Hex-STRING: 00 1F A0 01 2D 56
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.7 = Hex-STRING: 00 1F A0 01 2D 55
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.8 = Hex-STRING: 00 1F A0 01 2D 54
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.9 = Hex-STRING: 00 1F A0 01 34 F3
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.10 = Hex-STRING: 00 1F A0 01 34 F2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.11 = Hex-STRING: 00 1F A0 01 34 F2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.7.12 = Hex-STRING: 00 1F A0 01 34 F2
# 端口IP地址
# 端口updown情况
[root@affnet-cnc2300-63 ~]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.2.1.2.2.1.8
IF-MIB::ifOperStatus.1 = INTEGER: down(2)
IF-MIB::ifOperStatus.2 = INTEGER: down(2)
IF-MIB::ifOperStatus.3 = INTEGER: down(2)
IF-MIB::ifOperStatus.4 = INTEGER: down(2)
IF-MIB::ifOperStatus.5 = INTEGER: down(2)
IF-MIB::ifOperStatus.6 = INTEGER: down(2)
IF-MIB::ifOperStatus.7 = INTEGER: down(2)
IF-MIB::ifOperStatus.8 = INTEGER: down(2)
IF-MIB::ifOperStatus.9 = INTEGER: up(1)
IF-MIB::ifOperStatus.10 = INTEGER: up(1)
IF-MIB::ifOperStatus.11 = INTEGER: up(1)
IF-MIB::ifOperStatus.12 = INTEGER: up(1)
或(0为up,1为down,2为disabled)
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.7.1.1.2.1.10
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.1 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.2 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.3 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.4 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.5 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.6 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.7 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.8 = INTEGER: 2
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.9 = INTEGER: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.10 = INTEGER: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.11 = INTEGER: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.1.2.1.10.12 = INTEGER: 0
# 端口入流量(Bytes)
[root@affnet-cnc2300-63 ~]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.2.1.2.2.1.10
IF-MIB::ifInOctets.1 = Counter32: 0
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.5 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 0
IF-MIB::ifInOctets.7 = Counter32: 0
IF-MIB::ifInOctets.8 = Counter32: 0
IF-MIB::ifInOctets.9 = Counter32: 1618342157
IF-MIB::ifInOctets.10 = Counter32: 1106432400
IF-MIB::ifInOctets.11 = Counter32: 3931695155
IF-MIB::ifInOctets.12 = Counter32: 900514307
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.7.1.2.1.1.3
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.1 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.2 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.3 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.4 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.5 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.6 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.7 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.8 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.9 = Counter64: 5288840853496
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.10 = Counter64: 622283155500
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.11 = Counter64: 566879733148
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.3.12 = Counter64: 125888619777
# 端口出流量(Bytes)
[root@affnet-cnc2300-63 ~]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.2.1.2.2.1.16
IF-MIB::ifOutOctets.1 = Counter32: 0
IF-MIB::ifOutOctets.2 = Counter32: 0
IF-MIB::ifOutOctets.3 = Counter32: 0
IF-MIB::ifOutOctets.4 = Counter32: 0
IF-MIB::ifOutOctets.5 = Counter32: 0
IF-MIB::ifOutOctets.6 = Counter32: 0
IF-MIB::ifOutOctets.7 = Counter32: 0
IF-MIB::ifOutOctets.8 = Counter32: 0
IF-MIB::ifOutOctets.9 = Counter32: 4128519989
IF-MIB::ifOutOctets.10 = Counter32: 507264453
IF-MIB::ifOutOctets.11 = Counter32: 3863188492
IF-MIB::ifOutOctets.12 = Counter32: 2880706259
或
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.7.1.2.1.1.5
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.1 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.2 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.3 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.4 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.5 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.6 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.7 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.8 = Counter64: 0
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.9 = Counter64: 16009596026
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.10 = Counter64: 2905773873604
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.11 = Counter64: 2907149097525
SNMPv2-SMI::enterprises.22610.2.4.1.7.1.2.1.1.5.12 = Counter64: 551270988231
(系统信息)
# 多个CPU负载的平均值(过去5秒)
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.3.3.0
SNMPv2-SMI::enterprises.22610.2.4.1.3.3.0 = INTEGER: 3
# Memory当前使用(KByte)
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.2.2.0
SNMPv2-SMI::enterprises.22610.2.4.1.2.2.0 = INTEGER: 1369244
# Memory总量(KByte)
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 1.3.6.1.4.1.22610.2.4.1.2.1.0
SNMPv2-SMI::enterprises.22610.2.4.1.2.1.0 = INTEGER: 4146004
# 主机名
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 .1.3.6.1.2.1.1.5.0
SNMPv2-MIB::sysName.0 = STRING: AX-2100-1
# 序列号
[root@affnet-cnc2300-63 net-snmp-5.2.1]# snmpwalk -v 2c -c Pub_PCon9-CT 192.168.232.9 .1.3.6.1.4.1.22610.2.4.1.6.2.0
SNMPv2-SMI::enterprises.22610.2.4.1.6.2.0 = STRING: "AX21141109460011"