EasyManuals Logo
Home>HP>Network Router>MSR4080

HP MSR4080 User Manual

HP MSR4080
471 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 #305 background imageLoading...
Page #305 background image
294
event cli
Use event cli to configure a CLI event for a CLI-defined monitor policy.
Use undo event to delete the event in a CLI-defined monitor policy.
Syntax
event cli { async [ skip ] | sync } mode { execute | help | tab } pattern regular-exp
undo event
Default
No CLI events are configured.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
async [ skip ]: Enables or disables the system to execute the command that triggers the policy. If you
specify the skip keyword, the system executes the actions in the policy without executing the command
that triggers the policy. If you do not specify the skip keyword, the system executes both the actions in the
policy and the command entered at the CLI.
sync: Enables the system to execute the command that triggers the event only if the policy has been
executed successfully.
execute: Triggers the policy when a matching command is entered.
help: Triggers the policy when a question mark (?) is entered at a matching command line.
tab: Triggers the policy when the Tab key is pressed to complete a parameter in a matching command
line.
pattern regular-exp: Specifies a regular expression for matching commands that trigger the policy. For
more information about using regular expressions, see Fundamentals Configuration Guide.
Usage guidelines
Use CLI event monitor policies to monitor operations performed at the CLI.
You can configure only one event for a 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 execution of commands that contain the dis inter brief string.
Enable the system to execute the actions in the policy without executing the command that triggers the
policy.
<Sysname>system-view
[Sysname] rtm cli-policy test
[Sysname-rmt-test] event cli async skip mode execute pattern dis inter brief
# Configure a CLI-defined policy to monitor the use of the Tab key at command lines that contain the dis
inter brief string. Enable the system to execute the actions in the policy and display the complete
parameter when Tab is pressed at a policy-matching command line.
<Sysname> system-view

Table of Contents

Other manuals for HP MSR4080

Questions and Answers:

Question and Answer IconNeed help?

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

HP MSR4080 Specifications

General IconGeneral
BrandHP
ModelMSR4080
CategoryNetwork Router
LanguageEnglish

Related product manuals