EasyManuals Logo

HPE FlexFabric 5700 Series User Manual

HPE FlexFabric 5700 Series
314 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 #211 background imageLoading...
Page #211 background image
202
<Sysname>d%May 7 02:10:03:218 2013 Sysname RTM/4/RTM_ACTION: "hello world"
%May 7 02:10:04:176 2013 Sysname RTM/6/RTM_POLICY: CLI policy test is running
successfully.
CLI-defined policy with EAA environment variables
configuration example
Network requirements
Define an environment variable to match the IP address 1.1.1.1.
Configure a policy from the CLI to monitor the event that occurs when a command line that contains
loopback0 is executed. In the policy, use the environment variable for IP address assignment.
When the event occurs, the system performs the following tasks:
Creates the Loopback 0 interface.
Assigns 1.1.1.1/24 to the interface.
Sends the matching command line to the information center.
Configuration procedure
# Configure an EAA environment variable for IP address assignment. The variable name is
loopback0IP, and the variable value is 1.1.1.1.
<Sysname> system-view
[Sysname] rtm environment loopback0IP 1.1.1.1
# Create the CLI-defined policy test and enter its view.
[Sysname] rtm cli-policy test
# Add a CLI event that occurs when a command line that contains loopback0 is executed.
[Sysname-rtm-test] event cli async mode execute pattern loopback0
# Add an action that enters system view when the event occurs.
[Sysname-rtm-test] action 0 cli system-view
# Add an action that creates the interface Loopback 0 and enters loopback interface view.
[Sysname-rtm-test] action 1 cli interface loopback 0
# Add an action that assigns the IP address 1.1.1.1 to Loopback 0. The loopback0IP variable is
used in the action for IP address assignment.
[Sysname-rtm-test] action 2 cli ip address $loopback0IP 24
# Add an action that sends the matching loopback0 command with a priority of 0 from the logging
facility local7 when the event occurs.
[Sysname-rtm-test] action 3 syslog priority 0 facility local7 msg $_cmd
# Specify the network-admin user role for executing the policy.
[Sysname-rtm-test] user-role network-admin
# Enable the policy.
[Sysname-rtm-test] commit
[Sysname-rtm-test] return
<Sysname>
Verifying the configuration
# Enable the information center to output log messages to the current monitoring terminal.
<Sysname> terminal monitor

Table of Contents

Other manuals for HPE FlexFabric 5700 Series

Questions and Answers:

Question and Answer IconNeed help?

Do you have a question about the HPE FlexFabric 5700 Series and is the answer not in the manual?

HPE FlexFabric 5700 Series Specifications

General IconGeneral
Product LineHPE FlexFabric
Model5700 Series
Power SupplyRedundant power supply options
Layer SupportLayer 2/3
ManagementHPE Intelligent Management Center (IMC), CLI, SNMP
Routing ProtocolRIP, OSPF, BGP, IS-IS
FeaturesVirtualization
Compliant StandardsIEEE 802.1D, IEEE 802.1Q, IEEE 802.1w, IEEE 802.1s, IEEE 802.3ad, IEEE 802.3ae
Operating Temperature32°F to 113°F (0°C to 45°C)
Operating Humidity10% to 90% (noncondensing)
LatencyLess than 1 µs

Related product manuals