lnstat, nstat, ifstat: update man pages

New json option
This commit is contained in:
Stephen Hemminger 2013-09-24 12:00:41 -07:00
parent a4f9e8df37
commit f3abcfed46
2 changed files with 15 additions and 10 deletions

View File

@ -33,6 +33,9 @@ Statistics file to use.
.B \-i, \-\-interval <intv> .B \-i, \-\-interval <intv>
Set interval to 'intv' seconds. Set interval to 'intv' seconds.
.TP .TP
.B \-j, \-\-json
Display results in JSON format
.TP
.B \-k, \-\-keys k,k,k,... .B \-k, \-\-keys k,k,k,...
Display only keys specified. Display only keys specified.
.TP .TP

View File

@ -15,33 +15,35 @@ and
are simple tools to monitor kernel snmp counters and network interface statistics. are simple tools to monitor kernel snmp counters and network interface statistics.
.SH OPTIONS .SH OPTIONS
.TP .B \-h, \-\-help
-h -?
Print help Print help
.TP .TP
-v -V .B \-V, \-\-version
Print version Print version
.TP .TP
-z .B \-z, \-\-zero
Dump zero counters too. By default they are not shown. Dump zero counters too. By default they are not shown.
.TP .TP
-r .B \-r, \-\-reset
Reset history. Reset history.
.TP .TP
-n .B \-n, \-\-nooutput
Do not display anything, only update history. Do not display anything, only update history.
.TP .TP
-a .B \-a, \-\-ignore
Dump absolute values of counters. The default is to calculate increments since the previous use. Dump absolute values of counters. The default is to calculate increments since the previous use.
.TP .TP
-s .B \-s, \-\-noupdate
Do not update history, so that the next time you will see counters including values accumulated to the moment of this measurement too. Do not update history, so that the next time you will see counters including values accumulated to the moment of this measurement too.
.B \-j, \-\-json
Display results in JSON format.
.TP .TP
-d <INTERVAL> .B \-d, \-\-interval <INTERVAL>
Run in daemon mode collecting statistics. <INTERVAL> is interval between measurements in seconds. Run in daemon mode collecting statistics. <INTERVAL> is interval between measurements in seconds.
.TP .TP
-t <INTERVAL>
Time interval to average rates. Default value is 60 seconds. Time interval to average rates. Default value is 60 seconds.
.TP
.SH SEE ALSO .SH SEE ALSO
lnstat(8) lnstat(8)