13 July 2015

setting ntp client sun solaris

touch /etc/inet/ntp.conf
echo "server 10.242.151.25" > /etc/inet/ntp.conf
echo "filegen peerstats file peerstats type day enable" >> /etc/inet/ntp.conf
echo "filegen loopstats file loopstats type day enable" >> /etc/inet/ntp.conf
touch /var/ntp/ntp.drift
echo "driftfile /var/ntp/ntp.drift" >> /etc/inet/ntp.conf
echo "statsdir /var/ntp/ntpstats/" >> /etc/inet/ntp.conf
svcadm enable ntp

No comments:

Post a Comment