From 0573d78195703eed8776b0ece7ee9f05c4d5217f Mon Sep 17 00:00:00 2001 From: Christian Poessinger Date: Thu, 21 Feb 2019 19:11:32 +0100 Subject: [ntp] restructure 'show ntp' command * show 'ntp ' moved to 'show ntp server ' * added 'show ntp info' command providing additional system information --- op-mode-definitions/show-ntp.xml | 27 ++++++++++++++++++--------- 1 file changed, 18 insertions(+), 9 deletions(-) (limited to 'op-mode-definitions') diff --git a/op-mode-definitions/show-ntp.xml b/op-mode-definitions/show-ntp.xml index 4db43b449..48cee5bee 100644 --- a/op-mode-definitions/show-ntp.xml +++ b/op-mode-definitions/show-ntp.xml @@ -7,16 +7,25 @@ Show peer status of NTP daemon if ps -C ntpd &>/dev/null; then ntpdc -n -c peers; else echo NTP daemon disabled; fi + + + + Show date and time of specified NTP server + + + + + /usr/sbin/ntpdate -q "$4" + + + + Show NTP operational summary + + if ps -C ntpd &>/dev/null; then ntpdc -n -c sysinfo; ntpdc -n -c kerninfo; else echo NTP daemon disabled; fi + + + - - - Show date and time of specified NTP server - - - - - /usr/sbin/ntpdate -q "$3" - -- cgit v1.2.3