Suspending Monitor Policies - H3C SR6600-X Configuration Manual

Hide thumbs Also See for SR6600-X:
Table of Contents

Advertisement

Step
4.
Create a Tcl-defined
policy and bind it to
the Tcl script file.
Write a Tcl script in two lines for a monitor policy, as shown in
Table 11 Tcl script requirements
Line
Line 1
Line 2

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
1.
Enter system view.
2.
Suspend monitor policies.
Command
rtm tcl-policy policy-name
tcl-filename
Content
Event, user roles, and policy runtime
Actions
Command
system-view
rtm scheduler suspend
Remarks
By default, the system does not have Tcl
policies.
This step enables the Tcl-defined policy.
To revise the Tcl script of a policy, you
must suspend all monitor policies first, and
then resume the policies after you finish
revising the script. The system cannot
execute a Tcl-defined policy if you edit its
Tcl script without suspending policies.
Table 1
Requirements
This line must use the following format:
::comware::rtm::event_register eventname
arg1 arg2 arg3 ...user-role rolename1 |
[ user-role rolename2 | [ ] ][ running-time
running-time ]
The arg1 arg2 arg3 ... arguments represent
event matching rules. If an argument value
contains spaces, use double quotation marks
("") to enclose the value. For example, "a b c."
You may reference a variable name in the
$variable_name format instead of specifying a
value for an argument when you define an
action.
The following actions are available:
Standard Tcl commands.
EAA-specific Tcl commands.
Commands supported by the device.
189
1.
Remarks
N/A
To resume monitor polices, use
the undo rtm scheduler suspend
command.

Advertisement

Table of Contents
loading

This manual is also suitable for:

R6600

Table of Contents