lunash sysconf ntp Commands
NAME
sysconf ntp ntpdate - Set date and time using NTP
SYNOPSIS
lunash:> sysconf ntp ntpdate <hostnameoripaddress> [-key <keyid>] [-version <version>]
DESCRIPTION
Sets date and time using NTP.
OPTIONS
(Option) | (short) | Parameter | Description |
---|---|---|---|
. | . | <hostnameoripaddress> | Add NTP Server |
-key | -k | <keyid> | NTP Authentication Keyid (1-65535) |
-version | -v | <version> | NTP version (3 or 4) |
SAMPLE OUTPUT
[myluna] lunash:> sysconf ntp ntpdate 127.127.1.0
This command sets the date and time using ntp server "127.127.1.0" if NTP daemon is not running.
NTP daemon is running. You can stop ntpd using the "service stop ntp" command before running this command.
Command Result : 0 (Success)
[myLuna] lunash:>
[myLuna] lunash:>service stop ntp
Shutting down ntp: [ OK ]
Command Result : 0 (Success)
[myluna] lunash:>
[myluna] lunash:> sysconf ntp ntpdate 127.127.1.0
This command sets the date and time using ntp server "127.127.1.0" if NTP daemon is not running.
Current time before running ntpdate: Wed Oct 12 20:47:17 PDT 2011
Current time after running ntpdate: Wed Oct 12 20:47:33 PDT 2011
Command Result : 0 (Success)
[myLuna] lunash:>
[myLuna] lunash:>service start ntp
Starting ntp: [ OK ]
Command Result : 0 (Success)
[myluna] lunash:>