Operating System - HP-UX
1855270 Members
4686 Online
104109 Solutions
New Discussion

Synchronising Server time : SAM NTP

 
SOLVED
Go to solution
Bill McNAMARA_1
Honored Contributor

Synchronising Server time : SAM NTP

Hi,
in real basic point here click here.. tell me how to do the Subject! I don't want to read a big man.

4 servers all on same lan.

want to set time on 3
by the time on the 4th.

No internet connection, no timeserver..

So the 4th server reference clock will be it's own internal clock.

REMEMBER: I DON'T want to read the man!

Thanks!
Bill
It works for me (tm)
5 REPLIES 5
Alex Glennie
Honored Contributor
Solution

Re: Synchronising Server time : SAM NTP

Following is a procedure to setup an NTP server using its local system clock
and any number of clients:


Procedure on the main server:

Log in as root and run a SAM session then do the following steps:

1. Click on the Time icon.

2. Click on the NTP Network Time Sources icon.

3. Select the menu Action -> Configure NTP Local Clock

4. Select Use System Clock and press OK

5. Select the menu List -> NTP Broadcasting

6. Select the menu Action -> Add Broadcast Client Network

7. Enter the broadcast address of the subnet where your client is located. You
can get this information by running the following command on the client:

ifconfig lan0 ---> you will get the following listed:

lan0: flags=863
inet 15.37.113.130 netmask fffff800 broadcast 15.37.119.255


Here's the broadcast address

So add the broadcast address of all your clients if they are not on the same
subnet.

8. Select the menu Action -> Start NTP
Your server is now set.


Procedure for the client:

Log in as root and run a SAM session, then do the following steps:

1. Click on the Time icon.

2. Click on the NTP Network Time Sources icon.

3. Select the NTP Broadcasting icon.

4. Select the menu Actions -> Enable Receiving Time Broadcasts

5. Select the menu Actions -> Start NTP
Your client is now set. You can repeat this on all your clients.

For further information on the subject, you can refer to the manual "HP9000
Networking: Installing and Administering Internet Services"

or the man pages ;)
James R. Ferguson
Acclaimed Contributor

Re: Synchronising Server time : SAM NTP

Hi Bill:

Choose one of your servers as the timekeeper and in '/etc/ntp.conf' add, at the bottom:

server 127.127.1.1 #...my own clock...

On your other servers, in their '/etc/ntp.conf' add:

server

Regards!

Now, set 'XNTPD' to <1> in '/etc/rc.config.d/netdaemons' so that xntp starts up at bootup.

Issue:

# /sbin/init.d/xntpd start

Check synchronization with:

# ntpq -p

...and remember that a time difference of greater than 1000 seconds will cause synchronization to fail. If this is the case, adjust your server time(s) first.

Regards!

...JRF...
...JRF...
Vincenzo Restuccia
Honored Contributor

Re: Synchronising Server time : SAM NTP

To configure xntpd:

Edit the xntpd configuration file /etc/ntp.conf. You can also use SAM to configure xntpd.

Determine how you want to configure xntpd by reading the rest of this chapter and the xntpd man page. Then add the appropriate statements in /etc/ntp.conf.

Set the environment variable XNTPD to 1 in the file /etc/rc.config.d/netdaemons. This causes xntpd to start automatically whenever the system is booted.

Set the appropriate value for your local time zone in the file /etc/TIMEZONE.

Run the xntpd startup script with the following command:


/sbin/init.d/xntpd start

Run the ntpq program with the -p switch to verify that xntpd is forming the correct relationships with other NTP hosts. (See Querying xntpd.)
Patrick Wallek
Honored Contributor

Re: Synchronising Server time : SAM NTP

OK. I won't tell you to read a man page. Instead, go have a look at /etc/ntp.conf.example.

Or, go into SAM,then go to the TIME menu, then go to 'NTP Network Time Sources', then click on the 'Actions' menu and select 'Add remote server or peer' and put in the name or IP of the machine that is your server.

On the machine that's to be your server, you should do: SAM -> TIME - NTP Network Time Sources then go to Actions and select 'Configure NTP Local Clock'

That should do you.

But you really do need to read the /etc/ntp.conf.example file if you really want to learn how to do it.
James R. Ferguson
Acclaimed Contributor

Re: Synchronising Server time : SAM NTP

Hi (again) Bill:

I would be remiss if I didn't at least suggest that a quick, easy-to-read, informative discussion of 'ntp' can be found in chapter-7 of "Installing and Administering Internet Services":

http://docs.hp.com/hpux/onlinedocs/B2355-90685/B2355-90685.html

This is worth a few minutes of your time (no pun intended!).

Regards!

...JRF...