- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- How to set ntp service using scripts or sam?
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 06:56 PM
09-12-2006 06:56 PM
How to set ntp service using scripts or sam?
There are 2 HP ia64 hosts in a cluster.Now I want to synchronize the two hosts' time.I haved tried to configure the ntp service as follow:
host1(server):
1. vi/etc/ntp.conf
add
server 127.127.1.1
2. vi/etc/rc.config.d/netdaemons
change
export NTPDATE_SERVER=127.127.1.1
export XNTPD=1
3. start xntpd
/sbin/init.d/xntpd start
host2(client):
1. create file /etc/ntp.drift
2. vi/etc/ntp.conf
add
server 127.127.1.1
driftfile /etc/ntp.drift
3. vi/etc/rc.config.d/netdaemons
change
export XNTPD=1
4. start xntpd
/sbin/init.d/xntpd start
but when I excuted the command $date at the same time on the two hosts ,the result ware
Wed Sep 13 14:45:48 EAT 2006
Wed Sep 13 14:47:16 EAT 2006
Why the time on the two hosts is not the same?
The steps are right? What about the right approaches?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-12-2006 07:01 PM
09-12-2006 07:01 PM
Re: How to set ntp service using scripts or sam?
What does "ntpq -p" give you?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:00 AM
09-13-2006 02:00 AM
Re: How to set ntp service using scripts or sam?
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 12:59 PM
09-13-2006 12:59 PM
Re: How to set ntp service using scripts or sam?
Bill's suggestion to sync to some external time source(s) ( you should have more than one) is quite good. That or you might consider getting some GPS clocks to connect to your systems.
I would think that the ServiceGuard docs would be all over configuring time synchronization for a cluster.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 01:48 PM
09-13-2006 01:48 PM
Re: How to set ntp service using scripts or sam?
Good day to you !
Perhaps the document below can help you to setup the NTP ('How do I configure a local NTP server?', docID : KBRC00015667) :
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000081573208
OR this document below ('How can I setup NTP without using SAM?', docID : UOTHKBAN00000796
) :
http://www2.itrc.hp.com/service/cki/docDisplay.do?docLocale=en_US&docId=200000062686582
Hope this information can help.
Cheers,
AW
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-13-2006 02:55 PM
09-13-2006 02:55 PM
Re: How to set ntp service using scripts or sam?
On the client;
vi /etc/ntp.conf add the
vi /etc/rc.config.d/netdaemons add
NTPDATE_SERVER=
XNTPD=1
XNTPD_ARGS=
check/create driff file /etc/ntp.drift
server master_clockserver
On the master_clockserver check if the ntp daemon is running ok; /usr/sbin/ntpq -p
the /etc/ntp.conf has server=127.127.1.1
Cheers
fl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-14-2006 09:10 AM
09-14-2006 09:10 AM
Re: How to set ntp service using scripts or sam?
ntpdate_server="15.x.y.z"
that, according to instl_adm(4) will set up the configuration for you, assuming that IP address 15.x.y.z is an existing NTP server.
" [final] ntpdate_server = cplx_string
Sets the network time protocol server that the client uses to
keep the clock synchronized. See ntpdate(1M) for details. This
is currently not used during the installation, rather after the
client is finished installing.
"