12b15cb3dSCy Schubert@node ntpsnmpd Invocation 22b15cb3dSCy Schubert@section Invoking ntpsnmpd 32b15cb3dSCy Schubert@pindex ntpsnmpd 42b15cb3dSCy Schubert@cindex NTP SNMP MIB agent 52b15cb3dSCy Schubert@ignore 62b15cb3dSCy Schubert# 72b15cb3dSCy Schubert# EDIT THIS FILE WITH CAUTION (invoke-ntpsnmpd.texi) 82b15cb3dSCy Schubert# 9*f5f40dd6SCy Schubert# It has been AutoGen-ed May 25, 2024 at 12:04:39 AM by AutoGen 5.18.16 102b15cb3dSCy Schubert# From the definitions ntpsnmpd-opts.def 112b15cb3dSCy Schubert# and the template file agtexi-cmd.tpl 122b15cb3dSCy Schubert@end ignore 132b15cb3dSCy Schubert 142b15cb3dSCy Schubert 152b15cb3dSCy Schubert 162b15cb3dSCy Schubert@code{ntpsnmpd} 172b15cb3dSCy Schubertis an SNMP MIB agent designed to interface with 182b15cb3dSCy Schubert@code{ntpd(1ntpdmdoc)}. 192b15cb3dSCy Schubert 202b15cb3dSCy SchubertThis section was generated by @strong{AutoGen}, 212b15cb3dSCy Schubertusing the @code{agtexi-cmd} template and the option descriptions for the @code{ntpsnmpd} program. 222b15cb3dSCy SchubertThis software is released under the NTP license, <http://ntp.org/license>. 232b15cb3dSCy Schubert 242b15cb3dSCy Schubert@menu 252b15cb3dSCy Schubert* ntpsnmpd usage:: ntpsnmpd help/usage (@option{--help}) 262b15cb3dSCy Schubert* ntpsnmpd agentxsocket:: agentxsocket option 272b15cb3dSCy Schubert* ntpsnmpd config:: presetting/configuring ntpsnmpd 282b15cb3dSCy Schubert* ntpsnmpd exit status:: exit status 292b15cb3dSCy Schubert* ntpsnmpd Usage:: Usage 302b15cb3dSCy Schubert* ntpsnmpd Notes:: Notes 312b15cb3dSCy Schubert* ntpsnmpd Authors:: Authors 322b15cb3dSCy Schubert@end menu 332b15cb3dSCy Schubert 342b15cb3dSCy Schubert@node ntpsnmpd usage 352b15cb3dSCy Schubert@subsection ntpsnmpd help/usage (@option{--help}) 362b15cb3dSCy Schubert@cindex ntpsnmpd help 372b15cb3dSCy Schubert 382b15cb3dSCy SchubertThis is the automatically generated usage text for ntpsnmpd. 392b15cb3dSCy Schubert 402b15cb3dSCy SchubertThe text printed is the same whether selected with the @code{help} option 412b15cb3dSCy Schubert(@option{--help}) or the @code{more-help} option (@option{--more-help}). @code{more-help} will print 422b15cb3dSCy Schubertthe usage text by passing it through a pager program. 432b15cb3dSCy Schubert@code{more-help} is disabled on platforms without a working 442b15cb3dSCy Schubert@code{fork(2)} function. The @code{PAGER} environment variable is 452b15cb3dSCy Schubertused to select the program, defaulting to @file{more}. Both will exit 462b15cb3dSCy Schubertwith a status code of 0. 472b15cb3dSCy Schubert 482b15cb3dSCy Schubert@exampleindent 0 492b15cb3dSCy Schubert@example 50*f5f40dd6SCy Schubertntpsnmpd - NTP SNMP MIB agent - Ver. 4.2.8p18 51052d159aSCy SchubertUsage: ntpsnmpd [ -<flag> [<val>] | --<name>[@{=| @}<val>] ]... 522b15cb3dSCy Schubert Flg Arg Option-Name Description 532b15cb3dSCy Schubert -n no nofork Do not fork 542b15cb3dSCy Schubert -p no syslog Log to syslog() 552b15cb3dSCy Schubert Str agentxsocket The socket address ntpsnmpd uses to connect to net-snmpd 56052d159aSCy Schubert opt version output version information and exit 57052d159aSCy Schubert -? no help display extended usage information and exit 58052d159aSCy Schubert -! no more-help extended usage information passed thru pager 59052d159aSCy Schubert -> opt save-opts save the option state to a config file 60052d159aSCy Schubert -< Str load-opts load options from a config file 61052d159aSCy Schubert - disabled as '--no-load-opts' 622b15cb3dSCy Schubert - may appear multiple times 632b15cb3dSCy Schubert 642b15cb3dSCy SchubertOptions are specified by doubled hyphens and their name or by a single 652b15cb3dSCy Schuberthyphen and the flag character. 662b15cb3dSCy Schubert 672b15cb3dSCy Schubert 682b15cb3dSCy SchubertThe following option preset mechanisms are supported: 692b15cb3dSCy Schubert - reading file $HOME/.ntprc 702b15cb3dSCy Schubert - reading file ./.ntprc 712b15cb3dSCy Schubert - examining environment variables named NTPSNMPD_* 722b15cb3dSCy Schubert 73a466cc55SCy SchubertPlease send bug reports to: <https://bugs.ntp.org, bugs@@ntp.org> 742b15cb3dSCy Schubert@end example 752b15cb3dSCy Schubert@exampleindent 4 762b15cb3dSCy Schubert 772b15cb3dSCy Schubert@node ntpsnmpd agentxsocket 782b15cb3dSCy Schubert@subsection agentxsocket option 792b15cb3dSCy Schubert@cindex ntpsnmpd-agentxsocket 802b15cb3dSCy Schubert 812b15cb3dSCy SchubertThis is the ``the socket address ntpsnmpd uses to connect to net-snmpd'' option. 822b15cb3dSCy SchubertThis option takes a string argument. 832b15cb3dSCy Schubert[<transport-specifier>:]<transport-address> 842b15cb3dSCy SchubertThe default "agent X socket" is the Unix Domain socket 852b15cb3dSCy Schubert@file{unix:/var/agentx/master}. 862b15cb3dSCy SchubertAnother common alternative is @file{tcp:localhost:705}. 872b15cb3dSCy Schubert 882b15cb3dSCy Schubert 892b15cb3dSCy Schubert@node ntpsnmpd config 902b15cb3dSCy Schubert@subsection presetting/configuring ntpsnmpd 912b15cb3dSCy Schubert 922b15cb3dSCy SchubertAny option that is not marked as @i{not presettable} may be preset by 932b15cb3dSCy Schubertloading values from configuration ("rc" or "ini") files, and values from environment variables named @code{NTPSNMPD} and @code{NTPSNMPD_<OPTION_NAME>}. @code{<OPTION_NAME>} must be one of 942b15cb3dSCy Schubertthe options listed above in upper case and segmented with underscores. 952b15cb3dSCy SchubertThe @code{NTPSNMPD} variable will be tokenized and parsed like 962b15cb3dSCy Schubertthe command line. The remaining variables are tested for existence and their 972b15cb3dSCy Schubertvalues are treated like option arguments. 982b15cb3dSCy Schubert 992b15cb3dSCy Schubert 1002b15cb3dSCy Schubert@noindent 1012b15cb3dSCy Schubert@code{libopts} will search in 2 places for configuration files: 1022b15cb3dSCy Schubert@itemize @bullet 1032b15cb3dSCy Schubert@item 1042b15cb3dSCy Schubert$HOME 1052b15cb3dSCy Schubert@item 1062b15cb3dSCy Schubert$PWD 1072b15cb3dSCy Schubert@end itemize 1082b15cb3dSCy SchubertThe environment variables @code{HOME}, and @code{PWD} 1092b15cb3dSCy Schubertare expanded and replaced when @file{ntpsnmpd} runs. 1102b15cb3dSCy SchubertFor any of these that are plain files, they are simply processed. 1112b15cb3dSCy SchubertFor any that are directories, then a file named @file{.ntprc} is searched for 1122b15cb3dSCy Schubertwithin that directory and processed. 1132b15cb3dSCy Schubert 1142b15cb3dSCy SchubertConfiguration files may be in a wide variety of formats. 1152b15cb3dSCy SchubertThe basic format is an option name followed by a value (argument) on the 1162b15cb3dSCy Schubertsame line. Values may be separated from the option name with a colon, 1172b15cb3dSCy Schubertequal sign or simply white space. Values may be continued across multiple 1182b15cb3dSCy Schubertlines by escaping the newline with a backslash. 1192b15cb3dSCy Schubert 1202b15cb3dSCy SchubertMultiple programs may also share the same initialization file. 1212b15cb3dSCy SchubertCommon options are collected at the top, followed by program specific 1222b15cb3dSCy Schubertsegments. The segments are separated by lines like: 1232b15cb3dSCy Schubert@example 1242b15cb3dSCy Schubert[NTPSNMPD] 1252b15cb3dSCy Schubert@end example 1262b15cb3dSCy Schubert@noindent 1272b15cb3dSCy Schubertor by 1282b15cb3dSCy Schubert@example 1292b15cb3dSCy Schubert<?program ntpsnmpd> 1302b15cb3dSCy Schubert@end example 1312b15cb3dSCy Schubert@noindent 1322b15cb3dSCy SchubertDo not mix these styles within one configuration file. 1332b15cb3dSCy Schubert 1342b15cb3dSCy SchubertCompound values and carefully constructed string values may also be 1352b15cb3dSCy Schubertspecified using XML syntax: 1362b15cb3dSCy Schubert@example 1372b15cb3dSCy Schubert<option-name> 1382b15cb3dSCy Schubert <sub-opt>...<...>...</sub-opt> 1392b15cb3dSCy Schubert</option-name> 1402b15cb3dSCy Schubert@end example 1412b15cb3dSCy Schubert@noindent 1422b15cb3dSCy Schubertyielding an @code{option-name.sub-opt} string value of 1432b15cb3dSCy Schubert@example 1442b15cb3dSCy Schubert"...<...>..." 1452b15cb3dSCy Schubert@end example 1462b15cb3dSCy Schubert@code{AutoOpts} does not track suboptions. You simply note that it is a 1472b15cb3dSCy Schuberthierarchicly valued option. @code{AutoOpts} does provide a means for searching 1482b15cb3dSCy Schubertthe associated name/value pair list (see: optionFindValue). 1492b15cb3dSCy Schubert 1502b15cb3dSCy SchubertThe command line options relating to configuration and/or usage help are: 1512b15cb3dSCy Schubert 1522b15cb3dSCy Schubert@subsubheading version (-) 1532b15cb3dSCy Schubert 1542b15cb3dSCy SchubertPrint the program version to standard out, optionally with licensing 1552b15cb3dSCy Schubertinformation, then exit 0. The optional argument specifies how much licensing 156a466cc55SCy Schubertdetail to provide. The default is to print just the version. The licensing information may be selected with an option argument. 1572b15cb3dSCy SchubertOnly the first letter of the argument is examined: 1582b15cb3dSCy Schubert 1592b15cb3dSCy Schubert@table @samp 1602b15cb3dSCy Schubert@item version 1612b15cb3dSCy SchubertOnly print the version. This is the default. 1622b15cb3dSCy Schubert@item copyright 1632b15cb3dSCy SchubertName the copyright usage licensing terms. 1642b15cb3dSCy Schubert@item verbose 1652b15cb3dSCy SchubertPrint the full copyright usage licensing terms. 1662b15cb3dSCy Schubert@end table 1672b15cb3dSCy Schubert 1682b15cb3dSCy Schubert@node ntpsnmpd exit status 1692b15cb3dSCy Schubert@subsection ntpsnmpd exit status 1702b15cb3dSCy Schubert 1712b15cb3dSCy SchubertOne of the following exit values will be returned: 1722b15cb3dSCy Schubert@table @samp 1732b15cb3dSCy Schubert@item 0 (EXIT_SUCCESS) 1742b15cb3dSCy SchubertSuccessful program execution. 1752b15cb3dSCy Schubert@item 1 (EXIT_FAILURE) 1762b15cb3dSCy SchubertThe operation failed or the command syntax was not valid. 1772b15cb3dSCy Schubert@item 66 (EX_NOINPUT) 1782b15cb3dSCy SchubertA specified configuration file could not be loaded. 1792b15cb3dSCy Schubert@item 70 (EX_SOFTWARE) 1802b15cb3dSCy Schubertlibopts had an internal operational error. Please report 1812b15cb3dSCy Schubertit to autogen-users@@lists.sourceforge.net. Thank you. 1822b15cb3dSCy Schubert@end table 1832b15cb3dSCy Schubert@node ntpsnmpd Usage 1842b15cb3dSCy Schubert@subsection ntpsnmpd Usage 1852b15cb3dSCy Schubert@node ntpsnmpd Notes 1862b15cb3dSCy Schubert@subsection ntpsnmpd Notes 1872b15cb3dSCy Schubert@node ntpsnmpd Authors 1882b15cb3dSCy Schubert@subsection ntpsnmpd Authors 189