183
clock protocol
Use
clock protocol
to specify the system time source.
Use
undo
clock protocol
to restore the default.
Syntax
clock protocol
{
none
|
ntp
}
undo clock protocol
Default
The device uses NTP to get the system time.
Views
System view
Predefined user roles
network-admin
Parameters
none
: Uses the local clock. After you specify this keyword, you can use the
clock datetime
,
clock
timezone
, or
clock summer-time
command to change the system time.
ntp
: Uses the time protocol NTP. If you specify this keyword, you cannot change the system time at the
CLI. You must configure NTP to get the system time. For more information about NTP, see
Network
Management and Monitoring Configuration Guide
.
Usage guidelines
If you configure this command multiple times, the most recent configuration takes effect.
Examples
# Configure the device to use the NTP time source.
<Sysname> system-view
[Sysname] clock protocol ntp
clock summer-time
Use
clock summer-time
to configure the device to use daylight saving time during a specific period of
time.
Use
undo clock summer-time
to cancel the configuration.
Syntax
clock summer-time
name
start-time
start-date end-time
end-date
add
-
time
undo clock summer-time
Default
Daylight saving time is disabled.
Views
System view