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