Operating System - HP-UX
1832489 Members
4404 Online
110043 Solutions
New Discussion

Re: time synchronisation - how?

 
Kathy Donnelly
Occasional Contributor

time synchronisation - how?

What is the equivalent of rdate on HP-UX?

Thanks in advance
Kathy
5 REPLIES 5
Melvyn Burnard_1
Regular Advisor

Re: time synchronisation - how?

There is no support for rdate on HP-UX, nor is there an exact equivalent.
What you can use is the NTP utilities supplied with HP-UX as of HP-UX 10.x.
man xntpd

Also SAM will allow you to set this up on your HP-UX systems.
Steve White_8
Frequent Advisor

Re: time synchronisation - how?

Hi,

If you want to implement time sync for your systems you will need to use NTP.
The set up and running is really quite simple.

The files you will need to set are

/etc/rc.config.d/netdaemons
/etc/ntp.conf

I provided a url reference so that you can review what servers are available to
use free. I spent a little bit of time reviewing the list and selecting stables
environments. If there is a firewall at your office you will require a rule
permitting port 123/udp to go out from where you define.

It would be best if you set up two servers to go out and sync time. Then point
the remainder of the servers to the two servers you have polling. When you are
testing if the ntp is working I used ntpdate -d IP address.

Good Luck
Michael Bluemm
Frequent Advisor

Re: time synchronisation - how?

Hi Kathy,
have the same problem;
network with radio controll clock; rdate running on DEC-ULTRIX, not running on HP-UX.
(How) did you solve the problem? (you gave no points!)
thanks for your answer (if you should read this message anymore)
Michael
... still trying ...
Deepak Extross
Honored Contributor

Re: time synchronisation - how?

As mentioned, there is no direct equivalent of rdate.
But if you're looking at a one-off time adjustement, maybe "date -a" will help?
Thom Cornwell
Frequent Advisor

Re: time synchronisation - how?

Once you have a stratum time server to sync with, use ntpdate -s where is the stratum time server you wish to sync with.