This command configures and displays the CMM network time protocol (NTP) settings.
If command syntax is not correctly entered, or if a command fails to run, an error message is returned. See Common errors for a list of error messages that apply to all commands or ntp command errors for a list of error messages that are specific to the ntp command.
Function | What it does | Command | Target (see paths in Command targets) |
---|---|---|---|
Display NTP settings | Displays the NTP settings for the specified command
target. Possible return values are:
Note: Return values vary based on command target.
|
ntp | Primary CMM:
I/O module:
|
Enable / disable NTP | Enables or disables NTP for the specified command
target. For I/O module targets, the ntp -en command enables or disables transfer of NTP information from the CMM to the I/O module; it does not change the NTP state of the I/O module. |
ntp -en state where state is enabled or disabled. This command can only be run by users who
have one or more of the following command authorities:
|
Primary CMM:
I/O module:
|
NTP server IP address or hostname - set | Checks syntax and sets the IP address or hostname of the NTP server. | ntp
-i ipaddress/hostname where ipaddress/hostname is the IP address or hostname of the NTP server. This command can
only be run by users who have one or more of the following command
authorities:
|
Primary CMM:
|
NTP update frequency - set | Sets how often the clock in the specified command target is automatically updated by the NTP server. | ntp
-f time where time is the NTP update frequency, in minutes with a maximum value of 45000. This command can only
be run by users who have one or more of the following command authorities:
|
Primary CMM:
I/O module:
|
NTP - Enable / disable V3 authentication | Enables or disables V3 authentication between the CMM and
the NTP server. Note: The NTP server authentication key must be set,
using the ntp -v3 command option, before enabling V3 authentication.
|
ntp -v3en state where state is enabled or disabled . This
command can only be run by users who have one or more of the following
command authorities:
|
Primary CMM:
|
NTP server authentication key - set | Sets the v3 authentication key that the CMM uses
to access the NTP server. The authentication key contains the following
values:
|
ntp
-v3 key_indexkey_typekey where:
This command can only be run by users who have one or more
of the following command authorities:
|
Primary CMM:
|
NTP clock- synchronize | Synchronizes the CMM clock with the NTP server. (You must configure a valid NTP server before you can synchronize.) | ntp
-synch This command can only be run by users who have
one or more of the following command authorities:
|
Primary CMM:
|
Example:
ntp
The following example shows the information that is returned from this command:
system:mm[2]> ntp -en enabled -i timeserver -f 5 -v3en disabled -v3 Not configured NTP is disabled. system:mm[2]>