======General Linux System Operations======
======System Monitoring======
======sysstat/sar======
* A package of tools that provides CPU, network and other system statistics.
* sar (system activity report) is the tool for accessing the statistics data.
======Examples of network stats command======
====Network Device Stats=====
sar -n DEV 1 3
# sar -n DEV 1 3
Linux 3.10.0-514.21.2.el7.x86_64 (ip-10-0-1-228.us-east-2.compute.internal) 09/01/2017 _x86_64_ (1 CPU)
03:12:18 PM IFACE rxpck/s txpck/s rxkB/s txkB/s rxcmp/s txcmp/s rxmcst/s
03:12:19 PM eth0 1.00 1.00 0.04 0.20 0.00 0.00 0.00
03:12:19 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00
====Network Device Error Stats=====
sar -n EDEV 1 3
# sar -n EDEV 1 3
Linux 3.10.0-514.21.2.el7.x86_64 (ip-10-0-1-228.us-east-2.compute.internal) 09/01/2017 _x86_64_ (1 CPU)
02:54:13 PM IFACE rxerr/s txerr/s coll/s rxdrop/s txdrop/s txcarr/s rxfram/s rxfifo/s txfifo/s
02:54:14 PM eth0 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00
02:54:14 PM lo 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00