Configuring A Monitor Policy By Using Tcl - HP 5920 Configuration Manual

Table of Contents

Advertisement

Step
7.
Enable the policy.

Configuring a monitor policy by using Tcl

Step
1.
Edit a Tcl script file
(see
Table
2.
Download the file to
the device by using
FTP or TFTP.
3.
Enter system view.
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 21 Tcl script requirements
Line
Line 1
Command
commit
Command
N/A
21).
N/A
system-view
rtm tcl-policy policy-name
tcl-filename
Content
Event, user roles, and policy runtime
Remarks
The supported Tcl version is 8.5.8.
For more information about using FTP and
TFTP, see Fundamentals Configuration
Guide.
N/A
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
Requirements
This line must take the following format:
::comware::rtm::event_register eventname
arg1 arg2 arg3 ...user-role rolename1 |
[ user-role rolename2 | [ ] ][ running-time
running-time ]
NOTE:
The Tcl keyword for the SNMP_Notification
event is snmp_notification instead of
snmp-notification.
215
Remarks
By default, CLI-defined policies
are not enabled.
A CLI-defined policy can take
effect only after you perform this
step.
21.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900

Table of Contents