01-Fundamentals Configuration Guide

HomeSupportSwitchesH3C S12500 Switch SeriesConfigure & DeployConfiguration GuidesH3C S12500 Configuration Guides-Release7374-6W73101-Fundamentals Configuration Guide
12-Tcl configuration
Title Size Download
12-Tcl configuration 81.05 KB

Using Tcl

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.

 

 

  • Cloud & AI
  • InterConnect
  • Intelligent Computing
  • Intelligent Storage
  • Security
  • SMB Products
  • Intelligent Terminal Products
  • Product Support Services
  • Technical Service Solutions
All Services
  • Resource Center
  • Policy
  • Online Help
  • Technical Blogs
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
新华三官网