Chinaunix首页 | 论坛 | 博客
  • 博客访问: 3660753
  • 博文数量: 880
  • 博客积分: 0
  • 博客等级: 民兵
  • 技术积分: 6155
  • 用 户 组: 普通用户
  • 注册时间: 2016-11-11 09:12
个人简介

To be a better coder

文章分类

全部博文(880)

文章存档

2022年(5)

2021年(60)

2020年(175)

2019年(207)

2018年(210)

2017年(142)

2016年(81)

分类: LINUX

2019-01-07 13:55:10

[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 /]#

阅读(1360) | 评论(0) | 转发(0) |
给主人留下些什么吧!~~