Ntp


 
Thread Tools Search this Thread
Operating Systems Solaris Ntp
# 1  
Old 11-05-2008
Ntp

Hello

I use Solaris 10 and I have NTP packages arlrady installed

pkginfo | grep -i ntp
system SUNWntpr NTP, (Root)
system SUNWntpu NTP, (Usr)


How to configure NTP?

thanks
# 2  
Old 11-05-2008
NTP Master
1. Create the file /etc/inet/ntp.conf with the following
entries:
server 127.127.1.0
driftfile /etc/ntp.drift

2. Create the file /etc/ntp.drift with the following entry:
0.0

3. Bounce NTP service.
#> /etc/rc2.d/S74xntd stop
#> /etc/rc2.d/S74xntd start

4. Check Status
#> ntpq
ntpq> peers

NTP Clients
1. Create the file /etc/inet/ntp.conf with the following entries:
server <NTP Master IP [do not use hostname]>
driftfile /etc/ntp.drift

2. Create the file /etc/ntp.drift with the following entry:
0.0

3. Bounce NTP service.
#> /etc/rc2.d/S74xntd stop
#> /etc/rc2.d/S74xntd start

4. Check Status
#> ntpq
ntpq> peers
# 3  
Old 11-05-2008
Notes
Network Time Protocol (NTP):
- When setting up an NTP config file it is important to reference these machines by
their aliases and not their canonical names. This allows you to transparently move
the NTP servers to other machines in the future.
- The public domain xntp daemon (which uses NTP) is used to sync computer clocks.
- The xtnp daemon reads the file /etc/inet/ntp.conf at startup.
It can be run periodically as a cron job.
- date and rdate can be used on systems that do not use NTP.
- Config NTP Server:
1. Copy /etc/inet/ntp.server to /etc/inet/ntp.conf
2. Edit the file /etc/inet/ntp.conf to point to an ntp server.
3. Change to the /etc/inet.d dir and start the xntd daemon
- Config Client (same):
1. Copy /etc/inet/ntp.server to /etc/inet/ntp.conf
2. Edit the file /etc/inet/ntp.conf to point to an ntp server.
3. Change to the /etc/inet.d dir and start the xntd daemon
- To sync the date and time with another system use:
rdate <remote host>
- ntpq can be used to show the status of ntp.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Red Hat

Ntp client sync with local over ntp server

Hi, I have two ntp servers in my cluster and I want all the nodes in my cluster to sync with either of the ntp servers or just one. Unfortunately it keep rotating the sync, between my ntp server 1, ntp server 2 and local. Is there anyway I can change the sync to avoid local? # ntpq -p ... (3 Replies)
Discussion started by: pjeedu2247
3 Replies

2. HP-UX

Setting up NTP HP-UX clients from solaris NTP server

Hi I wonder if its possible to setup NTP clients running HP-UX o.s. from a solaris 10 NTP server? FR (3 Replies)
Discussion started by: fretagi
3 Replies

3. Linux

How often does Linux NTP server update its time with the external NTP server?

All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
Discussion started by: MichaelLi
1 Replies

4. UNIX for Dummies Questions & Answers

Ntp Error

Hi everybody. I'm not sure where to post this, so I hope here is OK. I have 4 name servers and on one of the slaves, my log files are filling up with this error: ntpd: sendto() (fd=20): Invalid argument It is always the same IP, and only on this name server. A quick google revealed that the... (1 Reply)
Discussion started by: Gumball Dad
1 Replies

5. UNIX for Advanced & Expert Users

NTP errors

im getting errors on all of my NTP clients. Oct 27 14:44:15 cms2 ntpd: synchronisation lost Oct 27 15:08:25 cms2 ntpd: time reset 0.688591 s Oct 27 15:08:25 cms2 ntpd: synchronisation lost Oct 27 15:28:45 cms2 ntpd: time reset 0.462257 s i checked several things: ntpq> rv status=0644... (3 Replies)
Discussion started by: modcan
3 Replies

6. IP Networking

about NTP reconfiguration..

Most services can re-load/re-read their configuration file through the command "service xxxx reload", which is usually implemented by "kill -HUP service_pid" . for NTPD service, "service ntpd restart" and "service ntpd reload" are identical in /etc/rc.d/init.d/ntpd. what's more, "kill -HUP... (1 Reply)
Discussion started by: aaronwong
1 Replies

7. Solaris

ntp server and ntp client

All, How do you set a Solaris 9 server which received ntp updates from a ntp server to broadcast them on a local subnet. I have created a /etc/inet/ntp.conf file to receive the updates from a server on network and need to make this server become like a ntp relay from the main server. Any... (1 Reply)
Discussion started by: bubba112557
1 Replies

8. IP Networking

Ntp

How can I install ntp on AIX (4.3-5.1) ? thnx (1 Reply)
Discussion started by: Gismo
1 Replies

9. UNIX for Advanced & Expert Users

NTP and 11.i .....

Hi there! Does anybody know if HP-UX 11.i supports NTP? If yes, what version on NTP should be used? Thanx (1 Reply)
Discussion started by: penguin-friend
1 Replies
Login or Register to Ask a Question