Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Time Server

Status
Not open for further replies.

timed

IS-IT--Management
Feb 4, 2003
4
CA
Hi,

Need help how to sync an RS/6000 with a NT time server. In Aix documentation they are referencing the timed command. Does anyone can help me on that
 
Have you thought about using xntp rather than timed? I use that on my unix systems. The master clock I use to sync to is one that is out on the internet which has the universal time.

 
Actually you have a choice of timed or ntp. Either one works. More likely, ntp will be a better choice. AIX calls it xntpd.

Bill.
 
Need more detail....

My PC Windows 2000 is use as a time server. It's broadcasting NTP. Is there any config file that i have to setup on AIX in order to "listen" to NTP and then resync my RS/6000 clock ???

I've started xntpd using startsrc -s xntpd, but date and time does not syncronize !!

 
You need to create an /etc/ntp.conf and point it to the Win2K machine. There might be a /etc/ntp.conf file already. If so, change the server IP address to your win2K machine, stop and restart xntpd, and you are ready to go.

Bill.
 
here is what is in my ntp.conf file:

broadcastclient yes
driftfile /etc/ntp.drift
tracefile /etc/ntp.trace
server mercury.whatever.com

the master server (which would be your NT server) is mercury.whatever.com. Be sure you can ping the NT server from your Unix server. Or specify the IP address of the NT server. Be sure to stop and restart the xntp daemon after creating the ntp.conf file.
 
I've set the time 2 hours behind on my AIX box,
When does the AIX get sync. Is it only a the startup of RS/6000 or it will get slowly sync by increasing speed of clock on RS/6000 ???

Thanks
 
It will slowly adjust the time either forward or backward to match the time of the server. Give it a few hours.

Bill.
 
Hi,

The time seems to be sync only when I stop and restart the XNTPD services....Is it normal....do i have to schedule in crontab a stop and restart service ????
 
No, you shouldn't have to do that. Try this:

at the command line, type ntpq and Enter. You should get a prompt like this: ntpq>
Type peer and Enter. You should get some information about the system that is the master.
 
FYI, if you set the local time too far away from the time server's time (more that six minutes, I think) the xntpd will freak out until it manages to drift back to "proper" time. Someone explained all this to me a month or two ago so I cannot remember specific commands. Just try to get the time as close as possible and the daemon will probably take care of itself.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top