Operating System - HP-UX
1833294 Members
3010 Online
110051 Solutions
New Discussion

Re: Synchronize with ntpd

 
SOLVED
Go to solution
Daniel Ubeda
Frequent Advisor

Synchronize with ntpd

Hi,

I have two HP9000's, with xntpd process running. One of them is the server and the other is the client.
How can I get the difference between two 9000's ??

the command is: ntpq server1 ???

thanks
Daniel
5 REPLIES 5
Patrick Wallek
Honored Contributor
Solution

Re: Synchronize with ntpd

I think the command you are looking for is:

# ntpq -p

# man ntpq
for more information.
Michael Steele_2
Honored Contributor

Re: Synchronize with ntpd

Basic NTP info:

ntpq -p (* synchronize *)

/sbin/init.d/xntpd start/stop

/etc/rc.config.d/ntp.conf (* configuration file *)

However, SAM will do it all if you let it!

http://forums.itrc.hp.com/cm/QuestionAnswer/1,,0x199dd5fab40ed6118ff40090279cd0f9,00.html
Support Fatherhood - Stop Family Law
John Bolene
Honored Contributor

Re: Synchronize with ntpd

time difference?

you can get real close with

date;telnet other-box daytime

It is always a good day when you are launching rockets! http://tripolioklahoma.org, Mostly Missiles http://mostlymissiles.com
Robert True
Frequent Advisor

Re: Synchronize with ntpd

Since I don't have access to a real ntp site to sync my 2 9000 systems to, I run the following in cron once a day to keep track of the drift between the 2, until I can get access to an NTP site:

/usr/bin/remsh /usr/bin/date; /usr/bin/date

This will not give you an exact time match, but is close. I then do a date -a when they drift more than a minute apart.
Charles Holland
Trusted Contributor

Re: Synchronize with ntpd

Small script to identify the time on two machines. Best way to sync time would be one machine get to a stratum 1 server on the internet and then have the second one to sync to the first. You do not have to allow your UNIX boxes to be the direct internet access. Put a dumb windoz on the network, have it access the internet and sync itself. You may have to have it (the windoz box to a broadcast out) and then have your UNIX boxes sync to it.
"Not everything that can be counted counts, and not everything that counts can be counted" A. Einstein