⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ntp.8

📁 ftam等标准协议服务器和客户端的源代码。
💻 8
字号:
.TH NTP 8 "30 July 1988".SH NAMEntp \- query an ntp clock.SH SYNOPSIS.B ntp[-v] [-s] [-f].I hosts....SH DESCRIPTION\fIntp\fP sends an ntp packet to the ntp daemon running on each of the givenhosts.  A daemon fills in fields of the ntp packet as per RFC-????and sends the packet back.\fIntp\fP then formats and prints the result on the standard output..PPThe default output shows the delay, offset, and date in.I ctime()format..PPOptions can reset the time of the local system clock..SH OPTIONS.TP-vVerbose output, showing the full contents of received ntp packets,plus caluclated offset, displacement, etc..TP-sSet system time-of-day clock.  Will only happen if time offset isless than compiled-in constant WAYTOBIG (currently 1000 seconds).Will not happen if remote host is unsynchronized..TP-fForce setting system clock regardless of offset.  Must be used with.B -soption.  Still will not reset clock if remote system is unsynchronized..SH NTP RESULTSThe default output for each.I hostlooks like this:.in +4.nf128.8.10.1: delay:1.845207 offset:-0.358460  Mon Mar 20 08:05:44 1989.fi.in.PPThe verbose output for each.I hostlooks like this:.in +4.nfPacket from: [128.8.10.1]Leap 0, version 1, mode Server, poll 6, precision -10 stratum 1 (WWVB)Synch Distance is 0000.1999  0.099991Synch Dispersion is 0000.0000  0.000000Reference Timestamp is a7bea6c3.88b40000 Tue Mar  7 14:06:43 1989Originate Timestamp is a7bea6d7.d7e6e652 Tue Mar  7 14:07:03 1989Receive Timestamp is   a7bea6d7.cf1a0000 Tue Mar  7 14:07:03 1989Transmit Timestamp is  a7bea6d8.0ccc0000 Tue Mar  7 14:07:04 1989Input Timestamp is     a7bea6d8.1a77e5ea Tue Mar  7 14:07:04 1989umd1: delay:0.019028 offset:-0.043890  Tue Mar  7 14:07:04 1989.fi.in	The various fields are interpreted as follows:.TPPacket from: [\fIaddress\fP]The address that this ntp packet was received from..TPLeap indicator: \fIn\fPThe leap second indicator.  Non-zero if there is to be a leap second addedor subtracted at the new year..TPStatus: \fIn\fP.TPStratum: \fIn\fP (\fIsource\fP)The stratum of the clock in the NTP hierarchy, along with the sourceof the clock, eitherthe name of a reference standard (such as WWVB or GOES) or the Internetaddress of the clock that this clock is derived from..TPPoll = \fIn\fPThe desired poll rate of the peer..TPPrecision = \fIexponent\fP (dec)The claimed precision of the clock, in seconds..TPSynchronizing Dist is \fI???\fP.TPSynchronizing Dispersion is \fI???\fP.PPThe next five timestamps are given as NTP fixed-point values, in bothhexadecimal and \fIctime(3)\fP.These are set either by this ntp process, or by the server we are quering..TPReference Timestamp is \fIhex-timestamp\fP  \fIctime string\fPThe last time the server clock was adjusted. (remote time).TPOriginate Timestamp is \fIhex-timestamp\fP  \fIctime string\fWhen the ntp request was transmitted by us to the server.  (local time).TPReceive Timestamp is   \fIhex-timestamp\fP  \fIctime string\fPWhen the ntp request was received at the server.  (remote time).TPTransmit Timestamp is  \fIhex-timestamp\fP  \fIctime string\fPWhen the ntp response was transmitted by the server.  (remote time).TPInput Timestamp is     \fIhex-timestamp\fP  \fIctime string\fPWhen the ntp response was received by us.  (local time).TP\fIhostname\fP: delay:\fItime\fP offset:\fItime\fPThe summary of the results of the query, giving the hostname of theresponding clock (from the command line), the round-trip delay, and theoffset between the two clocks (assuming symmetric round-trip times)..SH BUGSUsing.I ntpwith the current host will show inaccurate results..PPProbably a few others.  Report bugs to Louis A. Mamokos (louie@trantor.umd.edu)..SH "SEE ALSO"RFC-???? \fINetwork Time Protocol\fP(1), Dave Mills and ....brntpd(8), ntpdc(8)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -