02-12-2008
ntpdate problem in Unixware
Hi Guys,
A weird problem. I have disabled ntpd daemon on a HP server and placed
ntpdate in crontab instead and redirected the log to a file. This command
in cron synchronizes the server with a local time server every 15 minutes.
The weird part is that on 3 specific times (5:00 am, 10:00 am, 15:00 am)
the offset is BIG. 15 seconds for example. Take a look at this log:
19 Jan 14:15:00 ntpdate[25822]: adjust time server 132.147.1.83 offset -0.035859 sec
19 Jan 14:30:00 ntpdate[1251]: adjust time server 132.147.1.83 offset -0.029722 sec
19 Jan 14:45:00 ntpdate[6780]: adjust time server 132.147.1.83 offset -0.038382 sec
19 Jan 15:00:00 ntpdate[12200]: step time server 132.147.1.83 offset -16.724679 sec
19 Jan 15:15:00 ntpdate[17633]: adjust time server 132.147.1.83 offset -0.039956 sec
19 Jan 15:30:00 ntpdate[23085]: adjust time server 132.147.1.83 offset -0.031165 sec
19 Jan 15:45:00 ntpdate[28495]: adjust time server 132.147.1.83 offset -0.038435 sec
19 Jan 16:00:00 ntpdate[4021]: adjust time server 132.147.1.83 offset -0.033537 sec
19 Jan 16:15:00 ntpdate[9448]: adjust time server 132.147.1.83 offset -0.036992 sec
19 Jan 16:30:00 ntpdate[14882]: adjust time server 132.147.1.83 offset -0.044169 sec
19 Jan 16:45:00 ntpdate[20296]: adjust time server 132.147.1.83 offset -0.015335 sec
19 Jan 17:00:00 ntpdate[25708]: adjust time server 132.147.1.83 offset -0.046378 sec
19 Jan 17:15:00 ntpdate[1147]: adjust time server 132.147.1.83 offset -0.029828 sec
19 Jan 17:30:00 ntpdate[6693]: adjust time server 132.147.1.83 offset -0.047750 sec
19 Jan 17:45:00 ntpdate[12113]: adjust time server 132.147.1.83 offset -0.029125 sec
19 Jan 18:00:01 ntpdate[17528]: adjust time server 132.147.1.83 offset -0.022101 sec
19 Jan 18:15:00 ntpdate[22953]: adjust time server 132.147.1.83 offset -0.049704 sec
19 Jan 18:30:00 ntpdate[28377]: adjust time server 132.147.1.83 offset -0.022473 sec
19 Jan 18:45:00 ntpdate[3904]: adjust time server 132.147.1.83 offset -0.042167 sec
19 Jan 19:00:00 ntpdate[9326]: adjust time server 132.147.1.83 offset -0.032394 sec
19 Jan 19:15:00 ntpdate[14756]: adjust time server 132.147.1.83 offset -0.036779 sec
19 Jan 19:30:00 ntpdate[20178]: adjust time server 132.147.1.83 offset -0.029522 sec
19 Jan 19:45:00 ntpdate[25592]: adjust time server 132.147.1.83 offset -0.038430 sec
19 Jan 20:00:00 ntpdate[1003]: step time server 132.147.1.83 offset -16.474113 sec
19 Jan 20:15:00 ntpdate[6586]: adjust time server 132.147.1.83 offset -0.044310 sec
19 Jan 20:30:00 ntpdate[12017]: adjust time server 132.147.1.83 offset -0.029716 sec
19 Jan 20:45:00 ntpdate[17433]: adjust time server 132.147.1.83 offset -0.038163 sec
19 Jan 21:00:00 ntpdate[22841]: adjust time server 132.147.1.83 offset -0.033617 sec
I am really confused. Why
this happens every 5 hours exactly on those times?? Any idea?
I appreciate your help.
10 More Discussions You Might Find Interesting
1. Programming
When I compile a c program about oracle ,why can I add LIB of Oracle? Thank you !
# cc -L /usr/lib/ -L /oracle/app/oracle/product/8.0.5/lib/ -I ./ sample1.c
Undefined first referenced
symbol in file
sqlcxt ... (1 Reply)
Discussion started by: loudingyang
1 Replies
2. UNIX for Dummies Questions & Answers
I got serious problem with installation of Unixware 7 on simple Intel p166 machine. Got Maxtor 850mb HDD. Everytime i try to install the system (through all install diskettes, including HBA) i got panic:
PANIC: kernel-mode address fault on user address ...
...with registers and hardware stack... (1 Reply)
Discussion started by: nalim
1 Replies
3. UNIX for Dummies Questions & Answers
I would like to setup date / time sync on Solaris 8 using the command ntpdate. How do I set it up?
Thanks
Mark (1 Reply)
Discussion started by: miredale
1 Replies
4. SCO
Hi All,
I just tried to intall Unix ware SCO version 7 on my computer but when system first boots from the CD The terminal Emulator does not shows texts in correct form; it shows all the text in Obnoxious form which is unable to read. I have ATI Radeon 9000 Graphics card installed on my... (0 Replies)
Discussion started by: monster12
0 Replies
5. Shell Programming and Scripting
Hi Engg. ! :cool:
When I am trafering a file through ftp from windows to UNIX having size about 1.24 GB then at the end of file transfer I got a error message "Extended file size limit (coredump)" and finnally ftp stop, whenever on other UNIX server the same file from windows... (1 Reply)
Discussion started by: Niraj Gopal Sha
1 Replies
6. SCO
Hello,
I am having performance problem when , i ported a c code from Unixware 2.1 to Unixware 7.0.0.
My program establishes a synchornous connection with the client in a windows OS and then sends and receives messsages using the recv and send calls.
What i hyave noticed is that after a... (0 Replies)
Discussion started by: Amith
0 Replies
7. SCO
I am trying to install SCO Unixware7 on compaq DL380 Server with bootable CD but it was stuck at .....
It was not going to further
I have given the following
unix
Sco UnixWare7
....
It was giving errror "unrecogonized command", Can any one please help to completed the installation.... (4 Replies)
Discussion started by: visu101
4 Replies
8. SCO
Dear All,
I have a HP Netserver LH3 server which has unixware 7 os with oracle. Suddenly it shows a error message that " Raw Stack Dump beigns at 0xFFFDABIC...
Generating Selective dump
Storing system memory image for crash analysis....
#scanning memory....dumping to disk
(Press any key to... (0 Replies)
Discussion started by: mr.chiranjib
0 Replies
9. SCO
Hi,
I need help for SCO UNIXWARE 7.1.0.
During booting it is detecting the network card (Intel PRO 100B /100+) but it is giving error : "UX:S69inet:error".
Hence network is not getting up.
I have tried with another network card (D-Link DFE 538TX) but unable to get the proper driver for the... (1 Reply)
Discussion started by: hcl.rajat
1 Replies
10. Shell Programming and Scripting
Hi there,
Hi have a group of computers + a server (all debians) connected to each other on a LAN.
For some reasons that I've not decided and that I can't change, the computers cannot connect to the net. Moreover, the server has no ntp service.
Though, I need to find a way of setting all... (4 Replies)
Discussion started by: chebarbudo
4 Replies
ntpdate(8) System Manager's Manual ntpdate(8)
NAME
ntpdate - set the date and time via NTP (Network Time Protocol)
SYNOPSIS
/usr/sbin/ntpdate [-bdqsuv] [-a key#] [-e authdelay] [-k keyfile] [-o version] [-p samples] [-t timeout] server1 server2 server3...
OPTIONS
Tells ntpdate to step the system time immediately to match NTP. Use this option only when booting the system. Prints configuration and
debugging information. Queries the server(s) and prints the information received; the date and time are not set. Tells ntpdate to log its
actions through the syslog(3) facility rather than to the standard output. This is useful when running the program from cron(8). Tells
ntpdate to use an unprivileged port to send the packets from. This is useful when you are behind a firewall that blocks incoming traffic to
privileged ports, and you want to synchronise with hosts beyond the firewall. Note that the -d option always uses unprivileged ports. Runs
in verbose mode. Specifies that all packets should be authenticated using the key number provided. Specifies an authentication processing
delay, in seconds (see xntpd(8) for details). This number is usually small enough to be negligible for ntpdate's purposes, though specify-
ing a value may improve timekeeping on very slow CPU's. Specifies that authentication keys will be read from keyfile instead of the
default /etc/ntp.keys file. This file should be in the format described in xntpd(8). Forces ntpdate to poll as a version implementation.
By default ntpdate claims to be an NTP version 3 implementation in its outgoing packets. Some older software will decline to respond to
version 3 queries. Acquires a specified number of samples from each server. The range of values for samples is from 1 and 8, inclusive.
The default is 4. Waits timeout seconds for a response. Any value entered will be rounded to a multiple of 0.2 seconds. The default is 1
second, a value suitable for polling across a LAN.
DESCRIPTION
The ntpdate command sets the local date and time by polling the Network Time Protocol server(s) on the host(s) given as arguments to deter-
mine the correct time. It must be run as root on the local host. A number of samples are obtained from each of the servers specified and
the standard NTP clock filter and selection algorithms are applied to select the best of these. The ntpdate command is run from
/sbin/init.d/settime to set the time of day at boot time, if NTP is configured. (See ntpsetup(8) for information on configuring NTP.) Note
that ntpdate's reliability and precision will improve dramatically with greater numbers of servers. While a single server may be used,
better performance and integrity will be obtained by providing at least three or four servers, if not more.
Time adjustments are made by ntpdate in one of the following ways: If ntpdate determines your clock is off by more than 0.5 seconds, it
steps the time by calling settimeofday(2). If the error is less than 0.5 seconds, however, it will by default slew the clock's time by a
call to adjtime(2) with the offset.
The latter technique is less disruptive and more accurate when the offset is small, and works quite well when ntpdate is run by cron every
hour or two. The adjustment made in the latter case is actually 50% larger than the measured offset since this will tend to keep a badly
drifting clock more accurate (at some expense to stability, though this tradeoff is usually advantageous).
Ntpdate will decline to set the date if an NTP server daemon (for example, xntpd(8)) is running on the same host. When running ntpdate on
a regular basis from cron(8) as an alternative to running a daemon, doing so once every hour or two will result in precise enough timekeep-
ing to avoid stepping the clock.
Note
Because of significant changes in NTP version 3, you should check all scripts that use the ntpdate command for correct usage and output.
ERRORS
A common problem is polling a server using the wrong query version number or wrong authentication key. If either occurs, ntpdate prints
the following error message: 18 Apr 10:20:28 ntpdate(1192]: no server
suitable for synchronization found
At boot time, if NTP is not configured, the ntpdate prints the following message: WARNING: ntpdate cannot succeed, please check your
NTP configuration
EXAMPLES
The following command line sets the date and time after polling server host1.dec.com as a version 2 implementation: /usr/sbin/ntpdate -o 2
host1.dec.com The following command line sets the date and time after polling server host2.dec.com. All packets are authenticated using
authentication key 1. /usr/sbin/ntpdate -a 1 host2.dec.com
FILES
Specifies the command path Contains the encryption keys used by ntpdate
SEE ALSO
Commands: ntpq(8), xntpd(8), xntpdc(8)
Files: ntp.conf(4)
ntpdate(8)