EasyManuals Logo

HPE FlexFabric 5940 SERIES Fundamentals Command Reference

HPE FlexFabric 5940 SERIES
289 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 #274 background imageLoading...
Page #274 background image
266
Tcl commands
cli
Use cli to enable a Comware command to be executed in Tcl configuration view when it conflicts with
a Tcl command.
Syntax
cli command
Views
Tcl configuration view
Predefined user roles
network-admin
Parameters
command: Specifies the commands to be executed. They must be complete command lines.
Usage guidelines
In Tcl configuration view, if a Comware command conflicts with a Tcl command, the Tcl command will
be executed. To execute the Comware command when a conflict occurs, execute the cli command.
Examples
# Perform the following steps to execute a Comware command that conflicts with a Tcl command in
Tcl configuration view.
1. Execute a Comware command in Tcl configuration view. The output shows that the Comware
command cannot be executed because it conflicts with a Tcl command.
<Sysname> tclsh
<Sysname-tcl> system-view
[Sysname-tcl] route-policy 1 permit node 10
[Sysname-tcl-route-policy-1-10] apply cost 10
can't interpret "cost" as a lambda expression
2. Configure the cli command to execute the Comware command again.
[Sysname-tcl-route-policy-1-10] cli apply cost 10
# Execute multiple Comware commands in one operation to enter OSPF area view.
Method 1:
[Sysname-tcl] cli "ospf 100 ; area 0"
[Sysname-tcl-ospf-100-area-0.0.0.0]
Method 2:
[Sysname-tcl] cli ospf 100 ; cli area 0
[Sysname-tcl-ospf-100-area-0.0.0.0]
tclquit
Use tclquit to return from Tcl configuration view to user view.
Syntax
tclquit

Table of Contents

Other manuals for HPE FlexFabric 5940 SERIES

Questions and Answers:

Question and Answer IconNeed help?

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

HPE FlexFabric 5940 SERIES Specifications

General IconGeneral
BrandHPE
ModelFlexFabric 5940 SERIES
CategorySwitch
LanguageEnglish

Related product manuals