]> git.proxmox.com Git - mirror_iproute2.git/blame - man/man8/lnstat.8
update kernel headers based on net-next 3.21
[mirror_iproute2.git] / man / man8 / lnstat.8
CommitLineData
d18fe6d9
SH
1.TH LNSTAT 8
2.SH NAME
3lnstat \- unified linux network statistics
4.SH SYNOPSIS
5.B lnstat
6.RI [ options ]
7.SH DESCRIPTION
8This manual page documents briefly the
9.B lnstat
10command.
11.PP
12\fBlnstat\fP is a generalized and more feature-complete replacement for the old rtstat program.
13In addition to routing cache statistics, it supports any kind of statistics the linux kernel
14exports via a file in /proc/net/stat/.
15.SH OPTIONS
d18fe6d9
SH
16lnstat supports the following options.
17.TP
18.B \-h, \-\-help
19Show summary of options.
20.TP
21.B \-V, \-\-version
22Show version of program.
23.TP
24.B \-c, \-\-count <count>
25Print <count> number of intervals.
26.TP
27.B \-d, \-\-dump
28Dump list of available files/keys.
29.TP
30.B \-f, \-\-file <file>
31Statistics file to use.
32.TP
33.B \-i, \-\-interval <intv>
34Set interval to 'intv' seconds.
35.TP
f3abcfed
SH
36.B \-j, \-\-json
37Display results in JSON format
38.TP
d18fe6d9
SH
39.B \-k, \-\-keys k,k,k,...
40Display only keys specified.
41.TP
42.B \-s, \-\-subject [0-2]
43Specify 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.TP
45.B \-w, \-\-width n,n,n,...
46Width for each field.
47.SH USAGE EXAMPLES
48.TP
49.B # lnstat -d
50Get a list of supported statistics files.
51.TP
52.B # lnstat -k arp_cache:entries,rt_cache:in_hit,arp_cache:destroys
53Select the specified files and keys.
54.TP
55.B # lnstat -i 10
56Use an interval of 10 seconds.
57.TP
58.B # lnstat -f ip_conntrack
59Use only the specified file for statistics.
60.TP
61.B # lnstat -s 0
62Do not print a header at all.
63.TP
64.B # lnstat -s 20
65Print a header at start and every 20 lines.
66.TP
67.B # lnstat -c -1 -i 1 -f rt_cache -k entries,in_hit,in_slow_tot
68Display statistics for keys entries, in_hit and in_slow_tot of field rt_cache every second.
69.SH SEE ALSO
70.BR ip (8),
71and /usr/share/doc/iproute-doc/README.lnstat (package iproute-doc on Debian)
72.br
73.SH AUTHOR
74lnstat was written by Harald Welte <laforge@gnumonks.org>.
75.PP
76This manual page was written by Michael Prokop <mika@grml.org> for the Debian project (but may be used by others).