glances(1) - Linux man page
Name
glances - CLI curses based monitoring toolSynopsis
glances [-bdhmnsv] [-t refresh] [-B bind] [-c server] [-p port] [-o output] [-f file]Description
This tool is written in Python and uses PsUtil to fetch the statistical values from key elements.
You can use the following keys to sort the processesi list:
'a' to set the automatic mode. The process list is sorted automatically
'b' to switch between bit/s or byte/s for network IO
'c' the processes list is sorted by CPU consomption
'd' Disable or enable the disk IO stats
'f' Disable or enable the file system stats
'h' Hide or show the help message
'l' Hide or show the logs
'm' the processes list is sorted by process size
'n' Disable or enable the network interfaces stats
'p' The processes list is sorted by process name
'w' Delete finished warning logs messages
'x' Delete finished warning and critical logs
'q' Exit
'1' Switch between global CPU and per core stats
The current version grab the following stats: CPU, Load, Memory, Network rate, Disk IO, file system, process number and details.
Options
- -b
- Display network rate in Byte per second
- -B bind
- Bind server to the given IP or host NAME
- -c server
- Connect to a Glances server (IP address or hostname)
- -d
- Disable disk I/O module
- -f file
- Set the output folder (HTML) or file (CSV)
- -h
- Display the syntax and exit
- -m
- Disable mount module
- -n
- Disable network module
- -o output
- Define additional output (available: HTML or CSV)
- -p port
- Define the client or server TCP port (default: 61209)
- -s
- Run Glances in server mode
- -t sec
- Set the refresh time in seconds (default: 2)
- -v
- Display the version and exit
Examples
- Refresh information every 5 seconds:
- glances -t 5
Exit Status
glances returns a zero exit status if it succeeds to print/grab information.It returns 2 if it fails to parse its options (missing arguments, invalid value, etc).