Linux SAR Command

Source: Internet
Author: User

SAR command

Function description

The SAR command can monitor multiple active parameters of the system.

Centos7, due to the use of minimal installation, the default is not with this command, the following is the installation command demo:

[Email protected] app]# SAR #提示没有找到命令

-bash:sar: Command not found

[Email protected] ~]# Yum provides */sar #查询sar使用sysstat软件包

... Slightly

Sysstat-10.1.5-7.el7.x86_64:collection of performance monitoring tools for Linux

... Slightly

[Email protected] ~]# yum-y install sysstat #安装sysstat

[Email protected] app]# SAR #安装成功

Linux 3.10.0-229.el7.x86_64 (C7) November 23, 2016 _x86_64_ (2 CPU)

Example

View network card traffic information, collected once every 3 seconds, showing 2 times

[[email protected] app]# sar-n DEV 3 2

Linux 3.10.0-229.el7.x86_64 (C7) November 23, 2016 _x86_64_ (2 CPU)


11:25 42 sec IFACE rxpck/s txpck/s rxkb/s txkb/s rxcmp/s txcmp/s rxmcst/s

11:25 45 sec eno16777736 2.66 0.33 0.21 0.02 0.00 0.00 0.00

11:25 45 sec Lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00


11:25 45 sec IFACE rxpck/s txpck/s rxkb/s txkb/s rxcmp/s txcmp/s rxmcst/s

11:25 48 sec eno16777736 1.66 0.33 0.13 0.13 0.00 0.00 0.00

11:25 48 sec Lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00


Average time: IFACE rxpck/s txpck/s rxkb/s txkb/s rxcmp/s txcmp/s rxmcst/s

Average time: eno16777736 2.16 0.33 0.17 0.07 0.00 0.00 0.00

Average Time: Lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00



This article is from the "Zhao Dongwei blog" blog, make sure to keep this source http://zhaodongwei.blog.51cto.com/4233742/1875707

Linux SAR Command

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.