In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article will explain in detail how to use Glances in Ubuntu. The editor thinks it is very practical, so I share it with you as a reference. I hope you can get something after reading this article.
There are few command-line tools that can adapt to different terminal sizes and provide users with limited information. The display of most tools is similar-either the message is confused or the tool gives an error message. However, Glances is a tool that supports the display of a large amount of system / network monitoring information from 80X24 terminals to any larger terminal.
Tip-all the examples in this article have been tested on bash shell in Ubuntu 13.04.
A short tutorial
Glances is a system monitoring tool that displays a variety of system-related information on your terminal. This information includes:
CPU related information
Information about disk IO
Memory related information
Mount point related information
Information about network interface
Process related information
Wait
This is a screenshot of the glances sample:
It is written in python and uses the psutils library to get the display of all system-related information. The display of Glances on terminals is very flexible, for example, it can display more information on terminals as small as 80X24.
This is a screenshot of glances on a smaller terminal:
You can see that it can display some information even on smaller terminals.
Not only can you use Glances to monitor local systems, it can also be used to monitor remote systems. Using glances on the remote system, run the following command:
Glances-s
And execute on the client:
Glances-c [ip-address-of-server]
In glances S mode, there are some key points that users should keep in mind when using glances [taken from the official glances documentation]:
On the server side, you can use-B address and-p port to set the bound IP address and port. On the client side, use-p port to specify the port on the server side of the connection. The default binding address is 0.0.0.0 (that is, listening on all network interfaces) and on the 61209/TCP port.
In Cpact S mode, the limit is set on the server side. You can also specify a connection password with-P password. Glances also supports IPv6, which can be bound to all IPv6 addresses with-B::.
In addition, there are several command line options available for customizing information, such as:
Use-m to suppress the display of mount related information
Use-n to suppress the display of network-related information
Use-t to set the screen refresh interval
Wait
Explore and discover more of these options through the man man page.
In addition to the command line options, glances provides many help options that you can use while glances is running. This is a list of options:
So you can see that glances is not only flexible but also highly customizable.
Download / install
Here are some important links related to the glances tool:
Home page
Download page
Document
You can download and install Glances from the software source, but this requires a pre-installed python-dev module. Ubuntu users can download and install directly through the Ubuntu Software Center. The versions used in this article are 1.7.1 and PsUtil 0.6.1.
Summary
Glances is a tool for system administrators to quickly get a complete overview of the system. It is a good tool on your baby computer and can come in handy in debugging some system-related problems. Display flexibility must be excellent.
Advantages
Provide a lot of system-related information under the same circumstances
Flexible display
Shortcoming
When the terminal is smaller, you must specify some options to display more information.
Building from source code depends on additional libraries, such as python-dev.
This is the end of this article on "how to use Glances in Ubuntu". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, please share it for more people to see.
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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.