Show peer status of NTP daemon if ps -C ntpd &>/dev/null; then ntpq -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 ntpq -n -c sysinfo; ntpq -n -c kerninfo; else echo NTP daemon disabled; fi