SlideShare a Scribd company logo
1 of 2
Download to read offline
NTP Cheat Sheet : ntpd Configuration File
Unicast Modes
Time Servers:
server <ip/hostname> [options]
Symmetric Active Peers:
peer <ip/hostname> [options]
[options] can be one or more of the
following flags:
iburst initial burst, speed up
initial synchronization
minpoll x change minimum or
maxpoll x maximum polling interval to
2^x seconds:
4=16s, 5=32s, 6=64s,
7=128s, 8=256s, 9=512s,
10=1024s, 11=2048s,
12=4096s, 13=8192s,
14=16384s, 15=32768s,
16=65536s, 17=131072s
prefer preferred source
key n use symmetric key
number n
autokey use autokey with this source
noselect only monitor, never use as
sync source
true always consider this source
being a truechimer
Broadcast / Multicast
Modes
IANA assigned NTP multicast address:
224.0.1.1 (IPv4) / ff05::101 (IPv6)
Send out broadcast/multicast packets:
broadcast <bcast/mcast ip> [options]
[options] can be
autokey, key n ( see left)
ttl Time To Live, number of
max.router hops the
packets should be
forwarded (default=127)
Listen to NTP broadcast packets:
broadcastclient [novolley]
novolley do not measure network
delay (uni-directional
mode)
Listen to NTP multicast packets
multicastclient <mcast ip>
Useful Weblinks
http://www.ntp.org - Official NTP Website
http://support.ntp.org/ - Support Web
http://www.meinberg.de - Meinberg Website
http://www.time-server-monitor.com - free NTP
Monitor Utlility
Generate Statistics
Enable Statistics Collection:
enable stats
Select statistics files to be generated:
stats [space separated list of stats]
List of availabile stats:
clockstats clock statistics
cryptostats crypto public key stats
loopstats loop filter statistics
peerstats peer statistics
rawstats raw timestamps info
sysstats ntpd statistics
Select where to create statistics files:
statsdir <directory path>
Filename management:
filegen <name> [file fname] [type
ftype] [link | nolink] [enable | disable]
name is the name of the stats
type (e.g. clockstats)
fname fixed part of filename
ftype can be either
none=single plain file
pid=process id in the
filename
day/week/month/year=one
file per day/week/...
age=new file every 24hrs
link create hardlink to current
file
NTP Cheat Sheet : Command/File Reference
ntpd
Command Line Options
-a require crypto auth for
bcast, mcast and peers
-A do not require auth (!)
-b enable broadcastclient
-c cfgfile use cfgfile as config file
-d debugging mode
-D level debugging level
-f driftfile specify drift file name
-g allow big initial timestep
-i jaildir chroot to jaildir
-k keyfile specify key file name
-l logfile specify log file name
-L do not listen to virtual
IPs (default: listen)
-n do not fork process
(stay in foreground)
-p pidfile specify process ID file
-q exit after first sync
-r bdelay specify broadcast delay
-s statsdirspecify statsdir
-t key specify a trusted key
-U ifupd specify interface update
interval
-x step threshold = 600s
(instead of 128ms)
ntpq
Command Line Options
ntpq [options] <hostname>
If no <hostname> is specified,
localhost will be used.
-c „x y“ run ntpq command x
with parameter(s) y
(multiple -c's are ok!)
-n do not resolve hostnames
-p show status billboard
Command Reference
command (short form) [pars]:
peers show status billboard
associations (as)
show list of associations
with id and their status
readvars (rv) [assoc]
show peer vars for
association assoc (or the
ntpd instance sysvars if
empty)
clockvars (cv) [assoc]
show clock vars for
association assoc
keyid n use key n for queries
passwd ask for key (password)
timeout x set timeout for replies to
x milliseconds
Key File Format
/etc/ntp.keys:
<n> M <passphrase>
n key id
passphrase key passphrase
Statistics Files Format
/var/log/peerstats:
mjd sec.frac paddr status offs delay disp rmsjitter
/var/log/clockstats:
mjd sec.frac caddr timecode
/var/log/loopstats:
mjd sec.frac offs freq rmsjitter alandev clkdconst
/var/log/sysstats:
mjd sec.frac uptime pr pp cver pver bver acden
badlen badauth rexc
mjd Mod. Julian Date
sec.frac seconds/fractions since midnight
paddr/caddr peer / clock address
status peer status in hex
offs,delay,disp offset, delay, dispersion in s
rmsjitter RMS jitter in s
timecode last received timecode from clock
freq frequency offset (PPM)
alandev Alan Deviation (PPM)
clkdconst Clock Discipline Time Constant
uptime time in hours since last restart
# of packets received:
pr, pp received/processed
cver,pver,bver current, prev or bad version
acden denied access
badlen bad length/format
badauth bad authentication
rexec rate exceeded
NTP Cheat Sheet v1.0 – (c)opyright 2008 by Meinberg
Funkuhren GmbH & Co. KG - www.meinberg.de

More Related Content

What's hot

Waris l2vpn-tutorial
Waris l2vpn-tutorialWaris l2vpn-tutorial
Waris l2vpn-tutorialrakiva29
 
MPLS WC 2014 Segment Routing TI-LFA Fast ReRoute
MPLS WC 2014  Segment Routing TI-LFA Fast ReRouteMPLS WC 2014  Segment Routing TI-LFA Fast ReRoute
MPLS WC 2014 Segment Routing TI-LFA Fast ReRouteBruno Decraene
 
PLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGate
PLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGatePLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGate
PLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGatePROIDEA
 
Segment Routing: A Tutorial
Segment Routing: A TutorialSegment Routing: A Tutorial
Segment Routing: A TutorialAPNIC
 
5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei
5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei
5G: a revolution or an evolution for IoT by Merouane DEBBAH, HuaweiEuroIoTa
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Tharindu Sankalpa
 
5G Network Architecture and Design
5G Network Architecture and Design5G Network Architecture and Design
5G Network Architecture and Design3G4G
 
Gpon Fundamentals
Gpon FundamentalsGpon Fundamentals
Gpon Fundamentalsmansoor_gr8
 
Point to-point-protocol
Point to-point-protocolPoint to-point-protocol
Point to-point-protocolamigurumi21
 
Multiprotocol label switching
Multiprotocol label switchingMultiprotocol label switching
Multiprotocol label switchingSumita Das
 
Cisco Study: State of Web Security
Cisco Study: State of Web Security Cisco Study: State of Web Security
Cisco Study: State of Web Security Cisco Canada
 
ICE: The ultimate way of beating NAT in SIP
ICE: The ultimate way of beating NAT in SIPICE: The ultimate way of beating NAT in SIP
ICE: The ultimate way of beating NAT in SIPSaúl Ibarra Corretgé
 
Mpls basics introduction
Mpls basics introductionMpls basics introduction
Mpls basics introductionPhilip Agu Bah
 

What's hot (20)

BGP Overview
BGP OverviewBGP Overview
BGP Overview
 
TCP Vs UDP
TCP Vs UDP TCP Vs UDP
TCP Vs UDP
 
Waris l2vpn-tutorial
Waris l2vpn-tutorialWaris l2vpn-tutorial
Waris l2vpn-tutorial
 
MPLS WC 2014 Segment Routing TI-LFA Fast ReRoute
MPLS WC 2014  Segment Routing TI-LFA Fast ReRouteMPLS WC 2014  Segment Routing TI-LFA Fast ReRoute
MPLS WC 2014 Segment Routing TI-LFA Fast ReRoute
 
PLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGate
PLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGatePLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGate
PLNOG 9: Robert Dąbrowski - Carrier-grade NAT (CGN) Solution with FortiGate
 
Mpls basic
Mpls basicMpls basic
Mpls basic
 
Segment Routing: A Tutorial
Segment Routing: A TutorialSegment Routing: A Tutorial
Segment Routing: A Tutorial
 
5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei
5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei
5G: a revolution or an evolution for IoT by Merouane DEBBAH, Huawei
 
Routing Information Protocol (RIP)
Routing Information Protocol (RIP)Routing Information Protocol (RIP)
Routing Information Protocol (RIP)
 
5G Network Architecture and Design
5G Network Architecture and Design5G Network Architecture and Design
5G Network Architecture and Design
 
Gpon Fundamentals
Gpon FundamentalsGpon Fundamentals
Gpon Fundamentals
 
Point to-point-protocol
Point to-point-protocolPoint to-point-protocol
Point to-point-protocol
 
Multiprotocol label switching
Multiprotocol label switchingMultiprotocol label switching
Multiprotocol label switching
 
TWAMP NOKIA.pdf
TWAMP NOKIA.pdfTWAMP NOKIA.pdf
TWAMP NOKIA.pdf
 
Cisco Study: State of Web Security
Cisco Study: State of Web Security Cisco Study: State of Web Security
Cisco Study: State of Web Security
 
5G network architecture progress
5G network architecture progress5G network architecture progress
5G network architecture progress
 
. computer codes
. computer codes. computer codes
. computer codes
 
ICE: The ultimate way of beating NAT in SIP
ICE: The ultimate way of beating NAT in SIPICE: The ultimate way of beating NAT in SIP
ICE: The ultimate way of beating NAT in SIP
 
VoLTE Testing Explained
VoLTE Testing ExplainedVoLTE Testing Explained
VoLTE Testing Explained
 
Mpls basics introduction
Mpls basics introductionMpls basics introduction
Mpls basics introduction
 

Similar to Configure and Monitor NTP with this Concise Cheat Sheet

Similar to Configure and Monitor NTP with this Concise Cheat Sheet (20)

Introduction to tcpdump
Introduction to tcpdumpIntroduction to tcpdump
Introduction to tcpdump
 
Arp Dan Ipconfig Syntax
Arp Dan Ipconfig  SyntaxArp Dan Ipconfig  Syntax
Arp Dan Ipconfig Syntax
 
CN 1.docx
CN 1.docxCN 1.docx
CN 1.docx
 
nwlab-ex1.pdf
nwlab-ex1.pdfnwlab-ex1.pdf
nwlab-ex1.pdf
 
RAZORPOINT TCP/UDP PORTS LIST
RAZORPOINT TCP/UDP PORTS LISTRAZORPOINT TCP/UDP PORTS LIST
RAZORPOINT TCP/UDP PORTS LIST
 
Cisco ios-cont
Cisco ios-contCisco ios-cont
Cisco ios-cont
 
Pf: the OpenBSD packet filter
Pf: the OpenBSD packet filterPf: the OpenBSD packet filter
Pf: the OpenBSD packet filter
 
Comandos huawei-prof
Comandos huawei-profComandos huawei-prof
Comandos huawei-prof
 
The New Systems Performance
The New Systems PerformanceThe New Systems Performance
The New Systems Performance
 
Basic linux commands
Basic linux commandsBasic linux commands
Basic linux commands
 
Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccna
 
Chapter5ccna
Chapter5ccnaChapter5ccna
Chapter5ccna
 
Cisco vs. huawei CLI Commands
Cisco vs. huawei CLI CommandsCisco vs. huawei CLI Commands
Cisco vs. huawei CLI Commands
 
Comandos huawei-prof
Comandos huawei-profComandos huawei-prof
Comandos huawei-prof
 
Comandos huawei comparacion con cisco
Comandos huawei comparacion con ciscoComandos huawei comparacion con cisco
Comandos huawei comparacion con cisco
 
Ngrep commands
Ngrep commandsNgrep commands
Ngrep commands
 
Understanding NMAP
Understanding NMAPUnderstanding NMAP
Understanding NMAP
 
A22 Introduction to DTrace by Kyle Hailey
A22 Introduction to DTrace by Kyle HaileyA22 Introduction to DTrace by Kyle Hailey
A22 Introduction to DTrace by Kyle Hailey
 
Getting Data into Splunk
Getting Data into SplunkGetting Data into Splunk
Getting Data into Splunk
 
Scu scsi-summary
Scu scsi-summaryScu scsi-summary
Scu scsi-summary
 

Recently uploaded

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024Scott Keck-Warren
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfAddepto
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Patryk Bandurski
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Scott Keck-Warren
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii SoldatenkoFwdays
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piececharlottematthew16
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machinePadma Pradeep
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsSergiu Bodiu
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clashcharlottematthew16
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupFlorian Wilhelm
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Mark Simos
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brandgvaughan
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024Lorenzo Miniero
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubKalema Edgar
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitecturePixlogix Infotech
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 

Recently uploaded (20)

SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024SQL Database Design For Developers at php[tek] 2024
SQL Database Design For Developers at php[tek] 2024
 
Gen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdfGen AI in Business - Global Trends Report 2024.pdf
Gen AI in Business - Global Trends Report 2024.pdf
 
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
Integration and Automation in Practice: CI/CD in Mule Integration and Automat...
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Pigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food ManufacturingPigging Solutions in Pet Food Manufacturing
Pigging Solutions in Pet Food Manufacturing
 
Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024Advanced Test Driven-Development @ php[tek] 2024
Advanced Test Driven-Development @ php[tek] 2024
 
"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko"Debugging python applications inside k8s environment", Andrii Soldatenko
"Debugging python applications inside k8s environment", Andrii Soldatenko
 
Story boards and shot lists for my a level piece
Story boards and shot lists for my a level pieceStory boards and shot lists for my a level piece
Story boards and shot lists for my a level piece
 
Install Stable Diffusion in windows machine
Install Stable Diffusion in windows machineInstall Stable Diffusion in windows machine
Install Stable Diffusion in windows machine
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 
DevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platformsDevEX - reference for building teams, processes, and platforms
DevEX - reference for building teams, processes, and platforms
 
Powerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time ClashPowerpoint exploring the locations used in television show Time Clash
Powerpoint exploring the locations used in television show Time Clash
 
Streamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project SetupStreamlining Python Development: A Guide to a Modern Project Setup
Streamlining Python Development: A Guide to a Modern Project Setup
 
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
Tampa BSides - Chef's Tour of Microsoft Security Adoption Framework (SAF)
 
WordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your BrandWordPress Websites for Engineers: Elevate Your Brand
WordPress Websites for Engineers: Elevate Your Brand
 
SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024SIP trunking in Janus @ Kamailio World 2024
SIP trunking in Janus @ Kamailio World 2024
 
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort ServiceHot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
Hot Sexy call girls in Panjabi Bagh 🔝 9953056974 🔝 Delhi escort Service
 
Unleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding ClubUnleash Your Potential - Namagunga Girls Coding Club
Unleash Your Potential - Namagunga Girls Coding Club
 
Understanding the Laravel MVC Architecture
Understanding the Laravel MVC ArchitectureUnderstanding the Laravel MVC Architecture
Understanding the Laravel MVC Architecture
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 

Configure and Monitor NTP with this Concise Cheat Sheet

  • 1. NTP Cheat Sheet : ntpd Configuration File Unicast Modes Time Servers: server <ip/hostname> [options] Symmetric Active Peers: peer <ip/hostname> [options] [options] can be one or more of the following flags: iburst initial burst, speed up initial synchronization minpoll x change minimum or maxpoll x maximum polling interval to 2^x seconds: 4=16s, 5=32s, 6=64s, 7=128s, 8=256s, 9=512s, 10=1024s, 11=2048s, 12=4096s, 13=8192s, 14=16384s, 15=32768s, 16=65536s, 17=131072s prefer preferred source key n use symmetric key number n autokey use autokey with this source noselect only monitor, never use as sync source true always consider this source being a truechimer Broadcast / Multicast Modes IANA assigned NTP multicast address: 224.0.1.1 (IPv4) / ff05::101 (IPv6) Send out broadcast/multicast packets: broadcast <bcast/mcast ip> [options] [options] can be autokey, key n ( see left) ttl Time To Live, number of max.router hops the packets should be forwarded (default=127) Listen to NTP broadcast packets: broadcastclient [novolley] novolley do not measure network delay (uni-directional mode) Listen to NTP multicast packets multicastclient <mcast ip> Useful Weblinks http://www.ntp.org - Official NTP Website http://support.ntp.org/ - Support Web http://www.meinberg.de - Meinberg Website http://www.time-server-monitor.com - free NTP Monitor Utlility Generate Statistics Enable Statistics Collection: enable stats Select statistics files to be generated: stats [space separated list of stats] List of availabile stats: clockstats clock statistics cryptostats crypto public key stats loopstats loop filter statistics peerstats peer statistics rawstats raw timestamps info sysstats ntpd statistics Select where to create statistics files: statsdir <directory path> Filename management: filegen <name> [file fname] [type ftype] [link | nolink] [enable | disable] name is the name of the stats type (e.g. clockstats) fname fixed part of filename ftype can be either none=single plain file pid=process id in the filename day/week/month/year=one file per day/week/... age=new file every 24hrs link create hardlink to current file
  • 2. NTP Cheat Sheet : Command/File Reference ntpd Command Line Options -a require crypto auth for bcast, mcast and peers -A do not require auth (!) -b enable broadcastclient -c cfgfile use cfgfile as config file -d debugging mode -D level debugging level -f driftfile specify drift file name -g allow big initial timestep -i jaildir chroot to jaildir -k keyfile specify key file name -l logfile specify log file name -L do not listen to virtual IPs (default: listen) -n do not fork process (stay in foreground) -p pidfile specify process ID file -q exit after first sync -r bdelay specify broadcast delay -s statsdirspecify statsdir -t key specify a trusted key -U ifupd specify interface update interval -x step threshold = 600s (instead of 128ms) ntpq Command Line Options ntpq [options] <hostname> If no <hostname> is specified, localhost will be used. -c „x y“ run ntpq command x with parameter(s) y (multiple -c's are ok!) -n do not resolve hostnames -p show status billboard Command Reference command (short form) [pars]: peers show status billboard associations (as) show list of associations with id and their status readvars (rv) [assoc] show peer vars for association assoc (or the ntpd instance sysvars if empty) clockvars (cv) [assoc] show clock vars for association assoc keyid n use key n for queries passwd ask for key (password) timeout x set timeout for replies to x milliseconds Key File Format /etc/ntp.keys: <n> M <passphrase> n key id passphrase key passphrase Statistics Files Format /var/log/peerstats: mjd sec.frac paddr status offs delay disp rmsjitter /var/log/clockstats: mjd sec.frac caddr timecode /var/log/loopstats: mjd sec.frac offs freq rmsjitter alandev clkdconst /var/log/sysstats: mjd sec.frac uptime pr pp cver pver bver acden badlen badauth rexc mjd Mod. Julian Date sec.frac seconds/fractions since midnight paddr/caddr peer / clock address status peer status in hex offs,delay,disp offset, delay, dispersion in s rmsjitter RMS jitter in s timecode last received timecode from clock freq frequency offset (PPM) alandev Alan Deviation (PPM) clkdconst Clock Discipline Time Constant uptime time in hours since last restart # of packets received: pr, pp received/processed cver,pver,bver current, prev or bad version acden denied access badlen bad length/format badauth bad authentication rexec rate exceeded NTP Cheat Sheet v1.0 – (c)opyright 2008 by Meinberg Funkuhren GmbH & Co. KG - www.meinberg.de