- Table of Contents
-
- 01-Fundamentals Configuration Guide
- 00-Preface
- 01-CLI configuration
- 02-RBAC configuration
- 03-Login management configuration
- 04-FTP and TFTP configuration
- 05-File system management configuration
- 06-Configuration file management configuration
- 07-Software upgrade configuration
- 08-ISSU configuration
- 09-Emergency shell configuration
- 10-Automatic configuration
- 11-Device management configuration
- 12-Tcl configuration
- 13-License management
- 14-Management with BootWare
- 15-Python configuration
- Related Documents
-
Title | Size | Download |
---|---|---|
12-Tcl configuration | 81.05 KB |
Tcl usage guidelines and restrictions
Entering Tcl configuration view from user view··
Returning from Tcl configuration view to user view
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 perform the following tasks:
¡ Use the system-view command to enter system view to configure features.
¡ Use the quit command to return to the upper-level view.
¡ Use the return command to return to the Tcl configuration view.
Tcl usage guidelines and restrictions
When you use Tcl, follow these guidelines and restrictions:
· 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.
· 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. |
|
NOTE: · The tclquit command has the same effect as the quit command in Tcl configuration view. · If you have used a Comware command to enter a subview under Tcl configuration view, you can only use the quit command, instead of the tclquit command, to return to the upper level view. |