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 "$3"