EAA environment variables

EAA environment variables decouple the configuration of action arguments from the monitor policy so you can modify a policy easily.

An EAA environment variable is defined as a <variable_name variable_value> pair and can be used in different policies. When you define an action, you can enter a variable name with a leading dollar sign ($variable_name). EAA will replace the variable name with the variable value when it performs the action.

To change the value for an action argument, modify the value specified in the variable pair instead of editing each affected monitor policy.

EAA environment variables include system-defined variables and user-defined variables.

System-defined variables

System-defined variables are provided by default, and they cannot be created, deleted, or modified by users. System-defined variable names start with an underscore (_) sign. The variable values are set automatically depending on the event setting in the policy that uses the variables.

System-defined variables include the following types:

Table 20 shows all system-defined variables.

Table 20: System-defined EAA environment variables by event type

Variable name

Description

Any event:

_event_id

Event ID.

_event_type

Event type.

_event_type_string

Event type description.

_event_time

Time when the event occurs.

_event_severity

Severity level of an event.

CLI:

_cmd

Commands that are matched.

Syslog:

_syslog_pattern

Log message content.

Hotplug:

_slot

ID of the member device that joins or leaves the IRF fabric.

_subslot

ID of the subslot where subcard hot-swapping occurs.

Only the HPE FlexFabric 5940 2-slot switch (JH397A) and HPE FlexFabric 5940 4-slot switch (JH398A) support subcards.

Interface:

_ifname

Interface name.

SNMP:

_oid

OID of the MIB variable where an SNMP operation is performed.

_oid_value

Value of the MIB variable.

SNMP-Notification:

_oid

OID that is included in the SNMP notification.

Process:

_process_name

Process name.

User-defined variables

You can use user-defined variables for all types of events.

User-defined variable names can contain digits, characters, and the underscore sign (_), except that the underscore sign cannot be the leading character.