Command Reference
SYS Commands
5 SYS Commands
5.1 calendar set
Use this command to set the hardware calendar.
calendar set
{
hour
[ :
minute
[ :
second
] ] } [
month
[
day
[
year
] ] ]
Parameter
Description
Parameter
Description
hour [ :minute [ :second ] ]
Sets hardware time in the format of hour: minute: second. Only the
specified parameters (hour, minute, or second) can be reset. The
unspecified parameters keep the current system values.
month
Sets month. The range is from 1 to 12.
day
Sets date. The range is from 1 to 31. If the day does not exist in the current
month, the date is calculated backward.
year
Sets year. The range is from 1970 to 2069.
Defaults
-
Command
Mode
Privileged EXEC mode
Default Level
-
Usage Guide
1.
The time parameter is mandatory. After setting time, set month, day, and year, which can be
neglected according to your needs. The parameter that is neglected keeps the current system value.
For example, if the current hardware time is "2012-02-29 09:33:44" and you want to change month
and hour and keep values of other parameters, use the
calendar
set
12 5
command to change the
current time into "2012-05-29 12:33:44".
2.
If the value of parameter
day
is between 1 and 31, but the current month does not contain that day,
the value will be calculated backward. For example, February 2012 has 29 days. If you use the
calendar
set
11:30 2 31 2012
command to set the date to February 31, by default, the system adds
two days backwards. Therefore, the current hardware time is "2012-03-02 11:30:23".
The hardware time of the system is used as the UTC time, while the software time of the system
refers to the local time of the device.
Configuration
Examples
The following example changes the current hardware time of the system (for example, 2012-02-01
18:23:06) into 6 o’clock and keeps the values of other parameters.
Ruijie# calendar set 6
06:41:39 UTC Fri, Jul 6, 2012
Содержание RG-S29 Series
Страница 1: ...RG S29 Series Switch RGOS Command Reference Release 11 4 1 B12...
Страница 10: ...Command Reference Command Line Interface Commands Platform Description N A...
Страница 93: ...Command Reference Line Commands Description...
Страница 236: ...Command Reference PoE Management Commands Related Commands Command Description N A N A Platform Description N A...
Страница 248: ...Command Reference PKG_MGMT Commands...
Страница 332: ...Command Reference Protocol VLAN Commands Commands N A N A Platform Description...
Страница 350: ...Command Reference Voice VLAN Commands Description...
Страница 430: ...Command Reference LLDP Commands Description...
Страница 467: ...Command Reference ERPS Commands Commands N A N A Platform Description N A...
Страница 541: ...Command Reference IPv6 Commands Platform Description N A...
Страница 858: ...Command Reference NSM Commands Description N A N A Defaults N A Command Mode Privileged EXEC mode Usage guideline N A...
Страница 914: ...Multicast Commands 1 IPv4 Multicast Routing Commands 2 IGMP Snooping Commands...
Страница 1092: ...Configuration Guide SCC Commands Platforms N A...
Страница 1196: ...Configuration Guide IPv6 Source Guard Commands Platform Description N A...
Страница 1290: ...ACL QoS Configuration Commands 1 ACL Commands 2 QoS Commands...