Event Handling Commands

event-handling

Syntax

event-handling

Context

config>log

Description

This command enables the context to configure event handling in the Event Handler System (EHS).

handler

Syntax

[no] handler event-handler-name

Context

config>log>event-handling

Description

This command configures an event handler.

The no form of the command removes the specified event handler.

Parameters

event-handler-name

the name of the event handler, up to 32 characters in length

action-list

Syntax

action-list

Context

config>log>event-handling>handler

Description

This command enables the context to configure the event handler action list.

entry

Syntax

[no] entry entry-id

Context

config>log>event-handling>handler>action-list

Description

This command configures an event handler action-list entry. An action list consists of one or more entries. Each entry in the list references a configured script policy, which in turn references a configured script.

Multiple entries can be configured in the action list if multiple actions are required when an event triggers the event handler; for example, an event trigger results in the execution of different scripts. When the handler is triggered, it runs through the entries in sequence.

The no form of the command removes the specified action-list entry.

Parameters

entry-id

the identifier of the event handler action-list entry

Values

1 to 1500

min-delay

Syntax

min-delay [delay]

no min-delay

Context

config>log>event-handling>handler>action-list>entry

Description

This command specifies the minimum delay between subsequent executions of the action specified in this entry. This is useful, for example, to ensure that a script does not get triggered to execute too often.

Default

no min-delay

Parameters

delay

the delay time, in seconds

Values

1 to 604800

script-policy

Syntax

script-policy policy-name [owner policy-owner]

no script-policy

Context

config>log>event-handling>handler>action-list>entry

Description

This command specifies the script policy to use for this event handler action-list entry. The associated script is launched when the handler is triggered.

The script policy must already have been configured under the config>system>script-control context.

Default

no script-policy

Parameters

policy-name

the script policy name

policy-owner

the script policy owner associated with the script policy name