show running-config event-handler

Displays details of one or all event-handler profiles configured on the switch. You can filter the results by description, Python-script action, or trigger ID. You can also display the Python-script action associated with a profile.

Syntax

show running-config event-handler [ event-handler-name ]
show running-config event-handler event-handler-name description
show running-config event-handler event-handler-name action
show running-config event-handler event-handler-name trigger [ trigger-id [ raslog raslog-id [ pattern posix-ext-regex ] ] ]

Parameters

event-handler-name
Specifies the name of the event-handler profile. Valid values can have from 1 through 32 characters. The first character must be alphabetic.
action
Displays by Python script file-names.
description
Describes the event-handler profile. The string can be 1 through 128 characters in length.
trigger trigger-id
Specifies an event-handler trigger. When the trigger-condition occurs, a Python script is run.
raslog raslog-id
Specifies a RASlog message ID as the trigger.
pattern posix-ext-regex
Specifies a POSIX extended regular expression to search for a match within the specified RASlog message ID. For examples, refer to the "trigger" topic.

Modes

Privileged EXEC mode

Output

The show running-config event-handler command displays the following information:

Output field Description
event-handler Displays the event-handler name.
action python-script Displays the name of the Python script called if the event handler is triggered.
trigger Displays a trigger name and definitions

Examples

The following example displays the details of all triggers defined for a specified event-handler.

device# show running-config event-handler evh1 trigger 
event-handler evh1
 trigger 1 raslog NSM-1001

The following example displays the details of the action defined for a specified event-handler.

device# show running-config event-handler evh1 action 
event-handler evh1
 action python-script vlan.py

The following example displays the details of all defined event-handlers.

device# show running-config event-handler 

event-handler evh1
 trigger 10 raslog NSM-1001
 action python-script vlan.py

event-handler evh2
 trigger 100 raslog NSM-1003
 action python-script vlan.py
!