Suspending monitor policies, Displaying and maintaining eaa settings, Configuration examples – H3C Technologies H3C S6300 Series Switches User Manual

Page 214: Cli-defined policy configuration example, Network requirements, Configuration procedure

Advertising
background image

201

Suspending monitor policies

This task suspends all CLI-defined and Tcl-defined monitor policies except for the policies that are
running.
To suspend monitor policies:

Step Command

Remarks

1.

Enter system view.

system-view

N/A

2.

Suspend monitor policies.

rtm scheduler suspend

To resume monitor polices, use
the undo rtm scheduler suspend

command.

Displaying and maintaining EAA settings

Execute display commands in any view.

Task Command

Display user-defined EAA environment variables. display rtm environment [ var-name ]

Display EAA monitor policies.

display rtm policy { active | registered } [ policy-name ]

Configuration examples

CLI-defined policy configuration example

Network requirements

Configure a policy from the CLI to monitor the event that occurs when a question mark (?) is entered at
the command line that contains letters and digits.
When the event occurs, the system executes the command and sends the log message "hello world" to

the information center.

Configuration procedure

# Enter system view.

<Sysname> system-view

# Create the CLI-defined policy test and enter its view.

[Sysname] rtm cli-policy test

# Add a CLI event that occurs when a question mark (?) is entered at any command line that contains
letters and digits.

[Sysname-rtm-test] event cli async mode help pattern [a-zA-Z0-9]

# Add an action that sends the message "hello world" with a priority of 4 from the logging facility local3
when the event occurs.

Advertising