HP MSR2000/3000/4000 Router Series Fundamentals Configuration Guide
151
Using Tcl
Comware V7 provides a built-in tool command language (Tcl) interpreter. You can execute Tcl commands
on the device.
From user view, you can use the tclsh command to enter Tcl configuration view. In Tcl configuration view,
you can execute the following commands:
• All Tcl 8.5 commands.
• Comware commands.
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.
•
Use the quit command to return to the upper-level view.
Tcl usage guidelines and restrictions
When you use Tcl, follow these guidelines:
• You can apply Tcl environment variables 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 Tcl command.
• If a Tcl command has multiple lines, only the first line is saved to the command history buffers after
the command is successfully executed.
For more information about Comware command usage, see "Using the CLI."
Entering Tcl configuration view from user view
Task Command
Enter Tcl configuration view from user view. tclsh
Returning from Tcl configuration view to user view










