summaryrefslogtreecommitdiff
path: root/ntpshmmon.xml
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2015-02-28 00:40:40 -0500
committerEric S. Raymond <esr@thyrsus.com>2015-02-28 00:41:19 -0500
commitf07730966ca55c9bc92e7a2d21261e2459c080e2 (patch)
tree4ef8f4381c0b54d14de96987ea64f8f95abdcd95 /ntpshmmon.xml
parente72e4626845c502ba73e00f7afa75bb1ea3306b5 (diff)
downloadgpsd-f07730966ca55c9bc92e7a2d21261e2459c080e2.tar.gz
Complete "ntpshm.c -> ntpshmwrite.c; ntpmon -> ntpshmmon.xml"
Diffstat (limited to 'ntpshmmon.xml')
-rw-r--r--ntpshmmon.xml129
1 files changed, 129 insertions, 0 deletions
diff --git a/ntpshmmon.xml b/ntpshmmon.xml
new file mode 100644
index 00000000..f9c8a1d7
--- /dev/null
+++ b/ntpshmmon.xml
@@ -0,0 +1,129 @@
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+This file is Copyright (c) 2010 by the GPSD project
+BSD terms apply: see the file COPYING in the distribution root for details.
+-->
+<!DOCTYPE refentry PUBLIC
+ "-//OASIS//DTD DocBook XML V4.1.2//EN"
+ "http://www.oasis-open.org/docbook/xml/4.1.2/docbookx.dtd">
+<refentry id='ntpshmmon.1'>
+<refentryinfo><date>25 Jan 2015</date></refentryinfo>
+<refmeta>
+<refentrytitle>ntpshmmon</refentrytitle>
+<manvolnum>1</manvolnum>
+<refmiscinfo class="source">The GPSD Project</refmiscinfo>
+<refmiscinfo class="manual">GPSD Documentation</refmiscinfo>
+</refmeta>
+<refnamediv id='name'>
+<refname>ntpshmmon</refname>
+<refpurpose>capture samples from GPS or other ntpd refclock sources</refpurpose>
+</refnamediv>
+<refsynopsisdiv id='synopsis'>
+
+<cmdsynopsis>
+ <command>ntpshmmon</command>
+ <arg choice='opt'>-h </arg>
+ <arg choice='opt'>-s </arg>
+ <arg choice='opt'>-v </arg>
+</cmdsynopsis>
+</refsynopsisdiv>
+
+<refsect1 id='description'><title>DESCRIPTION</title>
+
+<para>This program monitors the shared-memory segments updated by
+<citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum></citerefentry>
+(and possibly other refclock sources) as a way of communicating with
+ntpd, the Network Time Protocol daemon. It reads these in exactly the way an
+ntpd instance does. It can be run concurrently with ntpd without
+interfering with ntpd's normal operation.</para>
+
+<para>This program runs forever or until interrupted, generating
+sample reports to standard output. Each line consists of
+whitespace-separated textual fields.</para>
+
+<para>Here is an example of the beginning of a report file:
+
+<literallayout>
+ntpshmmon version 1
+sample NTP2 1424926256.443030206 1424926256.115869233 1424926256.000000000 0 -1
+sample NTP3 1424926256.443060517 1424926255.995430821 1424926256.000000000 0 -20
+sample NTP3 1424926256.995747347 1424926256.995422728 1424926257.000000000 0 -20
+sample NTP2 1424926257.112433572 1424926257.111936726 1424926257.000000000 0 -1
+sample NTP3 1424926257.996221153 1424926257.995410232 1424926258.000000000 0 -20
+sample NTP2 1424926258.107769409 1424926258.107451006 1424926258.000000000 0 -1
+sample NTP3 1424926258.995647636 1424926258.995406476 1424926259.000000000 0 -20
+</literallayout></para>
+
+<para>The output always begins with a header line expressing the
+version of the output format; the version line begins with "ntpshmmon
+version" and is followed by a numeric version field.</para>
+
+<para>The remainder of the file is sample lines. The fields of a
+sample line are as follows:
+
+<orderedlist>
+<listitem><para>The keyword "sample"</para></listitem>
+
+<listitem><para>The NTP unit from which it was collected.</para></listitem>
+
+<listitem><para>Collection time of day, seconds.</para></listitem>
+
+<listitem><para>Receiver time of day, seconds.</para></listitem>
+
+<listitem><para>Clock time of day, seconds.</para></listitem>
+
+<listitem><para>Leap-second notification status.</para></listitem>
+
+<listitem><para>Source precision (log(2) of source jitter).</para></listitem>
+</orderedlist>
+</para>
+
+<para>In these fields, "clock time" is the high-precision time
+measured by the source and "receiver time" is Unix UTC time at the
+receiver. It is normal for the seconds part of receiver time to
+coincide with the seconds part of collection time and for the
+nanoseconds part of receiver time to be zero.</para>
+
+<variablelist>
+<varlistentry>
+<term>-v</term>
+<listitem>
+<para>Enable verbose status messages.</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term>-s</term>
+<listitem>
+<para>Remove all segments specified by the units argument. This
+option will normally only be of interest to GPSD developers.</para>
+</listitem>
+</varlistentry>
+
+<varlistentry>
+<term>-h</term>
+<listitem>
+<para>Display program usage and exit.</para>
+</listitem>
+</varlistentry>
+</variablelist>
+
+</refsect1>
+
+<refsect1 id='see_also'><title>SEE ALSO</title>
+<para>
+<citerefentry><refentrytitle>gpsd</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
+<citerefentry><refentrytitle>gpsdctl</refentrytitle><manvolnum>8</manvolnum></citerefentry>,
+<citerefentry><refentrytitle>gps</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+<citerefentry><refentrytitle>libgps</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+<citerefentry><refentrytitle>libgpsd</refentrytitle><manvolnum>3</manvolnum></citerefentry>,
+<citerefentry><refentrytitle>gpsprof</refentrytitle><manvolnum>1</manvolnum></citerefentry>,
+<citerefentry><refentrytitle>gpsfake</refentrytitle><manvolnum>1</manvolnum></citerefentry>.
+</para>
+</refsect1>
+
+<refsect1 id='maintainer'><title>AUTHOR</title>
+
+<para>Eric S. Raymond <email>esr@thyrsus.com</email>.</para>
+</refsect1>
+</refentry>