Basic steps to configure the NTP and timezone in the system:
A. Configuration:
Server
side configuration:
1. cp /etc/ntp.conf /etc/ntp.conf.bak
2. # vim /etc/ntp.conf
server 127.127.1.0
fudge 127.127.1.0 stratum 10
3. # /etc/init.d/ntpd restart
#
chkconfig ntpd on
Clicne
side configuration:
1. # vim /etc/ntp.conf
server <server IP>
2. # /etc/init.d/ntpd restart
#
chkconfig ntpd on
Time
syncing:
# ntpdate -u <server IP>
# ntpq –p
B. Time Zone changing:
1. # date
IST time
2. # rm
–rf /etc/localtime
3. To change the time zone in the system:
# ln
–s /usr/share/zoneinfo/UTC localtime
4. # date
UTC time
5. # ntpdate –u <server IP>
6. To check the status:
# ntpq –p
<will show NTP server name>
# ntpstatus
Will show ‘unsynchronized’ if the time is
still not synced, and ‘synchronized’ if the time with the server has been
synced.
You need to wait for 15 mins to get the
syncing done.
No comments:
Post a Comment