ethtool包统计

新版本的ethtool 可以统计到常见的包大小,这个不错

root@xxxxx:~# ethtool -S eth0

NIC statistics:
     rx_bytes: 2155478478
     rx_error_bytes: 0
     tx_bytes: 3510224260
     tx_error_bytes: 0
     rx_ucast_packets: 14068750
     rx_mcast_packets: 0
     rx_bcast_packets: 26660
     tx_ucast_packets: 16776544
     tx_mcast_packets: 0
     tx_bcast_packets: 908
     tx_mac_errors: 0
     tx_carrier_errors: 0
     rx_crc_errors: 0
     rx_align_errors: 0
     tx_single_collisions: 0
     tx_multi_collisions: 0
     tx_deferred: 0
     tx_excess_collisions: 0
     tx_late_collisions: 0
     tx_total_collisions: 0
     rx_fragments: 0
     rx_jabbers: 0
     rx_undersize_packets: 0
     rx_oversize_packets: 0
     rx_64_byte_packets: 97283
     rx_65_to_127_byte_packets: 7875839
     rx_128_to_255_byte_packets: 1482001
     rx_256_to_511_byte_packets: 4618999
     rx_512_to_1023_byte_packets: 19572
     rx_1024_to_1522_byte_packets: 2198
     rx_1523_to_9022_byte_packets: 0
     tx_64_byte_packets: 1871
     tx_65_to_127_byte_packets: 9915426
     tx_128_to_255_byte_packets: 2323271
     tx_256_to_511_byte_packets: 3662517
     tx_512_to_1023_byte_packets: 165323
     tx_1024_to_1522_byte_packets: 709044
     tx_1523_to_9022_byte_packets: 0
     rx_xon_frames: 241
     rx_xoff_frames: 241
     tx_xon_frames: 0
     tx_xoff_frames: 0
     rx_mac_ctrl_frames: 0
     rx_filtered_packets: 1151777
     rx_discards: 0
     rx_fw_discards: 0

你可能感兴趣的:(ethtool stat)