Operating System - HP-UX
1833776 Members
2056 Online
110063 Solutions
New Discussion

Time Date server HP UX 9000

 
My_Server
Advisor

Time Date server HP UX 9000

Please
If there any solution to make all time and date serevrs identical ,I have 6 servers HP 9000 and I need to Adjust all time & date for all servers

please tell me if you have some ideas .

thank's
7 REPLIES 7
James R. Ferguson
Acclaimed Contributor

Re: Time Date server HP UX 9000

Hi:

You need to use NTP ('xntpd'). This will allow you to synchronize the time on your servers to either an external, atomic source or to declare on of your internal servers as a local clock.

Chapter-7 of "Installing and Administering Internet Services" describes the steps. You can also do the setup with SAM.

http://www.docs.hp.com/en/B2355-90685/index.html

For external time sources, choose three (3) servers near you from the pool of servers available for this purpose:

http://ntp.isc.org/bin/view/Servers/NTPPoolServers

To establish correct time, each server must be within 1000 seconds or less of a time source. If they are not, use the 'date' command to set your local time close to the correct time. Setting a server's time backwards is not tolerated well by databases, so if you need to do this, shutdown your database before the manual time adjustment and restart it afterwards. Setting a server's time forward rarely causes any concern.

Regards!

...JRF...
Steven E. Protter
Exalted Contributor

Re: Time Date server HP UX 9000

Shalom,

Being standards based, using HP-9000 servers as time servers is certainly better than the solution post shops use, e.g. windows.

If the servers are independent, they need port 123 access to the Internet in order to act as time servers.

If this is so, use the same ntp.conf file on each server.

You might want to reverse the order of the time servers to that if one time source goes down the whole server set isn't changing time sources at the same time.

Note that the ntp client for the various OS's can not sync if the time differential is too large(what too large means is subjective) and manual adjustment may be required to get this whole regimin started.

Also note, that if you cluster ntp, it will probably not listen on a floating ip address.

SEP
Steven E Protter
Owner of ISN Corporation
http://isnamerica.com
http://hpuxconsulting.com
Sponsor: http://hpux.ws
Twitter: http://twitter.com/hpuxlinux
Founder http://newdatacloud.com
Adisuria Wangsadinata_1
Honored Contributor

Re: Time Date server HP UX 9000

Hi Merouane,

Like others, just configure NTP on your servers. Below is the document about 'How do I configure a local NTP server?' (docID : KBRC00015667) :

http://www1.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000081573208

Hope this information can help.

Cheers,
AW
now working, next not working ... that's unix
Samir Pujara_1
Frequent Advisor

Re: Time Date server HP UX 9000

Hi,

As all above has suggested - you can configure one of the HP-UX server as NTP server and rest are clients.

See this link for full details with examples;

http://docs.hp.com/en/B2355-90774/ch04s02.html
David Bellamy
Respected Contributor

Re: Time Date server HP UX 9000

use the ntpupdate command
ex: ntpupdate time_server
set this up in cron to run once or twice a day.
Raj D.
Honored Contributor

Re: Time Date server HP UX 9000

Merounane,

You need to configure NTP server, configure one server as a NTP server and let the other server use it as a NTP client, that will give you correct and same time across all the server. And optionaly you can synchronize the NTP server with any timesource.



Here is the 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. Select Time.

2. Select NTP Network Time Sources.

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

4. Select Local 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. Select Time.

2. Select NTP Network Time Sources.

3. Select NTP Broadcasting.

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.
------------------------------------------


Cheers,
Raj.
" If u think u can , If u think u cannot , - You are always Right . "
George Liu_4
Trusted Contributor

Re: Time Date server HP UX 9000

Use either one of the severs or external ntp server as an ntp server
Point to that ntp server among all 6 ntp clients