R0106-HP MSR Router Series Fundamentals Configuration Guide(V7)

158
Using Tcl
Comware V7 provides a built-in tool command language (Tcl) interpreter. From user view, you can use
the tclsh command to enter Tcl configuration view to 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.
Successfully executed Tcl commands are not saved to command history buffers.
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
Task Command
Remarks
Return from Tcl configuration view
to user view.
tclquit
You can achieve the same result by executing
the quit command.