sysconf ntp ntpdate

Set the date and time using NTP.

User Privileges

Users with the following privileges can perform this command:

>Admin

>Operator

Syntax

sysconf ntp ntpdate <hostname_or_ipaddress> [-key <keyid>] [-version <version>]

Argument(s) Shortcut Description
<hostname_or_ipaddress>   Specifies the hostname or IP address of the NTP server.
-key <keyid> -k

NTP Authentication Keyid

Range: 1 to 65535

-version <version> -v

Specifies the NTP version

Valid values: 3 or 4

Example

lunash:>sysconf ntp ntpdate time.nrc.ca


This command sets the date and time using ntp server "time.nrc.ca" if NTP daemon is not running.

Current time before running ntpdate: Mon Mar 20 17:15:20 EDT 2017
Current time after running ntpdate: Mon Mar 20 17:15:35 EDT 2017

Command Result : 0 (Success)