interval

For an implementation of an event-handler profile, specifies the number of seconds between iterations of an event-handler action, if triggered.

Syntax

interval seconds
no interval

Command Default

Iterations occur with no interval between them.

Parameters

seconds
Specifies the number of seconds between iterations of an event-handler action, if triggered. Valid values are 0 or a positive integer.

Modes

Event-handler activation mode

Usage Guidelines

The interval command is effective only if the iterations value is non-zero.

The no form of this command resets the interval setting to the default 0 seconds.

Examples

The following example sets the number of iterations to 3 and specifies an interval of 10 seconds between each iteration.

device# configure terminal
device(config)# event-handler activate eventHandler1
device(config-activate-eventHandler1)# iterations 3
device(config-activate-eventHandler1)# interval 10

The following example resets interval to the default value of 0 seconds.

device# configure terminal
device(config)# event-handler activate eventHandler1
device(config-activate-eventHandler1)# no interval