1LNSTAT(8)                   System Manager's Manual                  LNSTAT(8)
2
3
4

NAME

6       lnstat - unified linux network statistics
7

SYNOPSIS

9       lnstat [options]
10

DESCRIPTION

12       This manual page documents briefly the lnstat command.
13
14       lnstat  is  a generalized and more feature-complete replacement for the
15       old rtstat program.  In addition to routing cache statistics,  it  sup‐
16       ports  any  kind  of  statistics the linux kernel exports via a file in
17       /proc/net/stat/.
18

OPTIONS

20       These programs follow the usual GNU  command  line  syntax,  with  long
21       options  starting with two dashes (`-').  lnstat supports the following
22       options.
23
24       -h, --help
25              Show summary of options.
26
27       -V, --version
28              Show version of program.
29
30       -c, --count <count>
31              Print <count> number of intervals.
32
33       -d, --dump
34              Dump list of available files/keys.
35
36       -f, --file <file>
37              Statistics file to use.
38
39       -i, --interval <intv>
40              Set interval to 'intv' seconds.
41
42       -k, --keys k,k,k,...
43              Display only keys specified.
44
45       -s, --subject [0-2]
46              Specify display of subject/header. '0' means no header  at  all,
47              '1'  prints a header only at start of the program and '2' prints
48              a header every 20 lines.
49
50       -w, --width n,n,n,...
51              Width for each field.
52

USAGE EXAMPLES

54       # lnstat -d
55              Get a list of supported statistics files.
56
57       # lnstat -k arp_cache:entries,rt_cache:in_hit,arp_cache:destroys
58              Select the specified files and keys.
59
60       # lnstat -i 10
61              Use an interval of 10 seconds.
62
63       # lnstat -f ip_conntrack
64              Use only the specified file for statistics.
65
66       # lnstat -s 0
67              Do not print a header at all.
68
69       # lnstat -s 20
70              Print a header at start and every 20 lines.
71
72       # lnstat -c -1 -i 1 -f rt_cache -k entries,in_hit,in_slow_tot
73              Display statistics for keys entries, in_hit and  in_slow_tot  of
74              field rt_cache every second.
75

SEE ALSO

77       ip(8),  and  /usr/share/doc/iproute-doc/README.lnstat (package iproute-
78       doc on Debian)
79

AUTHOR

81       lnstat was written by Harald Welte <laforge@gnumonks.org>.
82
83       This manual page was written by Michael Prokop <mika@grml.org> for  the
84       Debian project (but may be used by others).
85
86
87
88                                                                     LNSTAT(8)
Impressum