docs: add examples to manual page

Signed-off-by: Sami Kerola <kerolasa@iki.fi>
This commit is contained in:
Sami Kerola 2012-06-24 16:29:56 +02:00
parent 42dd80aeac
commit dd5bc03f12

View file

@ -153,6 +153,24 @@ Print version information to standard output and exit successfully.
.TP .TP
\fB\-h\fR, \fB\-\-help\fR \fB\-h\fR, \fB\-\-help\fR
Print help to standard output and exit successfully. Print help to standard output and exit successfully.
.SH EXAMPLES
.TP
Print ranges header, and analysis.
$ dhcpd-pools -L 11 -c dhcpd.conf -l dhcpd.leases
.br
Ranges:
.br
shared net name [...]
.TP
Print shared networks and totals, both headers and results
$ dhcpd-pools -L 66 -c dhcpd.conf -l dhcpd.leases shared net name
.br
[...]
.TP
Alarming
$ dhcpd-pools -c dhcpd.conf -l dhcpd.leases --critical 80.1 --warning 75
.br
CRITICAL: dhcpd-pools: Ranges; crit: 14 warn: 22 ok: 220 Shared nets; crit: 1 warn: 0 ok: 4
.SH FILES .SH FILES
.TP .TP
/etc/dhcpd.conf /etc/dhcpd.conf