R0106-HP MSR Router Series Network Management and Monitoring Command Reference(V7)

244
NOTE:
EAA does not count log messages generated by the RTM module when it counts log matches.
You can configure only one event for one monitor policy. If the monitor policy already contains an event,
the new event replaces the old event.
Examples
# Configure a CLI-defined policy to monitor Syslog messages for level 3 to level 0 messages that contain
the down string. Enable the system to execute the policy when five log matches are found within 6
seconds.
<Sysname> system-view
[Sysname] rtm cli-policy syslog
[Sysname-rtm-syslog] event syslog priority 3 msg down occurs 5 period 6
rtm cli-policy
Use rtm cli-policy to create a CLI-defined EAA monitor policy and enter its view.
Use undo rtm cli-policy to delete a CLI-defined monitor policy.
Syntax
rtm cli-policy policy-name
undo rtm cli-policy policy-name
Default
No CLI-defined monitor policy exists.
Views
System view
Predefined user roles
network-admin
Parameters
policy-name: Specifies the name of a CLI-defined monitor policy, a case-sensitive string of 1 to 63
characters.
Usage guidelines
You must create a CLI-defined monitor policy before you can use the CLI to configure settings in the
policy.
You can assign the same policy name to a CLI-defined policy and a Tcl-defined policy, but you cannot
assign the same name to policies that are the same type.
For a CLI-defined monitor policy to take effect, you must execute the commit command after you complete
configuring the policy.
Examples
# Create a CLI-defined policy and enter its view.
<Sysname> system-view
[Sysname] rtm cli-policy test