EasyManuals Logo
Home>HP>Switch>5920

HP 5920 Configuration Guide

HP 5920
322 pages
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Page #225 background imageLoading...
Page #225 background image
215
Step Command Remarks
7. Enable the policy.
commit
By default, CLI-defined policies
are not enabled.
A CLI-defined policy can take
effect only after you perform this
step.
Configuring a monitor policy by using Tcl
Step Command Remarks
1. Edit a Tcl script file
(see Table 21).
N/A
The supported Tcl version is 8.5.8.
2. Download the file to
the device by using
FTP or TFTP.
N/A
For more information about using FTP and
TFTP, see Fundamentals Configuration
Guide.
3. Enter system view.
system-view N/A
4. Create a Tcl-defined
policy and bind it to
the Tcl script file.
rtm tcl-policy policy-name
tcl-filename
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.
Write a Tcl script in two lines for a monitor policy, as shown in Table 21.
Table 21 Tcl script requirements
Line Content Re
q
uirements
Line 1 Event, user roles, and policy runtime
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.

Table of Contents

Other manuals for HP 5920

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HP 5920 and is the answer not in the manual?

HP 5920 Specifications

General IconGeneral
BrandHP
Model5920
CategorySwitch
LanguageEnglish

Related product manuals