iterations

For an implementation of an event-handler profile, specifies the number of times an event-handler action is run, when triggered.

Syntax

iterations num-iterations
no iterations

Command Default

When the trigger condition occurs, the event-handler actions runs once.

Parameters

num-iterations
Specifies the number of times an event-handler action is run, when triggered. Valid values are any positive integer.

Modes

Event-handler activation mode

Usage Guidelines

The no form of this command resets the iterations setting to the default 1 iteration.

Examples

The following example specifies 5 iterations.

device# configure terminal
device(config)# event-handler activate eventHandler1
device(config-activate-eventHandler1)# iterations 5

The following example resets iterations to the default value of 1 iteration.

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