Device Management Commands; Clock Datetime - HP 6125XLG Command Reference Manual

Blade switch fundamentals command reference
Table of Contents

Advertisement

Device management commands

clock datetime

Use clock datetime to set the UTC time.
Syntax
clock datetime time date
Default
The default UTC time is 00:00:00 on 01/01/201 1.
Views
User view
Predefined user roles
network-admin
Parameters
time: Specifies a time in the format hh:mm:ss. The hh value is in the range of 0 to 23, the mm value is in
the range of 0 to 59, and the ss value is in the range of 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 format MM/DD/YYYY or YYYY/MM/DD. The YYYY value is in the range
of 2000 to 2035, the MM value is in the range of 1 to 12, and the value range of DD depends on the
month value.
Usage guidelines
When the system time source is the local system time, the UTC time determines the system time together
with the local time zone and daylight saving time. You can use the display clock command to view the
system time.
A correct system time setting is essential to network management and communication. Set the system time
correctly or use NTP to synchronize your device with a trusted time source before you run it on the
network.
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 summer-time
clock timezone
display clock
144

Advertisement

Table of Contents
loading

Table of Contents