Device Management Commands; Clock Datetime - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

Device management commands

clock datetime

Use clock datetime to set the UTC time.
Syntax
clock datetime time date
Default
The UTC time is the factory-default time.
Views
User view
Predefined user roles
network-admin
Parameters
time: Specifies a time in the hh:mm:ss format. The value range for hh is 0 to 23. The value range for
mm is 0 to 59. The value range for ss is 0 to 59. The leading zero in a segment can be omitted. If the
seconds segment is 0 (hh:mm:00), you can omit it. If both the minutes and seconds segments are 0
(hh:00:00), you can omit both of the segments. For example, to specify 08:00:00, you can enter 8.
date: Specifies a date in the MM/DD/YYYY or YYYY/MM/DD format. The value range for YYYY is
2000 to 2035. The value range for MM is 1 to 12. The value range for DD varies by month.
Usage guidelines
When the system time source is the local system time, the system time varies by the following items:
Local time zone.
UTC time.
Daylight saving time.
To view the system time, use the display clock command.
The correct system time setting is essential to network management and communication. To run a
device on a network, you must perform one of the following tasks on the device:
Set the system time correctly.
Use NTP or PTP to synchronize the device with a trusted time source.
Examples
# Set the UTC time to 08:08:08 01/01/2012.
<Sysname> clock datetime 8:8:8 1/1/2012
# Set the UTC time to 08:10:00 01/01/2012.
<Sysname> clock datetime 8:10 2012/1/1
Related commands
clock protocol
clock summer-time
clock timezone
display clock
223

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents