Glances is a free (LGPL) cross-platform curses-based monitoring tool which aims to present a maximum of information in a minimum of space, ideally to fit in a classical 80x24 terminal or higher to have additionnal information. Glances can adapt dynamically the displayed information depending on the terminal size. It can also work in a client/server mode for remote monitoring.
Install glances tool using the command
# yum -y install glances
Basic Syntax is as follows::
# glances
# glances [options]
Use the following hot keys to find tune your output:
- a Sort processes automatically.
- c Sort processes by CPU%.
- m Sort processes by MEM%.
- p Sort processes by name.
- i Sort processes by I/O rate.
- d Show/hide disk I/O stats.
- f Show/hide file system stats.
- n Show/hide network stats.
- s Show/hide sensors stats.
- y Show/hide hddtemp stats.
- l Show/hide logs.
- b Bytes or bits for network I/O.
- w Delete warning logs.
- x Delete warning and critical logs.
- 1 Global CPU or per-CPU stats.
- t View network I/O as combination.
- u - View cumulative network I/O.
On server type the following command to bind server to the given IPv4/IPv6 address or hostname:
# glances -B @IP|host
# glances -B IP
# glances -B www.host.com
From your desktop client such as OSX/FreeBSD/Linux based system type the following command to connect to a Glances server by IPv4/IPv6 address or hostname:
# glances -c @IP|host
# glances -c IP
# glances -c www.host.com