Tcl Commands; Cli; Tclquit - H3C S5830V2 Command Reference Manual

Switch series fundamentals
Hide thumbs Also See for S5830V2:
Table of Contents

Advertisement

Tcl commands

cli

Use cli to execute Comware commands in Tcl configuration view.
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, a Tcl command takes preference over a Comware command when a
conflict occurs. This command enables a Comware command to be executed when a conflict occurs.
This command cannot be used to execute Tcl commands.
Examples
# Execute a Comware command that conflicts with a Tcl command. The output shows that the
Comware command cannot be executed.
<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
# Configure the cli command to execute the Comware command again. The output shows that the
Comware command can be executed successfully.
[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
276

Advertisement

Table of Contents
loading

This manual is also suitable for:

S5820v2

Table of Contents