1831726 Members
4308 Online
110029 Solutions
New Discussion

Re: System Date

 
SOLVED
Go to solution
Ahmad Munawwar
Frequent Advisor

System Date

Hi,

I need some advice to determine the best method to change(synchronise) the date&time between 2 N-class HP9000 server. Command example "date", "xntpd", "sam" and set_parms. Would appreciate if someone can share the knowledge.

br,
Munawwar
7 REPLIES 7
Michael Tully
Honored Contributor
Solution

Re: System Date

Hi,

The preferred method would be to use NTP and to utilise it where both of your systems are getting the time from the same source.

The below document explains how.
http://www.docs.hp.com/cgi-bin/fsearch/framedisplay?top=/hpux/onlinedocs/B2355-90741/B2355-90741_top.html&con=/hpux/onlinedocs/B2355-90741/00/00/67-con.html&toc=/hpux/onlinedocs/B2355-90741/00/00/67-toc.html&searchterms=setting%7cup%7cNTP&queryid=20021111-191541

There is no need to use 'sam', date or anything else. The 'xntpd' (daemon for NTP) will take care of all of it once it is set up.

Regards
Michael
Anyone for a Mutiny ?
Michael Tully
Honored Contributor

Re: System Date

If you utilise the search engine there a quite a number of postings about this particular subject.

Use this search string from the "search" link on the left <------

setting up NTP
Anyone for a Mutiny ?
Bill Thorsteinson
Honored Contributor

Re: System Date

ntp (xntpd) is the preferred method to synchronizer time between servers.
It runs on a continuous basis while the other options run once.
If either clock drifts, ntp will keep the time adjusted.
Differences of over 1/8 second are rare when running ntp.

Try to add an external synchronization source.
There are a number publicly available stratum 2 servers.
These are 2 servers from a reliable time source (often an atomic clock).

Ideally your whole network should be syncronized using ntp.
I find that DNS servers are often also ntp servers.

Use the 'ntpdate -d' or 'ntptrace' command to test potential time sources.
Set your watch to a local time signal or WWV short-wave broadcast.
A good time source will be accurate to within a second of the official time.
Ravi_8
Honored Contributor

Re: System Date

Hi,
using ntpdate ,we can synchronize the date and time b/n 2 systems
never give up
Ahmad Munawwar
Frequent Advisor

Re: System Date

Hi,

I successfully set up the xntpd deamon and now my workstation follow the server time. Now if I want to change the date&time on the Server what is the best command to do? date, sam or set_parms. what is the different between these command.

br,
munawwar
T G Manikandan
Honored Contributor

Re: System Date

date and time can be modified using all the three.

Sometimes if the sync. time between the server and the client is more the xntpd will die.

But the synchronization of the time can be done with date where you can slew the time gently.

# date [-a [-]sss[.fff]]


Thanks