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:

Item Description
? [ 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:

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

Security

Attention RBAC users and Trusted AIX users: This command can perform privileged operations. Only privileged users can run privileged operations. For more information about authorizations and privileges, see Privileged Command Database in AIX® Version 7.1 Security. For a list of privileges and the authorizations associated with this command, see the lssecattr command or the getcmdattr subcommand.

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