Wednesday, February 5, 2014

NTP client setup on RHEL 6

Run the following command and edit the ntp.conf for setup NTP client on RHEL 6
 
1. RUN ntpdate to check the connectivity between the client and NTP server
 
ntpdate –q “server IP”
 
2. Backup the ntp.conf file
 
cp /etc/ntp.conf /etc/ntp.conf.org
 
3. Edit the ntp.conf
 
vi /etc/ntp.conf
 
Make sure the following line exists:
server ntp.server.com
 
4. Restart the ntpd and
 
/etc/init.d/ntpd stop
/etc/init.d/ntpd start
chkconfig ntpd on
 
5.  Check the ntp client is it running well (wait for 15 mins before check)
 
tail /var/log/messages
netstat –tlunp | grep ntp
ntpstat
ntpstat –c peers
ntpq –p
 
Print Friendly and PDF
Share/Bookmark