xref: /netbsd-src/external/bsd/ntp/dist/scripts/invoke-summary.texi (revision 897be3a4bac39d8b2e92077bf29f4a2e67d31983)
18585484eSchristos@node summary Invocation
28585484eSchristos@section Invoking summary
38585484eSchristos@pindex summary
48585484eSchristos@cindex compute various stastics from NTP stat files
58585484eSchristos@ignore
68585484eSchristos#
78585484eSchristos# EDIT THIS FILE WITH CAUTION  (invoke-summary.texi)
88585484eSchristos#
9*897be3a4Schristos# It has been AutoGen-ed  May 25, 2024 at 12:06:02 AM by AutoGen 5.18.16
108585484eSchristos# From the definitions    summary-opts.def
118585484eSchristos# and the template file   agtexi-cmd.tpl
128585484eSchristos@end ignore
138585484eSchristos
148585484eSchristos
158585484eSchristos
168585484eSchristos
178585484eSchristosThis section was generated by @strong{AutoGen},
188585484eSchristosusing the @code{agtexi-cmd} template and the option descriptions for the @code{summary} program.
198585484eSchristos
208585484eSchristos@menu
218585484eSchristos* summary usage::                  summary help/usage (@option{--help})
228585484eSchristos* summary directory::              directory option
238585484eSchristos* summary end-date::               end-date option
248585484eSchristos* summary output-directory::       output-directory option
258585484eSchristos* summary start-date::             start-date option
268585484eSchristos* summary exit status::            exit status
278585484eSchristos@end menu
288585484eSchristos
298585484eSchristos@node summary usage
308585484eSchristos@subsection summary help/usage (@option{--help})
318585484eSchristos@cindex summary help
328585484eSchristos
338585484eSchristosThis is the automatically generated usage text for summary.
348585484eSchristos
358585484eSchristosThe text printed is the same whether selected with the @code{help} option
368585484eSchristos(@option{--help}) or the @code{more-help} option (@option{--more-help}).  @code{more-help} will print
378585484eSchristosthe usage text by passing it through a pager program.
388585484eSchristos@code{more-help} is disabled on platforms without a working
398585484eSchristos@code{fork(2)} function.  The @code{PAGER} environment variable is
408585484eSchristosused to select the program, defaulting to @file{more}.  Both will exit
418585484eSchristoswith a status code of 0.
428585484eSchristos
438585484eSchristos@exampleindent 0
448585484eSchristos@example
45*897be3a4Schristossummary - compute various stastics from NTP stat files - Ver. 4.2.8p18
468585484eSchristosUSAGE: summary [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]...
478585484eSchristos
48b8ecfcfeSchristos        --directory=str          Directory containing stat files
49b8ecfcfeSchristos        --end-date=num           End date
50b8ecfcfeSchristos        --output-directory=str   Output directory
51b8ecfcfeSchristos        --peer-dist-limit=float  Peer dist limit
52b8ecfcfeSchristos        --skip-time-steps=float  Ignore time offsets larger that this
53b8ecfcfeSchristos        --start-date=num         Start date
548585484eSchristos    -?, --help                   Display usage information and exit
55b8ecfcfeSchristos        --more-help              Pass the extended usage text through a pager
568585484eSchristos
578585484eSchristosOptions are specified by doubled hyphens and their name or by a single
588585484eSchristoshyphen and the flag character.
598585484eSchristos@end example
608585484eSchristos@exampleindent 4
618585484eSchristos
628585484eSchristos@node summary directory
638585484eSchristos@subsection directory option
648585484eSchristos@cindex summary-directory
658585484eSchristos
668585484eSchristosThis is the ``directory containing stat files'' option.
678585484eSchristosThis option takes a string argument.
688585484eSchristos        The directory where @code{ntpd} will search for .stat files generated
698585484eSchristos        by @code{ntpd}.
708585484eSchristos@node summary end-date
718585484eSchristos@subsection end-date option
728585484eSchristos@cindex summary-end-date
738585484eSchristos
748585484eSchristosThis is the ``end date'' option.
758585484eSchristosThis option takes a number argument.
768585484eSchristos        Process all files with the date suffix less or equal to value of this
778585484eSchristos        option.  Defaults to today minus one day (Use @code{date -u +%Y%m%d})
788585484eSchristos        to get the timestamp.
798585484eSchristos@node summary output-directory
808585484eSchristos@subsection output-directory option
818585484eSchristos@cindex summary-output-directory
828585484eSchristos
838585484eSchristosThis is the ``output directory'' option.
848585484eSchristosThis option takes a str argument.
858585484eSchristos        The output directory @code{summary} will write all output files to.
868585484eSchristos@node summary start-date
878585484eSchristos@subsection start-date option
888585484eSchristos@cindex summary-start-date
898585484eSchristos
908585484eSchristosThis is the ``start date'' option.
918585484eSchristosThis option takes a num argument.
928585484eSchristos        Process all files with the date suffix more or equal to value of
938585484eSchristos        this option.  Defaults to 197000101.
948585484eSchristos@node summary exit status
958585484eSchristos@subsection summary exit status
968585484eSchristos
978585484eSchristosOne of the following exit values will be returned:
988585484eSchristos@table @samp
998585484eSchristos@item 0 (EXIT_SUCCESS)
1008585484eSchristosSuccessful program execution.
1018585484eSchristos@item 1 (EXIT_FAILURE)
1028585484eSchristosThe operation failed or the command syntax was not valid.
1038585484eSchristos@end table
104