To write a Perl script that checks, whether ntp is active on a particular AIX or Linux box.
Obviously the last synchronization is logged in the file ntp.log
So, my task would be find out, when the synchronization SHOULD have taken place and compare this with the time stamp of the log entry. Seems to be easy, but:
Up to now I could not figure out where the nominal sync time is configured or which command will reveal it.
E.g., the file ntp.conf on the AIX box contains the following entries
All
What is the best way to keep the system clock synchronized? I have looked at ntp and netdate. Is one good over the other? Basically I want to know if what is the most secure way to keep the system clock insync. netdate will require me to open up some port 37... is this safe? ntp also... (1 Reply)
i have an HP UNIX box w/c acts as ntp server... I tried to change the time plus 8 minutes... the problem is that the other HP UNIX ntp client did not follow the time... when I tried to restart ntp client... using stop start it only sync to the server once... when I issue the command "ntpq -p", w/c... (2 Replies)
Hi Friends,
I want a shell script which will move certain .jar files from a specified location (say /publish/content) to (/publish/archive) on every saturday morning 6 am.
One more thing to add is that before moving files it must check free space at (/publish/archive), if it is more than 60 %... (7 Replies)
All here, thank you for listening. Now I've set up a Linux NTP server by adding a external windows NTP server in /etc/ntp.conf. Then I start the ntpd daemon. But how often does the Linux NTP server update its time with the external NTP server? I've looked up everywhere but found no information... (1 Reply)
hello all,,
am trying to do a time synchronization between a ntp server and a client, but facing some problems in doing so:
i run the ntpdate in debug mode and this is what i got. please help me out..
# ntpd -d -u 172.22.1.207
ntpd 4.2.2p1@1.1570-o Sun Aug 28 19:21:03 UTC 2011 (1)... (1 Reply)
Good morning,
My first post and first visit, so hello. I have been asked to see if one of our Linux boxes can have it's time sync automatically because the person who built the system has told our staff it cannot be done. To me that raised some flags because although I am no Linux expert, I just... (12 Replies)
Discussion started by: YSupport
12 Replies
7. Post Here to Contact Site Administrators and Moderators
Dear All,
Today, somewhere around 7:30 GMT (2:30 PM Eastern Time) www.unix.com will go down for what we hope is around 15 - 20 minutes as we change out some hardware on the server.
Thank you for your patience and support.
Neo (0 Replies)
I've scheduled few jobs using cron. But they are not running .....
What might be the possible reasons ?? Also tell me how to troubleshoot.............
Please help me .......
Thanks in Advance. (2 Replies)
There is one server in my company where the time is out of sync.
When I checked (compared with other servers whose time is correct), the XNTPD variable in /etc/rc.config.d/netdaemons was set as 0.
I changed this to 1, and tried restarting the xntpd process with :
# /sbin/init.d/xntpd start
... (4 Replies)
Discussion started by: anaigini45
4 Replies
LEARN ABOUT SUSE
tnm::ntp
ntp(n) Tnm Tcl Extension ntp(n)
__________________________________________________________________________________________________________________________________________________NAME
ntp - Retrieve NTP status information.
_________________________________________________________________DESCRIPTION
The Network Time Protocol (NTP) (RFC 1119, RFC 1305) allows to synchronize computer clocks by exchanging NTP messages. The ntp command
allows to retrieve control variables from NTP peers.
NTP COMMAND
ntp [options]
Invoking the ntp command with options but without any command arguments allows to retrieve and change the default values. See the
description of supported options below. Default values are bound to a Tcl interpreter which allows to have multiple Tcl interpreter
with different defaults.
ntp [options] host arrayName
The ntp command sends a NTP version 3 mode 6 request to host and writes status information into the Tcl array arrayName. After suc-
cessful completion, the array will contain the following elements (RFC 1305):
peer.delay
This is a signed fixed-point number indicating the roundtrip delay of the peer clock relative to the local clock over the
network path between them, in seconds.
peer.dispersion
This is a signed fixed-point number indicating the maximum error of the peer clock relative to the local clock over the net-
work path between them, in seconds.
peer.offset
This is a signed, fixed-point number indicating the offset of the peer clock relative to the local clock, in seconds.
peer.precision
This is a signed integer indicating the precision of the various clocks, in seconds to the nearest power of two.
peer.reach
This is a shift register used to determine the reachability status of the peer, with bits entering from the least significant
(rightmost) end. A peer is considered reachable if at least one bit in this register is set to one.
peer.srcadr
This is the IP address of the peer.
peer.stratum
This is an integer indicating the stratum of the local clock.
peer.valid
This is an integer counter indicating the valid samples remaining in the filter register. It is used to determine the reacha-
bility state and when the poll interval should be increased or decreased.
sys.peer
This is a selector identifying the current synchronization source.
sys.precision
This is a signed integer indicating the precision of the various clocks, in seconds to the nearest power of two.
sys.refid
This is a 32-bit code identifying the particular reference clock.
sys.rootdelay
This is a signed fixed-point number indicating the total roundtrip delay to the primary reference source at the root of the
synchronization subnet, in seconds.
sys.rootdispersion
This is a signed fixed-point number indicating the maximum error relative to the primary reference source at the root of the
synchronization subnet, in seconds.
sys.stratum
This is an integer indicating the stratum of the local clock
sys.system
A textual description of the system type.
NTP OPTIONS
The following options control how NTP requests are send and how the ntp command deals with lost NTP packets.
-timeout time
The -timeout option defines the time the ntp command will wait for a response. The time is defined in seconds with a default of 2
seconds.
-retries number
The -retries option defines how many times a request is retransmitted during the timeout interval. The default number of retries is
2.
SEE ALSO scotty(1), Tnm(n), Tcl(n)
AUTHORS
Erik Schoenfelder <schoenfr@gaertner.de>
Juergen Schoenwaelder <schoenw@cs.utwente.nl>
Tnm ntp(n)