: Check whether NTP access is allowed to \n");
- printf("activity : Check how many NTP sources are online/offline\n");
- printf("add peer ... : Add a new NTP peer\n");
- printf("add server ... : Add a new NTP server\n");
- printf("allow [] : Allow NTP access to that subnet as a default\n");
- printf("allow all [] : Allow NTP access to that subnet and all children\n");
- printf("burst / [/] : Start a rapid set of measurements\n");
- printf("clients : Report on clients that have accessed the server\n");
- printf("cmdaccheck : Check whether command access is allowed to \n");
- printf("cmdallow [] : Allow command access to that subnet as a default\n");
- printf("cmdallow all [] : Allow command access to that subnet and all children\n");
- printf("cmddeny [] : Deny command access to that subnet as a default\n");
- printf("cmddeny all [] : Deny command access to that subnet and all children\n");
- printf("cyclelogs : Close and re-open logs files\n");
- printf("delete : Remove an NTP server or peer\n");
- printf("deny [] : Deny NTP access to that subnet as a default\n");
- printf("deny all [] : Deny NTP access to that subnet and all children\n");
- printf("dump : Dump all measurements to save files\n");
- printf("local off : Disable server capability for unsynchronised clock\n");
- printf("local stratum : Enable server capability for unsynchronised clock\n");
- printf("makestep [] : Correct clock by stepping\n");
- printf("manual off|on|reset : Disable/enable/reset settime command and statistics\n");
- printf("manual list : Show previous settime entries\n");
- printf("maxdelay : Modify maximum round-trip valid sample delay for source\n");
- printf("maxdelayratio : Modify max round-trip delay ratio for source\n");
- printf("maxdelaydevratio : Modify max round-trip delay dev ratio for source\n");
- printf("maxpoll : Modify maximum polling interval of source\n");
- printf("maxupdateskew : Modify maximum skew for a clock frequency update to be made\n");
- printf("minpoll : Modify minimum polling interval of source\n");
- printf("minstratum : Modify minimum stratum of source\n");
- printf("offline [/] : Set sources in subnet to offline status\n");
- printf("online [/] : Set sources in subnet to online status\n");
- printf("polltarget : Modify poll target of source\n");
- printf("reselect : Reselect synchronisation source\n");
- printf("rtcdata : Print current RTC performance parameters\n");
- printf("settime : Manually set the daemon time\n");
- printf("smoothing : Display current time smoothing state\n");
- printf("smoothtime reset|activate : Reset/activate time smoothing\n");
- printf("sources [-v] : Display information about current sources\n");
- printf("sourcestats [-v] : Display estimation information about current sources\n");
- printf("tracking : Display system time information\n");
- printf("trimrtc : Correct RTC relative to system clock\n");
- printf("waitsync [max-tries [max-correction [max-skew]]] : Wait until synchronised\n");
- printf("writertc : Save RTC parameters to file\n");
- printf("\n");
- printf("dns -n|+n : Disable/enable resolving IP addresses to hostnames\n");
- printf("dns -4|-6|-46 : Resolve hostnames only to IPv4/IPv6/both addresses\n");
- printf("timeout : Set initial response timeout\n");
- printf("retries : Set maximum number of retries\n");
- printf("exit|quit : Leave the program\n");
- printf("help : Generate this help\n");
- printf("\n");
+ int line, len;
+ const char *s, cols[] =
+ "System clock:\0\0"
+ "tracking\0Display system time information\0"
+ "makestep\0Correct clock by stepping immediately\0"
+ "makestep []\0Configure automatic clock stepping\0"
+ "maxupdateskew \0Modify maximum valid skew to update frequency\0"
+ "waitsync [max-tries [max-correction [max-skew]]]\0"
+ "Wait until synchronised in specified limits\0"
+ "\0\0"
+ "Time sources:\0\0"
+ "sources [-v]\0Display information about current sources\0"
+ "sourcestats [-v]\0Display statistics about collected measurements\0"
+ "reselect\0Force reselecting synchronisation source\0"
+ "\0\0"
+ "NTP sources:\0\0"
+ "activity\0Check how many NTP sources are online/offline\0"
+ "add server [options]\0Add new NTP server\0"
+ "add peer [options]\0Add new NTP peer\0"
+ "delete \0Remove server or peer\0"
+ "burst / [/]\0Start rapid set of measurements\0"
+ "maxdelay \0Modify maximum valid sample delay\0"
+ "maxdelayratio \0Modify maximum valid delay/minimum ratio\0"
+ "maxdelaydevratio \0Modify maximum valid delay/deviation ratio\0"
+ "minpoll \0Modify minimum polling interval\0"
+ "maxpoll \0Modify maximum polling interval\0"
+ "minstratum \0Modify minimum stratum\0"
+ "offline [/]\0Set sources in subnet to offline status\0"
+ "online [/]\0Set sources in subnet to online status\0"
+ "polltarget \0Modify poll target of source\0"
+ "\0\0"
+ "Manual time input:\0\0"
+ "manual off|on|reset\0Disable/enable/reset settime command\0"
+ "manual list\0Show previous settime entries\0"
+ "manual delete \0Delete previous settime entry\0"
+ "settime