1 # EDIT THIS FILE WITH CAUTION (summary-opts)
3 # It has been AutoGen-ed April 26, 2016 at 08:24:58 PM by AutoGen 5.18.5
4 # From the definitions summary-opts.def
5 # and the template file perlopt
7 use Getopt::Long qw(GetOptionsFromArray);
8 Getopt::Long::Configure(qw(no_auto_abbrev no_ignore_case_always));
20 my $pager = $ENV{PAGER} || '(less || more)';
22 open STDOUT, "| $pager" or die "Can't fork a pager: $!";
32 'directory' => '/var/log/ntp',
34 'output-directory' => '/tmp',
35 'peer-dist-limit' => '400',
36 'skip-time-steps' => '3600',
37 'start-date' => '19700101',
38 'help' => '', 'more-help' => ''
41 my $ret = GetOptionsFromArray($args, $opts, (
42 'directory=s', 'end-date=i', 'output-directory=s',
43 'peer-dist-limit=f', 'skip-time-steps=f', 'start-date=i',
44 'help|?', 'more-help'));
47 summary - compute various stastics from NTP stat files - Ver. 4.2.8p7
48 USAGE: summary [ -<flag> [<val>] | --<name>[{=| }<val>] ]...
50 --directory=str Directory containing stat files
51 --end-date=num End date
52 --output-directory=str Output directory
53 --peer-dist-limit=float Peer dist limit
54 --skip-time-steps=float Ignore time offsets larger that this
55 --start-date=num Start date
56 -?, --help Display usage information and exit
57 --more-help Pass the extended usage text through a pager
59 Options are specified by doubled hyphens and their name or by a single
60 hyphen and the flag character.
63 usage(0) if $opts->{'help'};
64 paged_usage(0) if $opts->{'more-help'};