xref: /freebsd/contrib/ntp/scripts/invoke-summary.texi (revision f5f40dd63bc7acbb5312b26ac1ea1103c12352a6)
12b15cb3dSCy Schubert@node summary Invocation
22b15cb3dSCy Schubert@section Invoking summary
32b15cb3dSCy Schubert@pindex summary
42b15cb3dSCy Schubert@cindex compute various stastics from NTP stat files
52b15cb3dSCy Schubert@ignore
62b15cb3dSCy Schubert#
72b15cb3dSCy Schubert# EDIT THIS FILE WITH CAUTION  (invoke-summary.texi)
82b15cb3dSCy Schubert#
9*f5f40dd6SCy Schubert# It has been AutoGen-ed  May 25, 2024 at 12:06:02 AM by AutoGen 5.18.16
102b15cb3dSCy Schubert# From the definitions    summary-opts.def
112b15cb3dSCy Schubert# and the template file   agtexi-cmd.tpl
122b15cb3dSCy Schubert@end ignore
132b15cb3dSCy Schubert
142b15cb3dSCy Schubert
152b15cb3dSCy Schubert
162b15cb3dSCy Schubert
172b15cb3dSCy SchubertThis section was generated by @strong{AutoGen},
182b15cb3dSCy Schubertusing the @code{agtexi-cmd} template and the option descriptions for the @code{summary} program.
192b15cb3dSCy Schubert
202b15cb3dSCy Schubert@menu
212b15cb3dSCy Schubert* summary usage::                  summary help/usage (@option{--help})
222b15cb3dSCy Schubert* summary directory::              directory option
232b15cb3dSCy Schubert* summary end-date::               end-date option
242b15cb3dSCy Schubert* summary output-directory::       output-directory option
252b15cb3dSCy Schubert* summary start-date::             start-date option
262b15cb3dSCy Schubert* summary exit status::            exit status
272b15cb3dSCy Schubert@end menu
282b15cb3dSCy Schubert
292b15cb3dSCy Schubert@node summary usage
302b15cb3dSCy Schubert@subsection summary help/usage (@option{--help})
312b15cb3dSCy Schubert@cindex summary help
322b15cb3dSCy Schubert
332b15cb3dSCy SchubertThis is the automatically generated usage text for summary.
342b15cb3dSCy Schubert
352b15cb3dSCy SchubertThe text printed is the same whether selected with the @code{help} option
362b15cb3dSCy Schubert(@option{--help}) or the @code{more-help} option (@option{--more-help}).  @code{more-help} will print
372b15cb3dSCy Schubertthe usage text by passing it through a pager program.
382b15cb3dSCy Schubert@code{more-help} is disabled on platforms without a working
392b15cb3dSCy Schubert@code{fork(2)} function.  The @code{PAGER} environment variable is
402b15cb3dSCy Schubertused to select the program, defaulting to @file{more}.  Both will exit
412b15cb3dSCy Schubertwith a status code of 0.
422b15cb3dSCy Schubert
432b15cb3dSCy Schubert@exampleindent 0
442b15cb3dSCy Schubert@example
45*f5f40dd6SCy Schubertsummary - compute various stastics from NTP stat files - Ver. 4.2.8p18
462b15cb3dSCy SchubertUSAGE: summary [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
472b15cb3dSCy Schubert
482b15cb3dSCy Schubert        --directory=str          Directory containing stat files
492b15cb3dSCy Schubert        --end-date=num           End date
502b15cb3dSCy Schubert        --output-directory=str   Output directory
512b15cb3dSCy Schubert        --peer-dist-limit=float  Peer dist limit
522b15cb3dSCy Schubert        --skip-time-steps=float  Ignore time offsets larger that this
532b15cb3dSCy Schubert        --start-date=num         Start date
542b15cb3dSCy Schubert    -?, --help                   Display usage information and exit
552b15cb3dSCy Schubert        --more-help              Pass the extended usage text through a pager
562b15cb3dSCy Schubert
572b15cb3dSCy SchubertOptions are specified by doubled hyphens and their name or by a single
582b15cb3dSCy Schuberthyphen and the flag character.
592b15cb3dSCy Schubert@end example
602b15cb3dSCy Schubert@exampleindent 4
612b15cb3dSCy Schubert
622b15cb3dSCy Schubert@node summary directory
632b15cb3dSCy Schubert@subsection directory option
642b15cb3dSCy Schubert@cindex summary-directory
652b15cb3dSCy Schubert
662b15cb3dSCy SchubertThis is the ``directory containing stat files'' option.
672b15cb3dSCy SchubertThis option takes a string argument.
682b15cb3dSCy Schubert        The directory where @code{ntpd} will search for .stat files generated
692b15cb3dSCy Schubert        by @code{ntpd}.
702b15cb3dSCy Schubert@node summary end-date
712b15cb3dSCy Schubert@subsection end-date option
722b15cb3dSCy Schubert@cindex summary-end-date
732b15cb3dSCy Schubert
742b15cb3dSCy SchubertThis is the ``end date'' option.
752b15cb3dSCy SchubertThis option takes a number argument.
762b15cb3dSCy Schubert        Process all files with the date suffix less or equal to value of this
772b15cb3dSCy Schubert        option.  Defaults to today minus one day (Use @code{date -u +%Y%m%d})
782b15cb3dSCy Schubert        to get the timestamp.
792b15cb3dSCy Schubert@node summary output-directory
802b15cb3dSCy Schubert@subsection output-directory option
812b15cb3dSCy Schubert@cindex summary-output-directory
822b15cb3dSCy Schubert
832b15cb3dSCy SchubertThis is the ``output directory'' option.
842b15cb3dSCy SchubertThis option takes a str argument.
852b15cb3dSCy Schubert        The output directory @code{summary} will write all output files to.
862b15cb3dSCy Schubert@node summary start-date
872b15cb3dSCy Schubert@subsection start-date option
882b15cb3dSCy Schubert@cindex summary-start-date
892b15cb3dSCy Schubert
902b15cb3dSCy SchubertThis is the ``start date'' option.
912b15cb3dSCy SchubertThis option takes a num argument.
922b15cb3dSCy Schubert        Process all files with the date suffix more or equal to value of
932b15cb3dSCy Schubert        this option.  Defaults to 197000101.
942b15cb3dSCy Schubert@node summary exit status
952b15cb3dSCy Schubert@subsection summary exit status
962b15cb3dSCy Schubert
972b15cb3dSCy SchubertOne of the following exit values will be returned:
982b15cb3dSCy Schubert@table @samp
992b15cb3dSCy Schubert@item 0 (EXIT_SUCCESS)
1002b15cb3dSCy SchubertSuccessful program execution.
1012b15cb3dSCy Schubert@item 1 (EXIT_FAILURE)
1022b15cb3dSCy SchubertThe operation failed or the command syntax was not valid.
1032b15cb3dSCy Schubert@end table
104