- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: How to verify server clock...?
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
Forums
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
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
12-20-2006 05:48 PM
12-20-2006 05:48 PM
I got a request from my client to check the server clock of 5 servers...
server1# date
Thu Dec 21 00:31:53 CST 2006
server2# date
Thu Dec 21 00:34:02 CST 2006
server3# date
Thu Dec 21 00:41:08 CST 2006
server4# date
Thu Dec 21 00:41:15 CST 2006
server5# date
Thu Dec 21 00:41:16 CST 2006
all the servers are physically together..
so why the time difference...
does i need to check the ntp service, if yes, how can i do it...?
Please suggest
thanks
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 05:52 PM
12-20-2006 05:52 PM
Re: How to verify server clock...?
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=1059538
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 07:37 PM
12-20-2006 07:37 PM
Re: How to verify server clock...?
I shedule a cron for root:
00 08 * * * /usr/sbin/ntpdate -u
where ntpserver is the name of your companys ntpserver.
See "man ntpdate"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 08:02 PM
12-20-2006 08:02 PM
Re: How to verify server clock...?
It's quite possible that server clocks are not in sync for some servers. Even HP accept to have some minor difference in two servers clock you set on same time. You can configure NTP service to have the same and consistence time in all servers.
Sunil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-20-2006 08:22 PM
12-20-2006 08:22 PM
Re: How to verify server clock...?
NTP Network Time Sources:
Host Name Relationship Preferred NTP Authentication Server Current Time
or Address to Local Host Server? Version Key Number
170.108.110.50 server Yes 3 server1 Thu Dec 21 00:31:53 CST 2006
170.108.110.50 server Yes 3 server2 Thu Dec 21 00:34:02 CST 2006
170.108.110.50 server Yes 3 server3 Thu Dec 21 00:41:08 CST 2006
170.108.25.100 server Yes 3 server4 Thu Dec 21 00:41:15 CST 2006
170.108.25.100 server Yes 3 server5 Thu Dec 21 00:41:16 CST 2006
Please suggest
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 12:53 AM
12-21-2006 12:53 AM
Re: How to verify server clock...?
UNIX95=1 ps -f -C xntpd
If it is running, then check that the NTP servers can be contacted:
ntpq -p
This command shows the NTP server used by this machine. You should get several lines of output. If not, NTP is blocked. Aloso grep for ntp in syslog:
grep -i ntp /var/adm/syslog/syslog.log
Bill Hassell, sysadmin
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-21-2006 02:01 AM
12-21-2006 02:01 AM
Re: How to verify server clock...?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 07:13 PM
01-09-2007 07:13 PM
Re: How to verify server clock...?
UID PID PPID C STIME TTY TIME CMD
root 2283 1 0 Nov 5 ? 05:06 /usr/sbin/xntpd
hostname_server# ps -ef | grep -i xntpd
root 2283 1 0 Nov 5 ? 5:06 /usr/sbin/xntpd
root 3875 3852 1 02:11:46 pts/1 0:00 grep -i xntpd
hostname_server# ntpq -p
remote refid st t when poll reach delay offset disp
==============================================================================
#inforesdc0.info .LOCL. 1 u 481 512 377 0.84 -7.844 6.48
hostname_server#
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 09:32 PM
01-09-2007 09:32 PM
Re: How to verify server clock...?
you'll have to check the xntp setup of your servers. Check /etc/ntp.conf:
awk 'NF && ! /#/' /etc/ntp.conf
mfG Peter
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 10:33 PM
01-09-2007 10:33 PM
Re: How to verify server clock...?
Thanks
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
01-09-2007 11:04 PM
01-09-2007 11:04 PM
Solutionmy servers request ntp updates from another one (which has permission to enter/cross the DMZ/firewall). These are the effective contents of ntp.conf.
standard server:
root@hpats5[201] awk 'NF && ! /^#/' /etc/ntp.conf
server 12.34.56.78 version 3 prefer
broadcastclient yes
server synched to firewall (12.34.56.78):
awk 'NF && ! /^#/' /etc/ntp.conf
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
server dmz.ip.addr.1
server dmz.ip.addr.2
driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
logfile /var/log/ntp # alternate log file
server synched to internet sources:
awk 'NF && ! /^#/' /etc/ntp.conf
server 127.127.1.0 # local clock (LCL)
fudge 127.127.1.0 stratum 10 # LCL is unsynchronized
server ntp0.fau.de # IP 131.188.3.220
server ntp1.t-online.de # IP 195.145.119.188
server ptbtime1.ptb.de # IP 192.53.103.108
server ptbtime2.ptb.de # IP 192.53.103.104
driftfile /var/lib/ntp/drift/ntp.drift # path for drift file
logfile /var/log/ntp # alternate log file
NB:Better use ntp servers located in your region!
mfG Peter