NTP Client Configuration on Solaris 10
1. Check the ntp daemon
ps -ef | grep ntp
It returns xntpd is running.
2. Stop the daemon:
svcadm disable ntp
3. Copy /etc/inet/ntp.client to /etc/inet/ntp.conf. Change mode of ntp.conf to make it writable. Use vi to edit ntp.conf.
Add the following lines:
server yourcompanystimeserver prefer
server 192.43.244.18
server 129.6.15.28
server 216.200.93.8
server 64.236.96.53
multicastclient 224.0.1.1
4. Sync with the time server:
ntpdate yourcompanystimeserver
5. Start ntp daemon
svcadm enable ntp
In Windows XP,
1. download TimeTools SNTP Client from this link.
2. Open a command prompt. Type the following to stop w32time from blocking the port
u:\> net stop w32time
3. Launch TimeTools SNTP Client, in Option page, enter the NTP server IP, tick Adjust System Time and click OK to synchronize. Remember close it immediately because this tool has some bug which causes huge time error if you let it run continuously.
Thursday, February 21, 2008
NTP Client Configuration on HP-UX
NTP Client Configuration on HP-UX (in my case HP-UX 11.11)
1. Check the ntp daemon
ps -ef | grep ntp
It returns xntpd is running.
2. Stop the daemon:
/sbin/init.d/xntpd stop
3. Make a backup copy of /etc/ntp.conf file. change mode of ntp.conf to make it writable. Use vi to edit ntp.conf.
Comment out the last line:
#server 0.0.0.0
Add the following lines:
server yourcompanystimeserver prefer
server 192.43.244.18
server 129.6.15.28
server 216.200.93.8
server 64.236.96.53
multicastclient 224.0.1.1
4. Sync with the time server:
ntpdate yourcompanystimeserver
5. Start ntp daemon
/sbin/init.d/xntpd start
1. Check the ntp daemon
ps -ef | grep ntp
It returns xntpd is running.
2. Stop the daemon:
/sbin/init.d/xntpd stop
3. Make a backup copy of /etc/ntp.conf file. change mode of ntp.conf to make it writable. Use vi to edit ntp.conf.
Comment out the last line:
#server 0.0.0.0
Add the following lines:
server yourcompanystimeserver prefer
server 192.43.244.18
server 129.6.15.28
server 216.200.93.8
server 64.236.96.53
multicastclient 224.0.1.1
4. Sync with the time server:
ntpdate yourcompanystimeserver
5. Start ntp daemon
/sbin/init.d/xntpd start
NTP Client Configuration on Ubuntu
To set up NTP on Ubuntu (in my case 7.10):
sudo apt-get install ntp
Create /etc/cron.daily/ntpdate if it's not there.
Add the following line
ntpdate yourcompanystimeserver ntp.ubuntu.com pool.ntp.org
for ntpd
edit /etc/ntp.conf to include additional server lines:
server yourcompanystimeserver
server ntp.ubuntu.com
server pool.ntp.org
And if you want to sync the time instantly, stop ntp service first
sudo /etc/init.d/ntp stop
sudo ntpdate yourcompanystimeserver
start the ntp service again
sudo /etc/init.d/ntp start
sudo apt-get install ntp
Create /etc/cron.daily/ntpdate if it's not there.
Add the following line
ntpdate yourcompanystimeserver ntp.ubuntu.com pool.ntp.org
for ntpd
edit /etc/ntp.conf to include additional server lines:
server yourcompanystimeserver
server ntp.ubuntu.com
server pool.ntp.org
And if you want to sync the time instantly, stop ntp service first
sudo /etc/init.d/ntp stop
sudo ntpdate yourcompanystimeserver
start the ntp service again
sudo /etc/init.d/ntp start
Subscribe to:
Posts (Atom)