Commit f3abcfed authored by Stephen Hemminger's avatar Stephen Hemminger

lnstat, nstat, ifstat: update man pages

New json option
parent a4f9e8df
...@@ -33,6 +33,9 @@ Statistics file to use. ...@@ -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
......
...@@ -15,33 +15,35 @@ and ...@@ -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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment