Using Tcl to configure the device
When you use Tcl to configure the device, follow these guidelines and restrictions:
You can apply Tcl environment variables to Comware commands.
No online help information is provided for Tcl commands.
You cannot press Tab to complete an abbreviated Tcl command.
Make sure the Tcl commands can be executed correctly. If a problem occurs when the Tcl commands are being executed, you can disable the process if you log in through Telnet or SSH. If you log in from the console or AUX port, you must restart the device. As a best practice, log in through Telnet or SSH.
To use Tcl to configure the device:
Task | Command |
---|---|
Enter Tcl configuration view from user view. | tclsh |
Execute a Tcl command. | Tcl command |
Return from Tcl configuration view to user view. | tclquit |
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. | ||