dtsdate(8dts)Sets local clock from a remote dtsd server host Synopsis dtsdate [-q] [-s] [-u] remote_host [nsecs] Options
-q
-s
-u Arguments
remote_host
nsecs
Description To prevent failure of CDS and of security, clocks among all DCE components must be within five minutes of each other. Some DCE components have even more stringent requirements. For instance, a DFS file server cannot start if its local host differs from other DFS hosts by more than ten seconds. You can use the dtsdate command to adjust a clock backwards, before DCE is running on a host. Adjusting a clock backwards while DCE is running can cause many difficulties because security and file system software generally require system time to increase monotonically.
Notes For dtsdate to be able to set the clock, it must run as a privileged user (root).
Exit Value If the -q argument is not given, dtsdate returns 1 if there was an error, and 0 otherwise. Examples 1. In the following example, dtsdate (with only the remotehost argument) prints out the time on the remote host. dtsdate remotehost 2. In the following example, dtsdate does not print out the remote host's time. If the times differ by more than 10 seconds, it returns the value of 1, otherwise 0. dtsdate -s -q remotehost 10 3. In the following example, dtsdate sets the clock if it differed from the remote clock by more than 10 seconds. It does this work silently, because of the -s option. dtsdate -s remotehost 10 4. The following example shows a shell script that uses the return value of dtsdate:
dtsdate -s -q remhost 10
Related Information
|