HP MSR2000/3000/4000 Router Series Network Management and Monitoring Command Reference

256
Parameters
number: Specifies an action ID, in the range of 0 to 231.
priority level: Specifies the log severity level in the range of 0 to 7. A lower value represents a higher
severity level.
facility local-number: Specifies a logging facility by its device number in the range of local0 to local7.
msg msg-body: Configures the log message body.
Usage guidelines
You can configure a series of actions to take 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.
Actions with the same ID overwrite each other, and whichever is configured later takes effect.
You can specify EAA environment variable names instead of specifying specific values for an argument.
For more information about using EAA environment variables, see "rtm environment."
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.
You must re-execute this command after changing the settings in a policy that has been enabled so the
changes can take effect.
Examples
# Enable the CLI-defined policy test.
<Sysname> sysname-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] commit