[root@localhost ens5]#
[root@localhost ens5]# ls
addr_assign_type addr_len carrier device dev_port duplex ifalias iflink mtu netdev_group phys_port_id queues statistics tx_queue_len uevent
address broadcast carrier_changes dev_id dormant flags ifindex link_mode name_assign_type operstate power speed subsystem type
[root@localhost ens5]#
[root@localhost ens5]#
[root@localhost ens5]# cd statistics/
[root@localhost statistics]#
[root@localhost statistics]#
[root@localhost statistics]# ls
collisions rx_bytes rx_crc_errors rx_errors rx_frame_errors rx_missed_errors rx_packets tx_bytes tx_compressed tx_errors tx_heartbeat_errors tx_window_errors
multicast rx_compressed rx_dropped rx_fifo_errors rx_length_errors rx_over_errors tx_aborted_errors tx_carrier_errors tx_dropped tx_fifo_errors tx_packets
[root@localhost statistics]#
[root@localhost statistics]#
[root@localhost statistics]# cat rx_packets
994958
[root@localhost statistics]#
[root@localhost statistics]#
[root@localhost statistics]# pwd
/sys/class/net/ens5/statistics
[root@localhost statistics]#
[root@localhost statistics]#
[root@localhost statistics]# cd /
[root@localhost /]#
[root@localhost /]#
[root@localhost /]# cat /sys/class/net/ens
ens3/ ens4/ ens5/ ens6/
[root@localhost /]# cat /sys/class/net/ens
ens3/ ens4/ ens5/ ens6/
[root@localhost /]# cat /sys/class/net/ens5/
addr_assign_type broadcast device/ dormant ifalias link_mode netdev_group power/ statistics/ type
address carrier dev_id duplex ifindex mtu operstate queues/ subsystem/ uevent
addr_len carrier_changes dev_port flags iflink name_assign_type phys_port_id speed tx_queue_len
[root@localhost /]# cat /sys/class/net/ens5/statistics/tx_packets
0
[root@localhost /]#
阅读(1437) | 评论(0) | 转发(0) |