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