Linux Base--sar View network card traffic

Source: Internet
Author: User

Sar-n Dev #查看当天从零点到当前时间的网卡流量信息sar-n Dev 1 #每秒显示一次, showing 10 times sar-n dev-f/var/log/sa/saxx #查看xx日的网卡流量历史sar-Q #查看历史负载sar -B #查看磁盘读写1, view network card historical traffic focus#sar-N DEVIFACE indicates the device name rxpck/s the number of packets received per second TXPCK/S the number of packets emitted per secondrxkb/s amount of data received per second, unit KByte 1kb=1000byte=8000bittxkb/s amount of data emitted per second, unit KByteIf the server drops very seriously, you need to check the network card traffic is abnormal. Receiving data portion RXPCK greater than 4000, or rxkb greater than 5000, it is possible to be attacked, the normal server network card traffic is not so large. Unless you are copying the data yourself.calculate the actual speed, take RXKB or TXKB peak, convert to KB, for example 686KByte, and then use 686*8/1000=5.4mbitBytes bytes, abbreviated as B "minimum unit of computer hard disk" bit bit, 1byte=8bit "smallest unit in network" bps =bit per Second bits/sec PPS =package per second packet Mb, gb,10gb10g B=10000MB "Computer 1GB=1024MB, network 1GB=1000MB" broadband 10Mb, download speed is 1.25mb,10mb=10mbit 10MBIT/8=1.25MBYTE=1.25MB 2, View network card History for a given day Redhat or the library file for the CentOS release SAR must be in the/var/log/sa/directory. Ls/var/log/sa/found the following two types of files, sa beginning plus date, SAR beginning plus date, the file at the beginning of the SA cannot be directly cat, can only be viewed with sar-f, SAR can be viewed with cat at the beginning. The SAR command will be recycled every month, this month SA01 look at this month's 1th number of network card traffic, can not see the previous network card traffic. #sar-F/var/log/sa/sadd dd for numbers, 25 for number 25th, 29 for 29th # 3, real-time viewing of network card traffic#sar-N DEV 1 5"Refresh every 1 seconds, total 5 times" [[email protected] ~]# sar-n DEV 1 5Linux 2.6.32-431.el6.i686 (ThinkPad) 02/15/17 _i686_ (1 CPU) 23:12:04 IFACE rxpck/s txpck/s rxkb/s txkb/s rxcmp/s txcmp/s rxmcst/s23:12:05 Lo 0.00 0.00 0.00 0.00 0.00 0.00 0.0023:12:05 eth0 1. 01 0.00 0.06 0.00 0.00 0.00 0.00

Linux Base--sar View network card traffic

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.