diff options
-rw-r--r-- | templates/show/ntp/node.def | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/templates/show/ntp/node.def b/templates/show/ntp/node.def index 0d7abae..539f220 100644 --- a/templates/show/ntp/node.def +++ b/templates/show/ntp/node.def @@ -1,2 +1,6 @@ -help: Show date and time of network server -run: /usr/sbin/ntpdate -q ntp.vyatta.com +help: Show peer status of network time daemon +run: if ps -C &>/dev/null ; then + ntpdc -n -c peers + else + echo NTP daemon disabled + fi |