- 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-MDC configuration
- 13-TCL configuration
- 14-License management
- Related Documents
-
Title | Size | Download |
---|---|---|
13-TCL configuration | 47.34 KB |
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, 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 that you do in user view. For example, you can use the system-view command to enter system view and then use commands to enter function views and configure functions, or use the quit command to return to the upper-level view or use the return command to directly 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.
Restrictions and benefits
Unlike Comware commands, which support features such as online help and history command buffering, Tcl commands have the following restrictions:
· No online help information is provided for Tcl commands.
· You cannot press Tab to complete a partly-input Tcl command.
· Successfully executed Tcl commands are not saved to command history buffers.
However, Tcl commands provide 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.
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
Task |
Command |
Return from Tcl configuration view to user view. |
tclquit |