Linux glances basic use, linuxglances use

Source: Internet
Author: User

Linux glances basic use, linuxglances use

1. Glances Introduction

Glances is an open-source Command Line System Monitoring Tool for Linux and BSD. It is developed in Python, monitors information such as CPU, load, memory, disk I/O, network traffic, file system, and system temperature. Glances can monitor the local machine or other machines through the client server mode; Glances provides APIs Based on XML/RPC for other programs to call and be programmable; glances can save data output to csv or html files for processing by other programs (reporting or drawing graphics)

Ii. Software Installation

This section describes how to install Python-pip on CentOS 6.x. You can download and install it on the open-source official website of glances, the keyword is pip-Python instead of pip.

# Rpm-ivh http://fr2.rpmfind.net/linux/epel/6/x86_64/epel-release-6-7.noarch.rpm

# Yum install python-pip python-devel

# Pip-python install glances

Iii. Use of software

After the installation is complete, enter glances in the command line to start the software. After the software is started, you can see the following interface:

 

 

CPU usage, load usage, memory usage, and Swap usage.

  • Inside the yellow border on the left, from top to bottom, are received and sent by the eth0 Nic, and read and write data in each partition of the hard disk. In this case, my computer is idle, we can see 0, and the last is the usage of the root partition hard disk. The temperature module is not installed here, you can install the lm_sensors software to monitor and monitor the operating voltage, fan speed, temperature, and other data of the motherboard, CPU. You can easily view the temperature of your machine.
  • In the upper half of the right side, the Green Border shows that the current system's task window contains 106 processes, 180 threads, 1 is running, and 106 are sleep.
  • The red border below shows the details of the current process, which is only shown here, mainly including the following

VIRT

Virtual Memory size

RES

Physical memory occupied by the Process

% CPU

Cpu usage occupied by the Process

% MEM

Percentage of physical memory and total memory occupied by the Process

PID

PID of the process

USER

User Name of the process owner

TIME +

Total cpu duration occupied by the process after startup

IO_R

Read rate of a process

IO_W

Process WRITE RATE

NAME

Process name

NI

Process Priority

S

Process status. s indicates sleep, R indicates running, and z indicates frozen.

Use the h key to obtain help information

The functions of buttons are described in English. I will not list them here. If you do not know what they mean, you can check them online. They are all relatively simple in English. Now we will introduce some advanced glances usage.

After the installation is complete, enable the web service and enter the address to access

Start on the server: glances-s-B 172.16.249.163 (Client IP address). You can see that the port number of glances is 61209. Make sure that the server firewall allows client connection. For convenience, here I have a machine

Server and client. Connect the following client

# After glances-c 172.16.249.163, you can see the running status of the server.

You can see that it has been connected to 172.16.249.163.

Iv. Summary

The above is the basic use of glances. It can be seen that it is relatively simple. You can simply use it several times. The above is just a simple usage. If you have any questions, I hope you will be grateful for your advice.

 

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.