01-Fundamentals Configuration Guide

HomeSupportSwitchesH3C S12500 Switch SeriesConfigure & DeployConfiguration GuidesH3C S12500 Configuration Guide-Release7128-6W71001-Fundamentals Configuration Guide
13-TCL configuration
Title Size Download
13-TCL configuration 47.34 KB

Configuring 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, 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

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
All Support
  • Become A Partner
  • Partner Policy & Program
  • Global Learning
  • Partner Sales Resources
  • Partner Business Management
  • Service Business
All Partners
  • Profile
  • News & Events
  • Online Exhibition Center
  • Contact Us
All About Us
新华三官网