]> CyberLeo.Net >> Repos - FreeBSD/releng/10.2.git/blob - contrib/ntp/scripts/ntpsweep/ntpsweep-opts.def
- Copy stable/10@285827 to releng/10.2 in preparation for 10.2-RC1
[FreeBSD/releng/10.2.git] / contrib / ntp / scripts / ntpsweep / ntpsweep-opts.def
1 /* -*- Mode: Text -*- */
2 autogen definitions perlopt;
3
4 #include autogen-version.def
5
6 prog-name      = 'ntpsweep';
7 prog-title     = 'Print various informations about given ntp servers';
8 package        = ntp;
9 #include       version.def
10
11 argument       = '[hostfile]';
12 long-opts;
13 gnu-usage;
14
15 flag = {
16     name     = host-list;
17     value    = l;
18     arg-type = string;
19     max      = NOLIMIT;
20     stack-arg;
21     descrip  = 'Host to execute actions on';
22     doc      = <<- _EndOfDoc_
23             Use this option to specify the host on which this script operates.
24             May appear multiple times.
25         _EndOfDoc_;
26 };
27
28 flag = {
29     name    = peers;
30     value   = p;
31     descrip = 'Recursively list all peers a host synchronizes to';
32 };
33
34 flag = {
35     name     = maxlevel;
36     value    = m;
37     arg-type = number;
38     descrip  = 'Traverse peers up to this level (4 is a reasonable number)';
39 };
40
41 flag = {
42     name     = strip;
43     value    = s;
44     arg-type = string;
45     descrip  = 'Strip this string from hostnames';
46 };
47
48 /* Deprecated options */
49 flag = {
50     name        = host;
51     value       = h;
52     arg-type    = string;
53     descrip     = 'Specify a single host';
54     deprecated;
55 };
56
57 doc-section     = {
58   ds-type       = 'DESCRIPTION';
59   ds-format     = 'mdoc';
60   ds-text       = <<- _END_PROG_MDOC_DESCRIP
61 .Nm 
62 prints per host the NTP stratum level, the clock offset in seconds, the daemon
63 version, the operating system and the processor. Optionally recursing through
64 all peers.
65         _END_PROG_MDOC_DESCRIP;
66 };