EasyManuals Logo

HPE FlexNetwork 5130 HI SERIES User Manual

HPE FlexNetwork 5130 HI SERIES
378 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 #248 background imageLoading...
Page #248 background image
239
EAA commands
action cli
Use action cli to add a CLI action to a monitor policy.
Use undo action to remove an action.
Syntax
action number cli command-line
undo action number
Default
A monitor policy does not contain any actions.
Views
CLI-defined policy view
Predefined user roles
network-admin
Parameters
number: Specifies an action ID in the range of 0 to 231.
cli command-line: Specifies the command line to be executed when the event occurs. You can enter
abbreviated forms of command keywords, but you must make sure the forms can uniquely identify
the command keywords. For example, you can enter dis cu for the display current-configuration
command.
Usage guidelines
You can configure a series of actions to be executed in response to the event specified in a monitor
policy. EAA executes the actions in ascending order of action IDs. When you add actions to a policy,
you must make sure the execution order is correct. If two actions have the same ID, the most recent
one takes effect.
To execute a command in a view other than user view, you must define actions required for
accessing the target view before defining the command execution action. In addition, you must
number the actions in the order they should be executed, starting with entering system view.
For example, to shut down an interface, you must create the following actions in order:
1. Action to enter system view.
2. Action to enter interface view.
3. Action to shut down the interface.
When you define an action, you can specify a value or specify a variable name for an argument. For
more information about using EAA environment variables, see "rtm environment."
Examples
# Configure a CLI action for the CLI-defined policy test to shut down GigabitEthernet 1/0/1.
<Sysname> system-view
[Sysname] rtm cli-policy test
[Sysname-rtm-test] action 1 cli system-view
[Sysname-rtm-test] action 2 cli interface gigabitethernet 1/0/1
[Sysname-rtm-test] action 3 cli shutdown

Table of Contents

Other manuals for HPE FlexNetwork 5130 HI SERIES

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HPE FlexNetwork 5130 HI SERIES and is the answer not in the manual?

HPE FlexNetwork 5130 HI SERIES Specifications

General IconGeneral
BrandHPE
ModelFlexNetwork 5130 HI SERIES
CategorySwitch
LanguageEnglish

Related product manuals