[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.10
IF-MIB::ifInOctets.1 = Counter32: 1926573344
IF-MIB::ifInOctets.2 = Counter32: 0
IF-MIB::ifInOctets.3 = Counter32: 0
IF-MIB::ifInOctets.4 = Counter32: 0
IF-MIB::ifInOctets.6 = Counter32: 267822969
IF-MIB::ifInOctets.7 = Counter32: 0
IF-MIB::ifInOctets.8 = Counter32: 0
[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.10.1
IF-MIB::ifInOctets.1 = Counter32: 1926573344
[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.16.1
IF-MIB::ifOutOctets.1 = Counter32: 1926573344
[root@VM-0-14-centos ~]# snmpwalk -v 2c -c public [交换机IP] 1.3.6.1.2.1.2.2.1.2