action export-to-telemetry
To export Embedded Event Manager (EEM) variables to telemetry, use the action export-to-telemetry command in applet configuration mode. To disable the action of exporting EEM variables to telemetry, use the no form of this command.
action label export-to-telemetry [EEM-variable]
no action label
Syntax Description
label |
Unique identifier that can be any string value. Actions are sorted and run in ascending alphanumeric key sequence using the label as the sort key. If the string contains embedded blanks, enclose it in double quotation marks. |
EEM-variable |
(Optional) User-defined EEM variable. |
Command Default
Command Modes
Applet configuration (config-applet)
Command History
Release | Modification |
---|---|
Cisco IOS XE Amsterdam 17.1.1 |
This command was introduced. |
Usage Guidelines
The EEM Event Publish capability is part of the Cisco-IOS-XE-ios-events-oper.YANG module for on-change telemetry notifications.
This command exports the event-specific data of the EEM policy using YANG notification to an external telemetry collector. The variables are exported in the key:value pair format for the external telemetry collector to use. For example, if the EEM applet script detects a certain percentage of packet loss on an interface, a custom message can be added to notify about the loss.
Examples
This example shows how to export EEM variables to telemetry.
Device> enable
Device# configure terminal
Device(config)# event manager applet one
Device(config-applet)# action 1.0 export-to-telemetry
Device(config-applet)#