2-1
2
Basic System Configuration and Debugging
Basic System Configuration
Follow these steps to perform basic system configuration:
To do…
Use the command…
Remarks
Set the current date and
time of the system
clock datetime
HH:MM:SS
{
YYYY/MM/DD |
MM/DD/YYYY
}
Required
Execute this command in user view.
The default value is 23:55:00 04/01/2000
when the system starts up.
Set the local time zone
clock timezone
zone-name
{
add
|
minus
}
HH:MM:SS
Optional
Execute this command in user view.
By default, it is the UTC time zone.
Set the name and time
range of the summer
time
clock summer-time
zone_name
{
one-off
|
repeating
}
start-time
start-date end-time
end-date offset-time
Optional
Execute this command in user view.
z
When the system reaches the specified
start time, it automatically adds the
specified offset to the current time, so as
to toggle the system time to the summer
time.
z
When the system reaches the specified
end time, it automatically subtracts the
specified offset from the current time, so
as to toggle the summer time to normal
system time.
Enter system view from
user view
system-view
—
Set the system name of
the device
sysname
sysname
Optional
By default, the name is
device
.
Return from current
view to lower level view
quit
Optional
If the current view is user view, you will quit
the current user interface.
Return from current
view to user view
return
Optional
The composite key
Ctrl+Z
has the same
effect with the
return
command.