3
lnstat \- unified linux network statistics
8
This manual page documents briefly the
12
\fBlnstat\fP is a generalized and more feature-complete replacement for the old rtstat program.
13
In addition to routing cache statistics, it supports any kind of statistics the linux kernel
14
exports via a file in /proc/net/stat/.
16
These programs follow the usual GNU command line syntax, with long
17
options starting with two dashes (`-').
18
lnstat supports the following options.
21
Show summary of options.
24
Show version of program.
26
.B \-c, \-\-count <count>
27
Print <count> number of intervals.
30
Dump list of available files/keys.
32
.B \-f, \-\-file <file>
33
Statistics file to use.
35
.B \-i, \-\-interval <intv>
36
Set interval to 'intv' seconds.
38
.B \-k, \-\-keys k,k,k,...
39
Display only keys specified.
41
.B \-s, \-\-subject [0-2]
42
Specify display of subject/header. '0' means no header at all, '1' prints a header only at start of the program and '2' prints a header every 20 lines.
44
.B \-w, \-\-width n,n,n,...
49
Get a list of supported statistics files.
51
.B # lnstat -k arp_cache:entries,rt_cache:in_hit,arp_cache:destroys
52
Select the specified files and keys.
55
Use an interval of 10 seconds.
57
.B # lnstat -f ip_conntrack
58
Use only the specified file for statistics.
61
Do not print a header at all.
64
Print a header at start and every 20 lines.
66
.B # lnstat -c -1 -i 1 -f rt_cache -k entries,in_hit,in_slow_tot
67
Display statistics for keys entries, in_hit and in_slow_tot of field rt_cache every second.
70
and /usr/share/doc/iproute-doc/README.lnstat (package iproute-doc on Debian)
73
lnstat was written by Harald Welte <laforge@gnumonks.org>.
75
This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others).