/contrib/ntp/ntpdc/ntpdc-opts.def

https://bitbucket.org/freebsd/freebsd-head/ · Module-Definition · 127 lines · 111 code · 16 blank · 0 comment · 0 complexity · 814b3bad203ab0e46a34d4d026296d06 MD5 · raw file

  1. /* -*- Mode: Text -*- */
  2. autogen definitions options;
  3. prog-name = "ntpdc";
  4. prog-title = "vendor-specific NTP query program";
  5. argument = '[ host ...]';
  6. #include copyright.def
  7. #include homerc.def
  8. #include autogen-version.def
  9. test-main;
  10. flag = {
  11. name = ipv4;
  12. value = 4;
  13. equivalence = ipv4;
  14. descrip = "Force IPv4 DNS name resolution";
  15. doc = <<- _EndOfDoc_
  16. Force DNS resolution of following host names on the command line
  17. to the IPv4 namespace.
  18. _EndOfDoc_;
  19. };
  20. flag = {
  21. name = ipv6;
  22. value = 6;
  23. equivalence = ipv4;
  24. descrip = "Force IPv6 DNS name resolution";
  25. doc = <<- _EndOfDoc_
  26. Force DNS resolution of following host names on the command line
  27. to the IPv6 namespace.
  28. _EndOfDoc_;
  29. };
  30. flag = {
  31. name = command;
  32. value = c;
  33. arg-type = string;
  34. descrip = "run a command and exit";
  35. max = NOLIMIT;
  36. arg-name = cmd;
  37. stack-arg;
  38. doc = <<- _EndOfDoc_
  39. The following argument is interpreted as an interactive format command
  40. and is added to the list of commands to be executed on the specified
  41. host(s).
  42. _EndOfDoc_;
  43. };
  44. flag = {
  45. name = listpeers;
  46. value = l;
  47. descrip = "Print a list of the peers";
  48. flags-cant = command;
  49. doc = <<- _EndOfDoc_
  50. Print a list of the peers known to the server as well as a summary of
  51. their state. This is equivalent to the 'listpeers' interactive command.
  52. _EndOfDoc_;
  53. };
  54. flag = {
  55. name = peers;
  56. value = p;
  57. descrip = "Print a list of the peers";
  58. flags-cant = command;
  59. doc = <<- _EndOfDoc_
  60. Print a list of the peers known to the server as well as a summary
  61. of their state. This is equivalent to the 'peers' interactive command.
  62. _EndOfDoc_;
  63. };
  64. flag = {
  65. name = showpeers;
  66. value = s;
  67. descrip = "Show a list of the peers";
  68. flags-cant = command;
  69. doc = <<- _EndOfDoc_
  70. Print a list of the peers known to the server as well as a summary
  71. of their state. This is equivalent to the 'dmpeers' interactive command.
  72. _EndOfDoc_;
  73. };
  74. flag = {
  75. name = interactive;
  76. value = i;
  77. flags-cant = command, listpeers, peers, showpeers;
  78. descrip = "Force ntpq to operate in interactive mode";
  79. doc = <<- _EndOfDoc_
  80. Force ntpq to operate in interactive mode. Prompts will be written
  81. to the standard output and commands read from the standard input.
  82. _EndOfDoc_;
  83. };
  84. #include debug-opt.def
  85. flag = {
  86. name = numeric;
  87. value = n;
  88. descrip = "numeric host addresses";
  89. doc = <<- _EndOfDoc_
  90. Output all host addresses in dotted-quad numeric format rather than
  91. converting to the canonical host names.
  92. _EndOfDoc_;
  93. };
  94. detail = <<- _END_DETAIL
  95. The
  96. [= prog-name =]
  97. utility program is used to query an NTP daemon about its
  98. current state and to request changes in that state.
  99. It uses NTP mode 7 control message formats described in the source code.
  100. The program may
  101. be run either in interactive mode or controlled using command line
  102. arguments.
  103. Extensive state and statistics information is available
  104. through the
  105. [= prog-name =]
  106. interface.
  107. In addition, nearly all the
  108. configuration options which can be specified at startup using
  109. ntpd's configuration file may also be specified at run time using
  110. [= prog-name =] .
  111. _END_DETAIL;