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