Configuring Tcl; Benefits And Restrictions; Entering Tcl Configuration View From User View; Returning From Tcl Configuration View To User View - HP 10500 Series Configuration Manual

Hide thumbs Also See for 10500 Series:
Table of Contents

Advertisement

Configuring Tcl

Comware V7 provides a built-in tool command language (Tcl) interpreter so you can execute Tcl
commands on the device.
From user view, you can use the tclsh command to enter Tcl configuration view, where you can execute
the following commands:
All Tcl 8.5 commands.
Comware commands. In this case, the Tcl configuration view is equivalent to the user view. You can
use Comware commands in Tcl configuration view in the same way they are used in user view. For
example, you can do the following:
Use the system-view command to enter system view to configure features.
U se the quit command to return to the upper-level view.
Use the return command to return to the Tcl configuration view.
Executing the quit command in Tcl configuration view terminates your connection to the device,
just as executing the command in user view does.

Benefits and restrictions

Tcl provides the following benefits:
Tcl environment variables can be applied to Comware commands.
You can enter multiple Comware commands separated by semi-colons to execute the commands in
the order they are entered.
Tcl has the following limitations:
No online help information is provided for Tcl commands.
You cannot press Tab to complete an abbreviated command.
Successfully executed Tcl commands are not saved to command history buffers.

Entering Tcl configuration view from user view

Task
Enter Tcl configuration view from user view.

Returning from Tcl configuration view to user view

Task
Return from Tcl configuration view to user view.
Command
tclsh
Command
tclquit
183

Hide quick links:

Advertisement

Table of Contents
loading

Table of Contents