The send-time command configures a key as a send key at a specified interval.
The undo send-time command deletes the send time configuration.
By default, no send-time is configured.
send-time start-time start-date { duration { duration-value | infinite } | to end-time end-date }
send-time daily start-time to end-time
send-time day { start-day-name to end-day-name | day-name &<1-7> }
send-time date { start-date-value to end-date-value | date-value &<1-31> }
send-time month { start-month-name to end-month-name | month-name &<1-12> }
undo send-time
Parameter |
Description |
Value |
---|---|---|
start-time |
Specifies the start send time. |
The value is in HH:MM format. The value ranges from 00:00 to 23:59. |
start-date |
Specify the start date. |
The value is in YYYY-MM-DD format. The value ranges from 1970-01-01 to 2050-12-31. |
duration duration-value |
Specifies the duration of the send time, in minutes. |
The value ranges from 1 to 26280000. |
infinite |
Indicates that the key will act as a send key forever from the configured start time. |
- |
to |
Indicates a separator. |
- |
end-time |
Specifies the end send time. |
The value is in HH:MM format. The value ranges from 00:00 to 23:59. The end time must be later than the start time. |
end-date |
Specifies the end date. |
The value is in YYYY-MM-DD format. The value ranges from 1970-01-01 to 2050-12-31. |
daily |
Specifies the daily send time for the given key. |
- |
day |
Specifies the days of the week. |
- |
start-day-name |
Specifies the day of the week to be configured as the start send day for the given key. |
It can be Mon, Tue, Wed, Thur, Fri, Sat, and Sun. |
end-day-name |
Specifies the end send day for the given key. |
It can be Tue, Wed, Thur, Fri, Sat, and Sun. The end day must be later than the start day. |
day-name &<1-7> |
Specifies the day of the week to be configured as the send day for the given key. |
It can be Mon, Tue, Wed, Thur, Fri, Sat, and Sun. One or more days can be configured. |
date |
Specifies the date of the month. |
- |
start-date-value |
Specifies the start date of the month to be configured as the send date for the given key. |
The value ranges from 1 to 31. |
end-date-value |
Specifies the end date of the month to be configured as the send date for the given key. |
The value ranges from 2 to 31. The end date must be greater than the start date. |
date-value &<1-31> |
Specifies the date of the month to be configured as the send date for the given key. |
The value ranges from 1 to 31. One or more dates can be configured. |
month |
Specifies the months of the year. |
- |
start-month-name |
Specifies the month of the year to be configured as the start send month for the given key. |
It can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec. |
end-month-name |
Specifies the end send month. The end month must be greater than the start month. |
It can be Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec. The end month must be later than the start month. |
month-name &<1-12> |
Specifies the month of the year to be configured as the send month for the given key. |
It can be Jan, Feb, Mar, Apr, May, Jun, Jul, Aug, Sep, Oct, Nov, and Dec. One or more months can be configured. |
Usage Scenario
Each keychain consists of multiple keys that are valid within different time periods and each key is configured with an authentication algorithm and a key string. When a key becomes valid, the corresponding authentication algorithm and the key string are used. Configure different send and receive keys to be valid within different time periods.
When the system is within the send time range of the key, the device will use the algorithm and key of the configured key to encrypt the packet.
Absolute time range: In this mode, keychains are valid within a certain period.
Periodic time range: In this mode, keychains are valid periodically.
The mode in which send keys become valid must be the same as that configured for the keychain.
Precautions
Multiple receive keys cannot be active at the same time. Only one key takes effect during a period in a keychain.
# Configure the time for packet sending with the timing mode as absolute.
<HUAWEI> system-view [HUAWEI] keychain one mode absolute [HUAWEI-keychain-one] key-id 5 [HUAWEI-keychain-one-keyid-5] send-time 14:52 2014-11-1 to 14:52 2040-10-1
# Configure the time for packet sending with the timing mode as daily periodic.
<HUAWEI> system-view [HUAWEI] keychain two mode periodic daily [HUAWEI-keychain-two] key-id 5 [HUAWEI-keychain-two-keyid-5] send-time daily 14:52 to 18:10
# Configure the time for packet sending with the timing mode as weekly periodic.
<HUAWEI> system-view [HUAWEI] keychain three mode periodic weekly [HUAWEI-keychain-three] key-id 5 [HUAWEI-keychain-three-keyid-5] send-time day mon
# Configure the time for packet sending with the timing mode as monthly periodic.
<HUAWEI> system-view [HUAWEI] keychain four mode periodic monthly [HUAWEI-keychain-four] key-id 5 [HUAWEI-keychain-four-keyid-5] send-time date 12
# Configure the time for packet sending with the timing mode as yearly periodic.
<HUAWEI> system-view [HUAWEI] keychain five mode periodic yearly [HUAWEI-keychain-five] key-id 5 [HUAWEI-keychain-five-keyid-5] send-time month apr
# Configure the time for packet sending with the timing mode as yearly periodic, and a few months are available.
<HUAWEI> system-view [HUAWEI] keychain six mode periodic yearly [HUAWEI-keychain-six] key-id 5 [HUAWEI-keychain-six-keyid-5] send-time month oct to dec