A quick and dirty method for testing any NTP servers. In this case, the newly installed server at ATMC. This script was written using BASH scripting syntax.

This is the complete code.

#! /bin/bash
### To be used for mntdntp02tm or any NTP server
### requiring stability test. This done
### by querying the server every ten (10) mins
### for twenty four (24) hours. The LOG file
### can be check if there is any discrepancies.
###     ---- NTP Team
###
### Usage:   ./stabilitycheck [10.52.166.101]
### IP must be supplied as argument


if [ "$#" -ne 1 ] ; then

 clear
 echo "One IP argument is necessary."
 echo "e.g. $ ./stabilitycheck 10.52.166.101"
 exit
fi

### IP of server to be checked

SERVERIP="$1"
ping -c 2 "$1" > /dev/null 2>&1
if [ "$?" -ne 0 ]; then
clear
echo " "
echo "IP supplied is not reachable."
exit
fi

clear
cnt=0
while [ $cnt -lt 144 ]
do

  let cnt=cnt+1
  echo "--- round $cnt test on $SERVERIP --->"
  ntpdate -q $SERVERIP | tee -a stabilityLOG
  echo " "
  
  sleep 10m
done

echo " "
echo "--------------------------------------------"
echo "Performed $cnt rounds of test to $SERVERIP"
echo "NTP server. Log report was written in stabilityLOG"
echo "file. Bye"
echo " "
echo "  ---- NTP Team"
echo " "

This can be executed in a command line,

$ stabilitycheck 10.52.166.101