1*663328acSjoerg.\" $NetBSD: timedc.8,v 1.13 2009/04/08 13:31:38 joerg Exp $ 218b882a9Smrg.\" 361f28255Scgd.\" Copyright (c) 1980, 1991 Regents of the University of California. 461f28255Scgd.\" All rights reserved. 561f28255Scgd.\" 661f28255Scgd.\" Redistribution and use in source and binary forms, with or without 761f28255Scgd.\" modification, are permitted provided that the following conditions 861f28255Scgd.\" are met: 961f28255Scgd.\" 1. Redistributions of source code must retain the above copyright 1061f28255Scgd.\" notice, this list of conditions and the following disclaimer. 1161f28255Scgd.\" 2. Redistributions in binary form must reproduce the above copyright 1261f28255Scgd.\" notice, this list of conditions and the following disclaimer in the 1361f28255Scgd.\" documentation and/or other materials provided with the distribution. 14326b2259Sagc.\" 3. Neither the name of the University nor the names of its contributors 1561f28255Scgd.\" may be used to endorse or promote products derived from this software 1661f28255Scgd.\" without specific prior written permission. 1761f28255Scgd.\" 1861f28255Scgd.\" THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND 1961f28255Scgd.\" ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 2061f28255Scgd.\" IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 2161f28255Scgd.\" ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE 2261f28255Scgd.\" FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 2361f28255Scgd.\" DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 2461f28255Scgd.\" OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 2561f28255Scgd.\" HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 2661f28255Scgd.\" LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 2761f28255Scgd.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 2861f28255Scgd.\" SUCH DAMAGE. 2961f28255Scgd.\" 3018b882a9Smrg.\" @(#)timedc.8 8.1 (Berkeley) 6/6/93 3161f28255Scgd.\" 322ed96b75Scbiere.Dd February 2, 2007 3361f28255Scgd.Dt TIMEDC 8 34d1407362Sgarbled.Os 3561f28255Scgd.Sh NAME 3661f28255Scgd.Nm timedc 3761f28255Scgd.Nd timed control program 3861f28255Scgd.Sh SYNOPSIS 3931bc9c50Slukem.Nm 4040bce180Swiz.Op Ar command Op Ar argument ... 4161f28255Scgd.Sh DESCRIPTION 4231bc9c50Slukem.Nm 4361f28255Scgdis used to control the operation of the 4461f28255Scgd.Xr timed 8 4561f28255Scgdprogram. 4661f28255ScgdIt may be used to: 4761f28255Scgd.Bl -bullet 4861f28255Scgd.It 4961f28255ScgdMeasure the differences between machines' clocks, 5061f28255Scgd.It 5161f28255ScgdFind the location where the master time server is running, 5261f28255Scgd.It 5361f28255ScgdEnable or disable tracing of messages received by 546e20d676Swiz.Xr timed 8 , 5561f28255Scgdand 5661f28255Scgd.It 5761f28255ScgdPerform various debugging actions. 5861f28255Scgd.El 5961f28255Scgd.Pp 6061f28255ScgdWithout any arguments, 6131bc9c50Slukem.Nm 6261f28255Scgdwill prompt for commands from the standard input. 6361f28255ScgdIf arguments are supplied, 6431bc9c50Slukem.Nm 6561f28255Scgdinterprets the first argument as a command and the remaining 6661f28255Scgdarguments as parameters to the command. The standard input 6761f28255Scgdmay be redirected causing 6831bc9c50Slukem.Nm 6961f28255Scgdto read commands from a file. 7061f28255ScgdCommands may be abbreviated; 7161f28255Scgdrecognized commands are: 7261f28255Scgd.Pp 7361f28255Scgd.Bl -tag -width Ds -compact 7461f28255Scgd.It Ic \&? Op Ar command ... 754bb7cfabScgd.Pp 7661f28255Scgd.It Ic help Op Ar command ... 7761f28255ScgdPrint a short description of each command specified in the argument list, 7861f28255Scgdor, if no arguments are given, a list of the recognized commands. 7961f28255Scgd.Pp 8061f28255Scgd.It Ic clockdiff Ar host ... 8161f28255ScgdCompute the differences between the clock of the host machine 8261f28255Scgdand the clocks of the machines given as arguments. 8361f28255Scgd.Pp 844bb7cfabScgd.It Ic msite Op Ar host ... 854bb7cfabScgdShow the master time server for specified host(s). 864bb7cfabScgd.Pp 87*663328acSjoerg.It Ic trace Li \&{ Ar on Li \&| Ar off Li \&} 8861f28255ScgdEnable or disable the tracing of incoming messages to 896e20d676Swiz.Xr timed 8 9061f28255Scgdin the file 9161f28255Scgd.Pa /var/log/timed.log . 9261f28255Scgd.Pp 934bb7cfabScgd.It Ic election Ar host 944bb7cfabScgdAsks the daemon 956ea706d3Spkon the target host to reset its 966ea706d3Spk.Dq election 976ea706d3Spktimers and to ensure that a time master has been elected. 984bb7cfabScgd.Pp 9961f28255Scgd.It Ic quit 10061f28255ScgdExit from timedc. 10161f28255Scgd.El 10261f28255Scgd.Pp 10361f28255ScgdOther commands may be included for use in testing and debugging 1046e20d676Swiz.Xr timed 8 ; 10561f28255Scgdthe help command and 10661f28255Scgdthe program source may be consulted for details. 10761f28255Scgd.Sh FILES 10861f28255Scgd.Bl -tag -width /var/log/timed.masterlog -compact 10961f28255Scgd.It Pa /var/log/timed.log 11061f28255Scgdtracing file for timed 11161f28255Scgd.It Pa /var/log/timed.masterlog 11261f28255Scgdlog file for master timed 11361f28255Scgd.El 11409141f93Swiz.Sh DIAGNOSTICS 11509141f93Swiz.Bl -tag -width Ds -compact 11609141f93Swiz.It ?Ambiguous command 11709141f93Swizabbreviation matches more than one command 11809141f93Swiz.It ?Invalid command 11909141f93Swizno match found 12009141f93Swiz.El 12161f28255Scgd.Sh SEE ALSO 12261f28255Scgd.Xr date 1 , 12361f28255Scgd.Xr adjtime 2 , 12461f28255Scgd.Xr icmp 4 , 1256ea706d3Spk.Xr timed 8 12661f28255Scgd.Rs 12761f28255Scgd.%T "TSP: The Time Synchronization Protocol for UNIX 4.3BSD" 12861f28255Scgd.%A R. Gusella 12961f28255Scgd.%A S. Zatti 13061f28255Scgd.Re 13161f28255Scgd.Sh HISTORY 13261f28255ScgdThe 13361f28255Scgd.Nm 13461f28255Scgdcommand appeared in 13561f28255Scgd.Bx 4.3 . 136