R211x-HP Flexfabric 11900 Fundamentals Command Reference
218
clock protocol
Use clock protocol to specify the system time source.
Use undo clock protocol to restore the default.
Syntax
clock protocol { none | ntp mdc mdc-id }
undo clock protocol
Default
The default MDC on the device uses NTP to get the system time.
Views
System view
Predefined user roles
network-admin
mdc-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.
mdc mdc-id: Specifies the MDC to be used as the time source, in the range of 1 to 9.
Usage guidelines
If you configure this command multiple times, the most recent configuration takes effect.
The entire device uses one clock. All MDCs on the device use the same system time.
You can do either of the following:
• Configure the system time on the device, and use this command to configure the device to use the
local time source.
• Configure a time protocol on one MDC, and use this command to configure the device to use the
time source of the MDC. For more information about how to configure a time protocol on one MDC,
see Network Management and Monitoring Configuration Guide.
Only the default MDC can act as the local time source because only the default MDC has a local
oscillator.
To use the time source of an MDC, make sure the time protocol configured on the MDC is the same as
the time protocol specified for this command.
Examples
# Configure the device to use the NTP time source on MDC 2.
<Sysname> system-view
[Sysname] clock protocol ntp mdc 2










