Setting the system clock, Displaying the system clock, Setting the user connection timeout time – H3C Technologies H3C SecBlade IPS Cards User Manual
Page 21
5-2
Setting the System Clock
Setting the system clock
To ensure that a device can cooperate with other devices, you need to ensure that the system clock of
the device is precise
Follow these steps to set the system clock:
To do…
Use the command…
Remarks
Specify the date and time
clock
datetime HH:MM:SS YYYY/MM/DD
Optional
Available in user view
Specify the time zone
clock
timezone { gmt | gmt+1 | gmt+10 |
gmt+11
| gmt+12 | gmt+2 | gmt+3 | gmt+4 |
gmt+5
| gmt+6 | gmt+7 | gmt+8 | gmt+9 |
gmt-1
| gmt-10 | gmt-11 | gmt-12 | gmt-2 |
gmt-3
| gmt-4 | gmt-5 | gmt-6 | gmt-7 |
gmt-8
| gmt-9 }
Optional
Available in user view
GMT+8 by default
Displaying the system clock
Timestamps depend on the system clock. The time of the system clock is the same as that displayed by
the display clock command, and is determined by commands clock datetime and clock timezone. If
you configure neither of the commands, the display clock command displays the original system clock.
shows the results of different system clock configuration ways. The meanings of the
parameters in the Configuration column are as follows:
z
1: Use the clock datetime command to set the system date and time.
z
2: Use the clock timezone command to set the time zone, with the offset being n (-9 to +9).
z
[1]: Use the clock datetime command to set the system date and time. This step is optional.
z
In this example, the original system clock reads 2005/1/1 1:00:00.
Table 5-1
System clock configuration methods and the configuration results
Configuration
System time displayed by the
display clock command
Example
1
HH:MM:SS
Configure: clock datetime 1:0:0 2007/1/1
Display: Mon Jan 1 01:00:00 2007 GMT+8
2
The original system time + n
Configure: clock timezone gmt+1
Display: Sat Jan 1 02:00:00 2005 GMT+1
1, 2
HH:MM:SS + n
Configure: clock datetime 2:0:0 2007/2/2 and clock
timezone gmt+1
Display: Fri Feb 2 03:00:00 2007 GMT+1
[1], 2, 1
HH:MM:SS
Configure: clock timezone gmt+1 and clock datetime
3:0:0 2007/3/3
Display: Sat Mar 3 03:00:00 2007 GMT+1
Setting the User Connection Timeout Time
You can use the idle-timeout command to set the user connection timeout time. If a user’s connection
stays idle for such a period of time, the device will tear down the connection automatically.
Follow these steps to set the user connection timeout time: