Glances is an open source command line system Monitoring tool for Linux and BSD, which is developed using the Python language and uses the Psutil library to capture system data and monitor CPU, load, memory, disk I/O, network traffic, file system, system temperature, and other information. Compared to Top/vmstat/iostat and other veteran monitoring tools, glances has the advantage is: Glances can monitor the machine can also monitor other machines through the client server mode, glances provides a XML/RPC-based API for other program calls, programmable Glances can save the data output to a CSV or HTML-formatted file for other programs to process (report or draw graphics).
First, the installation of Glances
There are usually two ways to install glances. The first is to compile the source code in such a way that this method is more complex and may encounter a package dependency problem. Another option is to use a specific package management tool (such as Easy_install or Pip,centos called Pip-python) to install Glances, which is relatively straightforward.
How to install under Ubuntu
sudo apt-get updatesudo apt-get install python-pip build-essential python-devsudo pip install glances
Installation under CentOS
RPM-IVH Http://fr2.rpmfind.net/linux/epel/6/x86_64/epel-release-6-8.noarch.rpmyum Install Python-pip Python-develpip-python Install glances
The parameters and usage of glances
glances
glances is a command-line tool that includes the following command options: -b: Show network connection speed Byte/ seconds -B @IP |host : Bind server side IP address or host name -c @IP |host: Connection glances Server Side -c file: Setting profile default is /etc/glances/glances.conf -d: Turn off disk I/O module  -E: Display sensor temperature -f file: Set Output file (format HTML or csv) -m: Close the Mounted disk module -n: Turn off the network module -p Port: Set the Run port by default is 61209 -p password: Set client / server password -s: Set glances run mode for server  -T SEC: Sets the time interval for screen refresh, in seconds, the default value is 2 seconds, and the value license range:1~32767 -h : display Help information -v : Display version Information
[Email protected]:/home/leco# glances
Linux command Artifact-glances