Command Scheduler Commands

Use these M4500 CLI commands to schedule Kron occurrences and policy lists that run CLI commands automatically at set times.

kron occurrence

Kron Occurrence is defined as a scheduled event. Policy lists are configured to run after a period of time since the scheduling was set, or at a specified calendar date and time.

Default None
Format kron occurrence <name> {at <hh:mm> {<1-31> <month> <2000-2037>| <DAY> {oneshot | recurring}| oneshot | recurring} | in <ddd:hh:mm> {oneshot | recurring}}
Mode Global Config
Parameter Definition
<name> Specifies an occurrence name.
at Date of the kron occurrence.
<hh:mm> Time of the day for the occurrence.
<1-31> Day of the month.
<month> Month of the year, for example, jan, feb, and so on.
<2000-2037> Specifies the year.
<DAY> Day of the week, for example, mon, tue, and so on.
oneshot Schedule the kron occurrence exactly once.
recurring Schedule the kron occurrence repeatedly.
in Delta time to kron occurrence.
<ddd:hh:mm> The day, hour, and minutes in the format ddd:hh:mm. The valid range is as follows: ddd: 0-999; hh: 0-23; mm: 0-59.

no kron occurrence <name>

This command deletes a scheduler event by the specific name.

Format no kron occurrence <name>
Mode Global Config

policy-list <name>

This command associates a policy list with an occurrence. When the occurrence is fired, the policy-list will be executed. Maximum 16 policy-lists could be added into an occurrence.

Default None
Format policy-list <name>
Mode Kron Occurrence Config

no policy-list <name>

This command dissociates the specified policy-list by name with the occurrence.

Format no policy-list <name>
Mode Kron Occurrence Config

kron policy-list

Policy lists consist of one or more lines of fully-qualified EXEC CLI commands. All commands in a policy list are executed when the policy list is run by Command Scheduler using the kron occurrence command.

The policy lists is run in the order in which it was configured. If an existing policy list name is used, new entries are added to the end of the policy list.

Default None
Format kron policy-list <name>
Mode Global Config
Parameter Definition
<name> Specifies a policy-list name.

no kron policy-list <name>

This command deletes a policy list by the specific name.

Format no kron policy-list <name>
Mode Global Config

cli <line><line><line> …

Specify the EXEC CLI commands to a policy list. Maximum 16 EXEC CLI commands could be added into a policy-list.

Default None
Format cli <LINE> <LINE> <LINE> ...
Mode Kron Policy-list Config
Parameter Definition
<LINE> Exec level cli to be executed.

no cli <line> <line> <line> …

This command deletes a list of CLI command lines.

Format no cli <LINE> <LINE> <LINE> ...
Mode Kron Policy-list Config