summaryrefslogtreecommitdiffstats
path: root/man/glances.1
blob: 2d77c49902a34e61649ff8bd000e19efbf6b1039 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
.TH glances 1  "December, 2013" "version 1.7.3" "USER COMMANDS"
.SH NAME
glances \- A cross-platform curses-based monitoring tool
.SH SYNOPSIS
.B glances
[\-bdehmnrsvyz1] [\-B bind] [\-c server] [\-C conffile] [\-f file] [\-o output] [\-p port] [\-P password] [\-t refresh]
.SH DESCRIPTION
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.
.PP
Glances can adapt dynamically the displayed information depending on the terminal size. It can also
work in a client/server mode for remote monitoring.
.PP
This tool is written in Python and uses the psutil library to fetch the statistical values from key elements,
like CPU, load average, memory, network, disks, file systems, processes, etc.
.SH COMMAND-LINE OPTIONS
The command-line options are the following:
.TP
.B \-b
Display network rate in Byte per second (default: bit per second)
.TP
.B \-B @IP|HOST
Bind server to the given IPv4/IPv6 address or hostname
.TP
.B \-c @IP|HOST
Connect to a Glances server by IPv4/IPv6 address or hostname
.TP
.B \-C FILE
Path to the configuration file
.TP
.B \-d
Disable disk I/O module
.TP
.B \-e
Enable sensors module (requires pysensors, Linux-only)
.TP
.B \-f FILE
Set the HTML output folder or CSV file
.TP
.B \-h
Display the help and exit
.TP
.B \-m
Disable mount module
.TP
.B \-n
Disable network module
.TP
.B \-o OUTPUT
Define additional output (available: HTML or CSV)
.TP
.B \-p PORT
Define the client/server TCP port (default: 61209)
.TP
.B \-P PASSWORD
Define a client/server password
.TP
.B\---password
Define a client/server password from the prompt
.TP
.B \-r
Disable process list (for low CPU consumption)
.TP
.B \-s
Run Glances in server mode
.TP
.B \-t SECONDS
Set refresh time in seconds (default: 3 sec)
.TP
.B \-v
Display the version and exit
.TP
.B \-y
Enable hddtemp module (requires hddtemp)
.TP
.B \-z
Do not use the bold color attribute
.TP
.B \-1
Start Glances in per-CPU mode
.SH INTERACTIVE COMMANDS
You can use the following keys while in Glances:
.TP
.B a
Sort process list automatically
.TP
.B b
Switch between bit/s or Byte/s for network I/O
.TP
.B c
Sort processes by CPU usage
.TP
.B d
Show/hide disk I/O stats
.TP
.B f
Show/hide file system stats
.TP
.B h
Show/hide the help screen
.TP
.B i
Sort processes by I/O rate
.TP
.B l
Show/hide log messages
.TP
.B m
Sort processes by MEM usage
.TP
.B n
Show/hide network stats
.TP
.B p
Sort processes by name
.TP
.B q
Quit
.TP
.B s
Show/hide sensors stats (only available with -e flag)
.TP
.B t
View network I/O as combination
.TP
.B u
View cumulative network I/O
.TP
.B w
Delete finished warning log messages
.TP
.B x
Delete finished warning and critical log messages
.TP
.B y
Show/hide hddtemp stats (only available with -y flag)
.TP
.B 1
Switch between global CPU and per-CPU stats
.SH EXAMPLES
.TP
Refresh information every 5 seconds:
.B glances
\-t 5
.PP
.SH EXIT STATUS
Glances returns a zero exit status if it succeeds to print/grab information.
.PP
It returns 2 if it fails to parse its options (missing arguments, invalid value, etc).
.SH AUTHOR
Glances is written by Nicolas Hennion aka Nicolargo (contact@nicolargo.com)