summaryrefslogtreecommitdiff
path: root/scripts/summary-opts.def
blob: 82c31eb24817ea44c68df143af6e4572a2225b00 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
/* -*- Mode: Text -*- */
AutoGen Definitions perlopt;

#include autogen-version.def

prog-name      = 'summary';
prog-title     = 'compute various stastics from NTP stat files';
package		= ntp;
#include	version.def

long-opts;
gnu-usage;

flag = {
    name        = directory;
    arg-type    = string;
    arg-default = '/var/log/ntp';
    descrip     = 'Directory containing stat files';
    doc         = <<-  _EndOfDoc_
        The directory where @code{ntpd} will search for .stat files generated
        by @code{ntpd}.
	_EndOfDoc_;
};

flag = {
    name        = end-date;
    arg-type    = number;
    descrip     = 'End date';
    doc         = <<-  _EndOfDoc_
        Process all files with the date suffix less or equal to value of this
        option.  Defaults to today minus one day (Use @code{date -u +%Y%m%d})
        to get the timestamp.
	_EndOfDoc_;
};

flag = {
    name        = output-directory;
    arg-type    = str;
    arg-default = '/tmp';
    descrip     = 'Output directory';
    doc         = <<-  _EndOfDoc_
        The output directory @code{summary} will write all output files to.
	_EndOfDoc_;
};

flag = {
    name        = peer-dist-limit;
    arg-type    = string;
    arg-name    = float;
    arg-default = 400;
    descrip     = 'Peer dist limit';
    doc     = <<-  _EndOfDoc_
	_EndOfDoc_;
};

flag = {
    name        = skip-time-steps;
    arg-type    = string;
    arg-name    = float;
    arg-default = 3600;
    descrip     = 'Ignore time offsets larger that this';
    doc     = <<-  _EndOfDoc_
	_EndOfDoc_;
};

flag = {
    name        = start-date;
    arg-type    = num;
    arg-default = 19700101;
    descrip     = 'Start date';
    doc     = <<-  _EndOfDoc_
        Process all files with the date suffix more or equal to value of
        this option.  Defaults to 197000101.
	_EndOfDoc_;
};

doc-section = {
    ds-type     = 'DESCRIPTION';
    ds-format   = 'texi';
    ds-text     = <<- _EndOfDoc
	_EndOfDoc;
};