TIMEDC(8,C) AIX TCP/IP User's Guide TIMEDC(8,C) ------------------------------------------------------------------------------- timedc PURPOSE Controls the operation of the timed program. SYNTAX +-------------------------------+ timedc ---| +----------------+ |---| +- command --| |-+ +--- argument ---+ ^ | +------------+ DESCRIPTION The timedc command is used to control the operation of the timed program. It may be used to: o measure the differences between machines' clocks o find the location where the master time server is running o enable or disable tracing of messages received by timed o perform various debugging actions. Without any arguments, timedc prompts for commands from the standard input. If arguments are supplied, timedc interprets the first argument as a command and the remaining arguments as parameters to the command. The standard input may be redirected causi n timedc to read commands from a file. Commands may be abbreviated. Recognized commands are: ? [ command ... ] Prints a short description of each command specified in the argument list or if no arguments are given, a list of the recognized commands. help Prints a short description of the specified command(s), or if none are named, a list of the recognized commands. clockdiff host ... Computes the differences between the clock of the host machine and the clocks of the machines given as arguments. election host Causes the election timers of the time servers on the named hosts to expire. This is used to test the functions which cause a new master to be elected. Processed October 29, 1990 TIMEDC(8,C) 1 TIMEDC(8,C) AIX TCP/IP User's Guide TIMEDC(8,C) msite Prints the hostname of the current master time server. quit Exits from timedc. trace ( on | off ) Enables or disables the tracing of incoming messages to timed in the file /usr/adm/timed.log. EXAMPLES To list commands: $ timedc help Commands may be abbreviated. Commands are: clockdiff help quit ? election msite trace To measure a clock difference against 1 other host: $ timedc clockdiff host2 time on host2 is 53 ms. ahead of time on host1 To measure clock differences of all sites in the cluster: $ timedc clockdiff `ptn` time on host1 is ms. ahead of time on host1 time on host2 is 53 ms. ahead of time on host1 time on host3 is 28 ms. behind time on host1 To turn timed tracing on: $ timedc trace on timedc tracing enabled Interactive use: $ timedc timedc> clockdiff host2 time on host2 is 27 ms. behind time on host1 timedc> trace off timed tracing disabled timedc> quit FILES /usr/adm/timed.masterlog log file for master timed. /usr/adm/timed.log file that logs messages from timed and timedc. Processed October 29, 1990 TIMEDC(8,C) 2 TIMEDC(8,C) AIX TCP/IP User's Guide TIMEDC(8,C) RELATED INFORMATION In this book: "timed" date, refer to the AIX Operating System Commands Reference adjtime, refer to the AIX Operating System Technical Reference ptn, refer to the AIX Operating System Commands Referenc e Processed October 29, 1990 TIMEDC(8,C) 3