Looks like the "ntpq -c rl" changes with every update of the NTP package.
Take the "ntpq -pn" output instead! To be processed like this in the shell script:
This User Gave Thanks to MadeInGermany For This Post:
I have a script which must not be run more than once at any given time. THis script will be scheduled to run every 20 mins as a cron job.
In my script can i have logic to say if this script is already running from the previous cron, then exit.
How do i go about doing that. If you describe the... (11 Replies)
Hi guys I'm very new to unix and I have to create an awk script that detects webpage addresses from a file/webpage and outputs how many times each webpage was detected.e.g. if my file was:
(Note: The symbol " was added to stop them being created into links)
"www.google.com"... (1 Reply)
Hi guys I'm very new to unix and I have to create an awk script that detects webpage addresses from a file/webpage and outputs how many times each webpage was detected.e.g. if my file was:
www.google.com
www.facebook.com
www.google.com
the output should be:
www.google.com x2... (2 Replies)
Dear community,
what I'm try to do is deny users to run a script without parameters from command bash, but the same script should run without parameters only from crontab.
Example runs by crontab:*/5 * * * * /tmp/script.sh
Here the normal execution starts every 5 minutes
Example #1 runs by... (16 Replies)
I have to check daily 20 processes each day. The names are like Network1 Network2 Network3 ....... Network20.
There is built in utility for doing this. Following is the command to check a single network process.
check_process_status 1
If we want to check the status of Network2 then the... (6 Replies)
Hi all,
I am needing some help with a script that will search for a video file by known extensions and then do a pattern search (I'm guessing via regex) and then based on a match of one type of another move the file to an assigned directory.
I would like to do this with either a shell script... (7 Replies)
Hi forum,
So I am trying to determine the OS type with the following script:
#!/usr/bin/sh
OStype1=`uname -s`
Sunos1=SunOs
if
then
echo "This system is Linux"
exit 0
elif
then
echo "This system is SunOs"
exit 0
elif (1 Reply)
Hello there,
I am not an expert in networking related stuff but I got a requirement to create UNIX script to query our Company's internal time source via NTP for time drift detect and report it when > +/- 50ms.
I have been googling a lot but thought to post it in this forum to get a... (1 Reply)
Hello,
I have a small script and it runs from web application in below format:
pipe:///path_to_myscript.sh url1 url2 url3
myscript.sh:
#!/bin/bash
count=0
while
do
count=$((count+1))
exec 3>&1
((ffmpeg -i $1 ...... -f mpegts pipe:1 2>/dev/null 1>&3 ) 2>&1 | \
while read LINE; do echo... (9 Replies)
Discussion started by: baris35
9 Replies
LEARN ABOUT OSF1
xntpd
xntpd(8) System Manager's Manual xntpd(8)NAME
xntpd - Network Time Protocol (NTP) daemon
SYNOPSIS
/usr/sbin/xntpd [-abdgmx] [-c conffile] [-e auth_delay] [-f driftfile] [-k keyfile] [-l logfile] [-p pidfile] [-r broaddelay] [-s statdir]
[-t trustedkey] [-v sysvar] [-V def_sysvar]
OPTIONS
Runs in authenticate mode. Listens for broadcast NTP and synchronizes to this if available. Specify debugging mode. This option may occur
multiple times, with each occurence indicating greater detail of display. Allows xntpd to correct any time difference, including differ-
ences greater than 1000 seconds. Listens for multicast messages and synchronizes to them if available (requires multicast kernel). Pre-
vents xntpd from setting the system time backward. In NTP version 3, the default allows xntpd to set the system time backward. Specifies
an alternate configuration file. Specifies the time (in seconds) it takes to compute the NTP encryption field on this computer. Specifies
the location of the drift file. Specifies the location of the file which contains the NTP authentication keys. See ntp.keys(4) for infor-
mation on the authentication key file format. Specifies a log file instead of logging to syslog. Specifies the name of the file to record
the daemon's process id. Specifies the default round trip delay (in seconds) to be used if the daemon cannot automatically compensate for
network delay when synchronizing to broadcasts. Specifies the directory in which to create statistics files. Adds a key number to the
trusted key list. Adds a system variable. Adds a system variable listed by default.
DESCRIPTION
The xntpd daemon maintains a system's time-of-day in agreement with Internet standard time servers. The xntpd daemon is a complete imple-
mentation of the Network Time Protocol (NTP) version 3 standard as defined by RFC 1305, but also retains compatibility with version 1 and
version 2 servers as defined by RFC 1059 and RFC 1119, respectively.
The xntpd daemon does all computations in fixed point arithmetic and requires no floating point code. The computations done in the proto-
col and clock adjustment code are carried out with high precision and with attention to the details that might introduce systematic bias
into the computations, to try to maintain an accuracy suitable for synchronizing with even the most precise external time source.
The xntpd daemon reads its configuration from a file at startup time. The default configuration file is /etc/ntp.conf. The xntpd daemon
can be monitored and configuration options altered while the daemon is running by using either the ntpq(8) or the xntpdc(8) program.
The xntpd daemon includes support for several commercially available external reference clocks. See ntp.conf(4) for information on the use
and configuration of reference clocks.
The Tru64 UNIX operating system also provides the NTP_TIME and MICRO_TIME kernel options to allow greater accuracy and time resolution. See
ntp_intro(7) and Network Administration for more information.
FILES
Default name of the configuration file Conventional name of the drift file Conventional name of the key file
SEE ALSO
Commands: ntp(1), ntpdate(8), ntpq(8), xntpdc(8)
Files: ntp.conf(4), ntp.keys(4)
Network Administration
HISTORY
Written by Dennis Ferguson at the University of Toronto. Text amended by David Mills at the University of Delaware.
xntpd(8)