Linux command Artifact-glances

Source: Internet
Author: User

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

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.