[ Previous | Next | Contents | Glossary | Home | Search ]
AIX Version 4.3 Commands Reference, Volume 5

timedc Command

Purpose

Returns information about the timed daemon.

Syntax

timedc [ Subcommand [ Parameter ... ] ]

Description

The timedc command controls the operation of the timed daemon. The timedc command does the following:

Without any variables, the timedc command assumes an interactive mode and prompts for subcommands from standard input. If variables are supplied, the timedc command interprets the first variable as a subcommand and the remaining variables as parameters to the subcommand. You can redirect standard input so the timedc command reads subcommands from a file.

Variables

The timedc command recognizes the following subcommands:

? [ Parameter ... ] Displays a short description of each variable specified in the parameter list. The ? subcommand only works in interactive mode. If you give no variables, the ? subcommand shows a list of subcommands recognized by the timedc command.
clockdiff Host ... Computes the differences between the clock of the host machine and the clocks of the machines given as variables.
election Host ... Requests that the timed daemon on the specified host ( s) reset its election timers and ensure that a timed master server is available. Up to 4 hosts can be specified. If a master timed server is no longer available, then the timed daemon on the specified host (s) will request to become the new timed master server.

The specified host( s) must be running the timed daemon in submaster mode with the -M flag.

help [ Parameter ... ] Displays a short description of each subcommand specified in the parameter list. If you give no variables, the help subcommand shows a list of subcommands recognized by the timedc command.
msite Finds the location of the master site.
quit Exits the timedc command.
trace { on | off } Enables or disables tracing of incoming messages to the timed daemon. The messages are held in the /var/adm/timed.log file.

You can use other commands for testing and debugging the timed daemon. Use the help command to find these commands.

These error messages may occur with the timedc command:

Ambiguous command Abbreviation matches more than one command.
Invalid command No match found.
Privileged command Command can be executed only by the root user.

Examples

  1. To display the time difference between the local host sahara and the remote host sandy, enter:
    timedc clockdiff sandy
    The output would be:
    time on sandy.austin.century.com is 37904247 ms ahead of time on
    sahara.austin.century.com
  2. To display the client location of the timed daemon, enter:
    timedc msite
    The output would be:
    client timed daemon runs on bupu.austin.century.com

Related Information

The date command.

The timed daemon.

The adjtime subroutine.

TCP/IP Daemons in AIX Version 4.3 System Management Guide: Communications and Networks.


[ Previous | Next | Contents | Glossary | Home | Search ]