Sponsored Content
Operating Systems Linux Red Hat What fields we need to consider ntpq -p output? Post 302828755 by Naveen.6025 on Wednesday 3rd of July 2013 06:13:05 AM
Old 07-03-2013
What fields we need to consider ntpq -p output?

In our environment we used to lot of events for ntp issues. I am unable to find the what needs to consider here. Smilie

Code:
ntpq -p fields.

remote refid st t when poll reach delay offset jitter

---------- Post updated at 05:13 AM ---------- Previous update was at 04:47 AM ----------

Do we have any specific values for the fields - delay, offset , jitter where we can understand easily.

Last edited by radoulov; 07-03-2013 at 06:54 AM..
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Extracting fields from an output 8-)

I am getting a variable as x=2006/01/18 now I have to extract each field from it. Like x1=2006, x2=01 and x3=18. Any idea how? Thanks a lot for help. Thanks CSaha (6 Replies)
Discussion started by: csaha
6 Replies

2. Shell Programming and Scripting

AWK Merge Fields for Print Output

I've got a file with each record on a separate line and each record contains 34 fields separated by a colon and i'm trying to re-arrange the order of the fields and merge together certain fields separated by a slash (like field7/field28). I tried using an awk print statement like awk -F: 'BEGIN... (5 Replies)
Discussion started by: RacerX
5 Replies

3. Shell Programming and Scripting

To get an output by combining fields from two different files

Hi guys, I couldn't find solution to this problem. If anyone knows please help me out. your guidance is highly appretiated. I have two files - FILE1 has the following 7 columns ( - has been added to make columns visible enough else columns are separated by single space) 155.34 - leg - 1... (8 Replies)
Discussion started by: smriti_shridhar
8 Replies

4. UNIX for Advanced & Expert Users

output of ntpq -p

Howdy guys, I have 2 sun solaris server(T200) in cluster mode. I put the command below ntpq -p. I need your help to understand the output. I plan to change the date and time in both server. node1:/home/mydir> ntpq -p remote refid st t when poll reach delay ... (6 Replies)
Discussion started by: thepurple
6 Replies

5. Shell Programming and Scripting

awk to compare diff output by fields

Diff output as follows: < AAA BBB CCC DDD EEE 123 > PPP QQQ RRR SSS TTT 111 > VVV WWW XXX YYY ZZZ 333 > AAA BBB CCC DDD EEE 124 How can i use awk to compare the last field to determine if the counter has increased, and need to ensure that the first 4 fields must have the same... (15 Replies)
Discussion started by: ux4me
15 Replies

6. Shell Programming and Scripting

compare 2 CSV fields from same diff output

Attached is a file called diff.txt It is the output from this command: diff -y --suppress-common-lines --width=5000 1.txt 2.txt > diff.txt I have also attached 1.txt and 2.txt for your convenience. Both 1.txt and 2.txt contain one very long CSV string. File 1.txt is a CSV dump of... (0 Replies)
Discussion started by: gvolpini
0 Replies

7. Shell Programming and Scripting

Problem in ntpq

Hi i an not able to understand what below command in saying in its O/P what i understand is the astrick(*) one is acting as a ntp master. but not able to understand what insane and sys.peer here means. # ntpq ntpq> pe remote refid st when poll reach delay ... (2 Replies)
Discussion started by: scriptor
2 Replies

8. Solaris

Ntpq - when=9d - not right?

Problem with external aerial and galleonm time server just turned back on. I'm guessing this is telling me its not worked for 9 days? Should I now force a poll or wait? $ntpq -p remote refid st t when poll reach delay offset disp... (2 Replies)
Discussion started by: psychocandy
2 Replies

9. Shell Programming and Scripting

Fields in the Output of ls -ltr for a directory

Could you please let me know what each of the output fields in ls -ltr for a directory imply. Example : drwxrwsr-x 4294967295 infamgr infagrp 2147549184 Sep 2 17:01 job basically would want to know 4294967295 and 2147549184 (6 Replies)
Discussion started by: infernalhell
6 Replies

10. Shell Programming and Scripting

Match output fields agains two patterns

I need to print field and the next one if field matches 'patternA' and also print 'patternB' fields. echo "some output" | awk '{for(i=1;i<=NF;i++){if($i ~ /patternA/){print $i, $(i+1)}elif($i ~ /patternB/){print $i}}}' This code returnes me 'syntax error'. Pls advise how to do properly. (2 Replies)
Discussion started by: urello
2 Replies
ntp(1)							      General Commands Manual							    ntp(1)

Name
       ntp - query a clock running the Network Time Protocol daemon, ntpd

Syntax
       /usr/etc/ntp [ -v ][ -s ][ -f ] host1 | IPaddress1 ...

Description
       The  command  is used to determine the offset between the local clock and a remote clock.  It can also be used to set the local host's time
       to a remote host's time.  The command sends an NTP packet to the NTP daemon, running on each of the remote hosts specified on  the  command
       line.  The remote hosts must be running When the daemon on the remote host receives the NTP packet, it fills in the fields (as specified in
       RFC 1129), and sends the packet back.  The command then formats and prints the results on the standard output.  You can	specify  hosts	by
       either host name or Internet address.  The hosts that you specify must either exist in the file, or in the master database, if the database
       is being served to your system by BIND/Hesiod or Yellow Pages.  The default output shows the roundtrip delay of the NTP packet in  seconds,
       the  estimated  offset between the local time and remote time in seconds, and the date in format.  See the reference page for more informa-
       tion.

       The and options can be used to reset the time of the local clock.  Use with these options to initialize the system time	prior  to  running
       the daemon.

Options
       -v   Specifies verbose output.  The output shows the full contents of the received NTP packets, plus the calculated offset and delay.

       -s   Sets  local  clock	to remote time.  This only happens if the offset between the local and remote time is less than 1000 seconds.  The
	    local clock is not reset if the remote host is unsynchronized.

	    If you specify more than one host name on the command line, queries each host in order, waiting for each host  to  answer  or  timeout
	    before querying the next host.  The local clock is set to the time of the first remote host that responds.

       -f   Forces  setting  local  clock  regardless of offset.  The option must be used with option.	The local clock is not reset if the remote
	    host is unsynchronized.

Restrictions
       Using the and options require that you be logged on as superuser.

Examples
       The following is the default output to an query about a remote host with an internet address of 555.5.55.5:
       # /usr/etc/ntp 555.5.55.5

       555.5.55.5: delay:1.845207 offset:-0.358460  Mon Mar 20 08:05:44 1989

       The following is the verbose output to an query about the same remote host:
       # /usr/etc/ntp -v 555.5.55.5

       Packet from: [555.5.55.5]
       Leap 0, version 1, mode Server, poll 6, precision -10 stratum 1 (WWVB)
       Synch Distance is 0000.1999  0.099991
       Synch Dispersion is 0000.0000  0.000000
       Reference Timestamp is a7bea6c3.88b40000 Tue Mar  7 14:06:43 1989
       Originate Timestamp is a7bea6d7.d7e6e652 Tue Mar  7 14:07:03 1989
       Receive Timestamp is   a7bea6d7.cf1a0000 Tue Mar  7 14:07:03 1989
       Transmit Timestamp is  a7bea6d8.0ccc0000 Tue Mar  7 14:07:04 1989
       Input Timestamp is     a7bea6d8.1a77e5ea Tue Mar  7 14:07:04 1989
       555.5.55.5: delay:0.019028 offset:-0.043890  Tue Mar  7 14:07:04 1989

       The fields are interpreted as follows:

       Packet from: [internet address]
	    The address of the remote host from which this NTP packet was received.

       Leap n
	    The leap second indicator.	Non-zero if there is to be a leap second inserted in the NTP timescale.  The bits are set before 23:59	on
	    the day of insertion and reset after 00:00 on the following day.

       version n
	    The NTP protocol version.

       mode type
	    The NTP mode can be Server, Client, Symmetric Passive, Symmetric Active, or Broadcast. See RFC 1129 for more information on NTP modes.

       Poll x
	    The  desired  poll	rate of the peer in seconds as a power of 2.  For example, if poll is equal to 6, that means that the poll rate is
	    one message exchanged every 2**6 seconds.

       Precision x
	    The precision of the remote host's clock in seconds as a power of 2.  For example, if precision is equal to -10, that means  that  the
	    precision is 2**-10.  The daemon sets this automatically.

       Stratum n (source)
	    The stratum of the clock in the NTP hierarchy, along with the source of the clock.	The source is either the name of a reference stan-
	    dard (such as WWVB or GOES), or the Internet address of the clock that this clock references.

       Synch Distance is nn.nn nn.nn
	    The values reported are used internally by

       Synch Dispersion is nn.nn nn.nn
	    The values reported are used internally by

       The next five timestamps are given as NTP fixed-point values, in both hexadecimal and The timestamps are set either by this NTP process, or
       by the remote host you are querying.  These timestamps are used by the local host to calculate delay and offset for this query.

       Reference Timestamp is hex-timestamp ctime_string
	      This specifies the last time the remote host clock was adjusted.	(remote time)

       Originate Timestamp is hex-timestamp ctime_string
	      This specifies when the NTP request was transmitted by the local host to the remote host. (local time)

       Receive Timestamp is hex-timestamp ctime_string
	      This specifies when the NTP request was received at the remote host.  (remote time)

       Transmit Timestamp is hex-timestamp ctime_string
	      This specifies when the NTP response was transmitted by the remote host.	(remote time)

       Input Timestamp is hex-timestamp ctime_string
	    This specifies when the NTP response was received by the local host.  (local time)

       hostname: delay:time offset:time
	    This field summarizes the results of the query, giving the host name or internet address of the responding clock specified in the com-
	    mand line, the round-trip delay in seconds, and the offset between the two clocks in seconds (assuming symmetric round-trip times).

Diagnostics
       The following error messages can be returned by NTP:

       *Timeout*

       hostname is not responding
			   May indicate that the daemon is not running on the remote host.

       No such host: hostname
			   The daemon cannot resolve the specified host name in the file.  Check that the host exists in  the  file,  or  that	it
			   exists in the master database, if the database is being served to your system by BIND/Hesiod or Yellow Pages.

See Also
       ctime(3), ntp.conf(5), ntpd(8), ntpdc(8)
       RFC 1129--Internet time synchronization:  The Network Time Protocol
       Guide to System and Network Setup
       Introduction to Networking and Distributed System Services

																	    ntp(1)
All times are GMT -4. The time now is 05:58 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy