xref: /freebsd-src/contrib/ntp/scripts/summary-opts.def (revision 416ba5c74546f32a993436a99516d35008e9f384)
1*2b15cb3dSCy Schubert/* -*- Mode: Text -*- */
2*2b15cb3dSCy SchubertAutoGen Definitions perlopt;
3*2b15cb3dSCy Schubert
4*2b15cb3dSCy Schubert#include autogen-version.def
5*2b15cb3dSCy Schubert
6*2b15cb3dSCy Schubertprog-name      = 'summary';
7*2b15cb3dSCy Schubertprog-title     = 'compute various stastics from NTP stat files';
8*2b15cb3dSCy Schubertpackage		= ntp;
9*2b15cb3dSCy Schubert#include	version.def
10*2b15cb3dSCy Schubert
11*2b15cb3dSCy Schubertlong-opts;
12*2b15cb3dSCy Schubertgnu-usage;
13*2b15cb3dSCy Schubert
14*2b15cb3dSCy Schubertflag = {
15*2b15cb3dSCy Schubert    name        = directory;
16*2b15cb3dSCy Schubert    arg-type    = string;
17*2b15cb3dSCy Schubert    arg-default = '/var/log/ntp';
18*2b15cb3dSCy Schubert    descrip     = 'Directory containing stat files';
19*2b15cb3dSCy Schubert    doc         = <<-  _EndOfDoc_
20*2b15cb3dSCy Schubert        The directory where @code{ntpd} will search for .stat files generated
21*2b15cb3dSCy Schubert        by @code{ntpd}.
22*2b15cb3dSCy Schubert	_EndOfDoc_;
23*2b15cb3dSCy Schubert};
24*2b15cb3dSCy Schubert
25*2b15cb3dSCy Schubertflag = {
26*2b15cb3dSCy Schubert    name        = end-date;
27*2b15cb3dSCy Schubert    arg-type    = number;
28*2b15cb3dSCy Schubert    descrip     = 'End date';
29*2b15cb3dSCy Schubert    doc         = <<-  _EndOfDoc_
30*2b15cb3dSCy Schubert        Process all files with the date suffix less or equal to value of this
31*2b15cb3dSCy Schubert        option.  Defaults to today minus one day (Use @code{date -u +%Y%m%d})
32*2b15cb3dSCy Schubert        to get the timestamp.
33*2b15cb3dSCy Schubert	_EndOfDoc_;
34*2b15cb3dSCy Schubert};
35*2b15cb3dSCy Schubert
36*2b15cb3dSCy Schubertflag = {
37*2b15cb3dSCy Schubert    name        = output-directory;
38*2b15cb3dSCy Schubert    arg-type    = str;
39*2b15cb3dSCy Schubert    arg-default = '/tmp';
40*2b15cb3dSCy Schubert    descrip     = 'Output directory';
41*2b15cb3dSCy Schubert    doc         = <<-  _EndOfDoc_
42*2b15cb3dSCy Schubert        The output directory @code{summary} will write all output files to.
43*2b15cb3dSCy Schubert	_EndOfDoc_;
44*2b15cb3dSCy Schubert};
45*2b15cb3dSCy Schubert
46*2b15cb3dSCy Schubertflag = {
47*2b15cb3dSCy Schubert    name        = peer-dist-limit;
48*2b15cb3dSCy Schubert    arg-type    = string;
49*2b15cb3dSCy Schubert    arg-name    = float;
50*2b15cb3dSCy Schubert    arg-default = 400;
51*2b15cb3dSCy Schubert    descrip     = 'Peer dist limit';
52*2b15cb3dSCy Schubert    doc     = <<-  _EndOfDoc_
53*2b15cb3dSCy Schubert	_EndOfDoc_;
54*2b15cb3dSCy Schubert};
55*2b15cb3dSCy Schubert
56*2b15cb3dSCy Schubertflag = {
57*2b15cb3dSCy Schubert    name        = skip-time-steps;
58*2b15cb3dSCy Schubert    arg-type    = string;
59*2b15cb3dSCy Schubert    arg-name    = float;
60*2b15cb3dSCy Schubert    arg-default = 3600;
61*2b15cb3dSCy Schubert    descrip     = 'Ignore time offsets larger that this';
62*2b15cb3dSCy Schubert    doc     = <<-  _EndOfDoc_
63*2b15cb3dSCy Schubert	_EndOfDoc_;
64*2b15cb3dSCy Schubert};
65*2b15cb3dSCy Schubert
66*2b15cb3dSCy Schubertflag = {
67*2b15cb3dSCy Schubert    name        = start-date;
68*2b15cb3dSCy Schubert    arg-type    = num;
69*2b15cb3dSCy Schubert    arg-default = 19700101;
70*2b15cb3dSCy Schubert    descrip     = 'Start date';
71*2b15cb3dSCy Schubert    doc     = <<-  _EndOfDoc_
72*2b15cb3dSCy Schubert        Process all files with the date suffix more or equal to value of
73*2b15cb3dSCy Schubert        this option.  Defaults to 197000101.
74*2b15cb3dSCy Schubert	_EndOfDoc_;
75*2b15cb3dSCy Schubert};
76*2b15cb3dSCy Schubert
77*2b15cb3dSCy Schubertdoc-section = {
78*2b15cb3dSCy Schubert    ds-type     = 'DESCRIPTION';
79*2b15cb3dSCy Schubert    ds-format   = 'texi';
80*2b15cb3dSCy Schubert    ds-text     = <<- _EndOfDoc
81*2b15cb3dSCy Schubert	_EndOfDoc;
82*2b15cb3dSCy Schubert};
83