HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 134

Configuring Tcl, Restrictions and benefits, Entering Tcl configuration view from user view

Page 134 highlights

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. 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 Enter Tcl configuration view from user view. Command tclsh Returning from Tcl configuration view to user view Task Return from Tcl configuration view to user view. Command tclquit 127

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155

127
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.
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