317
Usage guidelines
EAA sends log messages to the information center. You can configure the information center to
output these messages to certain destinations. For more information about the information center,
see "Configuring the information center."
You can configure a series of actions to be executed in response to the event specified in a monitor
policy.
EAA executes the actions in ascending order of action IDs. When you add actions to a policy, you
must make sure the execution order is correct.
If two actions have the same ID, the most recent one takes effect.
When you define an action, you can specify a value or specify a variable name for an argument. For
more information about using EAA environment variables, see "
."
Examples
# Configure an action for the CLI-defined policy
test
to send a log message "hello" with a severity of
7 from the facility device
local3
.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] action 3 syslog priority 7 facility local3 msg hello
commit
Use
commit
to enable a CLI-defined monitor policy.
Syntax
commit
Default
No CLI-defined policies are enabled.
Views
CLI-defined policy view
Predefined user roles
network-admin
Usage guidelines
You must execute this command for a CLI-defined policy to take effect.
After changing the settings in a policy that has been enabled, you must re-execute this command for
the changes to take effect.
Examples
# Enable the CLI-defined policy
test
.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] commit