Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to use Sysstat in linux

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

Editor to share with you how to use Sysstat in linux. I hope you will get something after reading this article. Let's discuss it together.

List of features of Sysstat:

◆ iostat: count and report the CPU status and Imax O status data of your device.

◆ mpstat: monitor and display detailed information about CPU.

◆ pidstat: counts the CPU, memory, and other information of running processes / tasks.

◆ sar: saves and reports details of different resources (CPU, memory, I / O, network, kernel, etc.).

◆ sadc: the system active data collector, which is used to collect background data for sar.

◆ sa1: reads and stores binary data in sadc's data files.

◆ sa2: collaborate with sar to summarize daily reports.

◆ Sadf: displays the data generated by sar in a different format (CSV or XML).

◆ Sysstat: explain the various functions of sysstat.

◆ nfsiostat-sysstat: statistics of the NFS protocol's network file system's Imax O status data.

◆ cifsiostat: statistics of the CIFS protocol's network file system's Imax O status data.

On June 17, 2014, SYSSTAT11.0.0 (stable version) was officially released. It brings some new and interesting features, as shown below.

The pidstat command has been enhanced with some new command options:

One is "- R", which provides policy and task scheduling priorities. The second is "- G", which can be used to search for processes by name and get a list of all corresponding matching threads.

At the same time, new enhancements have been made to sar, sadc, and sadf commands in terms of data files. Now, with the option-D, you can rename the data file to "saYYYYMMDD" instead of "saDD", or you can use a different directory instead of just "/ var/log/sa". We can also define new directories for sa1 and sa2 to use by setting the variable "SA_DIR".

In the Linux environment, install Sysstat

This "Sysstat" package is of course available and installed in the package repository of the major Linux distributions. However, the package obtained from the software library is a scaled-down version and an old version. So, that's why we download and install the * version (11.0.0) on the website where the package is located.

First, use the link below to download the * * version of the sysstat package, or you can download it directly from the terminal using the wget command.

Http://sebastien.godard.pagesperso-orange.fr/download.html

# wget http://pagesperso-orange.fr/sebastien.godard/sysstat-11.0.0.tar.gz

Next, extract the downloaded package, then enter the directory to begin the compilation process.

# tar-xvf sysstat-11.0.0.tar.gz # cd sysstat-11.0.0/

At this point, there are two options:

For one thing, you can use the iconfig command (which gives you the freedom to set custom values for each parameter).

#. / iconfig

Second, you can use the standard configure command to define options for a single line. That is, run the. / configure-help command to get a list of supported options.

#. / configure-help

Here, we use the standard option to compile the sysstat package using the. / configure command.

#. / configure # make # make install

When the compilation is complete, you will see an output similar to the one above. Now verify the version of sysstat by running the command.

# mpstat-V sysstat version 11.0.0 (C) Sebastien Godard (sysstat orange.fr)

Update Sysstat in Linux system

By default, the compilation installation will place the package in the / usr/local directory. Therefore, all binary / public files will be installed in the "/ usr/local/bin" directory. If you have installed the sysstat package, you can find those files directly in "/ usr/bin".

If you have installed the sysstat package and your system does not add "/ usr/local/bin" to the "$PATH" variable, you will not be prompted for a version update. So, when compiling or deleting an existing version before updating, be sure to make sure that "/ usr/local/bin" is set in the "$PATH" variable of the system or that the "/ usr" content has been configured for the-prefix option.

# yum remove sysstat [On RedHat based System] # apt-get remove sysstat [On Debian based System] #. / configure-- prefix=/usr # make # make install

Now, confirm the updated version again using the same "" mpstat "command and"-V "option.

# mpstat-V sysstat version 11.0.0 (C) Sebastien Godard (sysstat orange.fr) after reading this article, I believe you have some understanding of "how to use Sysstat in linux". If you want to know more about it, you are welcome to follow the industry information channel. Thank you for reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report