Lantronix SGX 5150 IoT Device Gateway SGX 5150 Command Reference - Page 13

Using Keyboard Shortcuts and CLI, Understanding the CLI Level Hierarchy, Table 3-1, Keyboard Shortcuts

Page 13 highlights

3: Command Line Interface Using Keyboard Shortcuts and CLI One useful shortcut built into the SGX 5150 IoT device gateway is that the complete text of a command does not have to be entered to issue a command. Typing just enough characters to uniquely identify a command, then hitting enter, can be used as a short cut for a command. For example, at the enable level, "sh" can be used for the "show" command. Tab Completion is also available using the Tab and Enter keys on the keyboard. Typing the first few characters of a command, then hitting the Tab key displays the first command that begins with those characters. Hitting the Tab key again displays the next command that begins with the original characters typed. You can press Enter to execute the command or you can backspace to edit any parameters. The following key combinations are allowed when configuring the gateway using the CLI: Table 3-1 Keyboard Shortcuts Key Combination Ctrl + a Ctrl + b Ctrl + d Ctrl + e Ctrl + f Ctrl + k Ctrl + l Ctrl + n Ctrl + p Ctrl + u Ctrl + w Ctrl + z Esc + b Esc + f Description Places cursor at the beginning of a line Backspaces one character Deletes one character Places cursor at the end of the line Moves cursor forward one character Deletes from the current position to the end of the line Redraws the command line Displays the next line in the history Displays the previous line in the history Deletes entire line and places cursor at start of prompt Deletes one word back Exits the current CLI level Moves cursor back one word Moves cursor forward one word Understanding the CLI Level Hierarchy The CLI hierarchy is a series of levels. Arranging commands in a hierarchy of levels provides a way to organize and group similar commands, provide different levels of security, and reduce the complexity and number commands and options presented to a user at one time. When you start a command line session, you begin at the login level. This level can be password protected and provides access to high level status, a few diagnostic commands, and the enable level. Further gateway information and configuration are accessed via the enable level. The enable level can also be password protected and is the gateway to full configuration and management of the intelligent gateway. There are commands for gathering and effecting all elements of gateway status and configuration, as well as commands that take you to additional levels. For instance, network specific status and configuration commands are found under the "configuration" level. SGXTM 5150 IoT Device Gateway Command Reference 13

  • 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
  • 156
  • 157
  • 158
  • 159
  • 160
  • 161
  • 162
  • 163
  • 164
  • 165
  • 166
  • 167
  • 168
  • 169
  • 170
  • 171
  • 172
  • 173
  • 174
  • 175
  • 176
  • 177
  • 178
  • 179
  • 180
  • 181
  • 182
  • 183
  • 184
  • 185
  • 186
  • 187
  • 188
  • 189
  • 190
  • 191
  • 192
  • 193
  • 194
  • 195
  • 196
  • 197
  • 198
  • 199
  • 200
  • 201
  • 202
  • 203
  • 204
  • 205
  • 206
  • 207
  • 208
  • 209
  • 210
  • 211
  • 212
  • 213
  • 214
  • 215
  • 216
  • 217
  • 218
  • 219
  • 220
  • 221
  • 222
  • 223
  • 224
  • 225
  • 226
  • 227
  • 228
  • 229
  • 230
  • 231
  • 232
  • 233
  • 234
  • 235
  • 236
  • 237
  • 238
  • 239
  • 240
  • 241
  • 242
  • 243
  • 244
  • 245
  • 246
  • 247
  • 248
  • 249
  • 250
  • 251
  • 252
  • 253
  • 254
  • 255
  • 256
  • 257

3: Command Line Interface
SGX
5150 IoT Device Gateway Command Reference
13
TM
Using Keyboard Shortcuts and CLI
One useful shortcut built into the SGX 5150 IoT device gateway is that the complete text of a
command does not have to be entered to issue a command. Typing just enough characters to
uniquely identify a command, then hitting enter, can be used as a short cut for a command. For
example, at the enable level, "
sh
" can be used for the "
show
" command.
Tab Completion is also available using the
Tab
and
Enter
keys on the keyboard. Typing the first
few characters of a command, then hitting the
Tab
key displays the first command that begins with
those characters. Hitting the
Tab
key again displays the next command that begins with the
original characters typed. You can press
Enter
to execute the command or you can backspace to
edit any parameters.
The following key combinations are allowed when configuring the
gateway using the CLI:
Table 3-1
Keyboard Shortcuts
Understanding the CLI Level Hierarchy
The CLI hierarchy is a series of levels. Arranging commands in a hierarchy of levels provides a
way to organize and group similar commands, provide different levels of security, and reduce the
complexity and number commands and options presented to a user at one time.
When you start a command line session, you begin at the login level. This level can be password
protected and provides access to high level status, a few diagnostic commands, and the enable
level. Further gateway information and configuration are accessed via the enable level.
The enable level can also be password protected and is the gateway to full configuration and
management of the intelligent gateway. There are commands for gathering and effecting all
elements of gateway status and configuration, as well as commands that take you to additional
levels. For instance, network specific status and configuration commands are found under the
“configuration” level.
Key Combination
Description
Ctrl + a
Places cursor at the beginning of a line
Ctrl + b
Backspaces one character
Ctrl + d
Deletes one character
Ctrl + e
Places cursor at the end of the line
Ctrl + f
Moves cursor forward one character
Ctrl + k
Deletes from the current position to the end of the line
Ctrl + l
Redraws the command line
Ctrl + n
Displays the next line in the history
Ctrl + p
Displays the previous line in the history
Ctrl + u
Deletes entire line and places cursor at start of prompt
Ctrl + w
Deletes one word back
Ctrl + z
Exits the current CLI level
Esc + b
Moves cursor back one word
Esc + f
Moves cursor forward one word