Você está na página 1de 1

HUAWEI CLI OVERVIEW labnario.wordpress.

com
Association between user access levels and command levels

user level command level level name description


0 0 visit Diagnostic commands like ping and tracert, telnet command and part of display commands
1 0 and 1 monitoring All commands from visit level plus display commands
2 0, 1 and 2 configuration All commands from visit and monitoring levels plus configuration commands
3-15 0, 1, 2 and 3 management Gives access to all available commands

Command levels configuration Keys for editing

Common key Inserts a character at the current position of the


command-privilege level level view view-name command-key cursor if the editing buffer is not full. The cursor
then moves to the right.
Command line views Moves the cursor to the left and deletes the
Backspace
character at that position.
user view system view specific view
Left cursor key Moves the cursor to the left a single space at a
<Huawei>system-view [Huawei]aaa or Ctrl_B time.
<Huawei>
[Huawei] [Huawei-aaa]
Right cursor Moves the cursor to the right a single space at a
Full help key or Ctrl_F time.
Enter a question mark (?) in any command line view to Press Tab after typing a partial key word and
Tab
display command names and their descriptions for all the system runs partial help:
commands of that view.
If the matching key word is unique, the
[Huawei]? system replaces the typed character string
System view commands: with a complete key word and displays it in
aaa AAA information
a new line with the cursor placed at the end
acl Specify ACL configuration information
alarm-threshold Alarm threshold
of the word.
... If there are several matches or no match,
the system displays the prefix first. Then
Enter a command and a question mark (?) separated by a
you can press Tab to view any matching
space and all keywords associated with this command, as
key words one at a time. The cursor
well as simple descriptions, are displayed.
directly follows the end of the word. You
[Huawei]interface ? can press the spacebar to enter the next
Atm-Trunk ATM Trunk interface word.
Aux AUX interface If a non-existent or incorrect key word is
Eth-Trunk Ethernet Trunk interface
GigabitEthernet GigabitEthernet interface entered, press Tab and the word is
... displayed on a new line.

System-defined shortcut keys


Enter a command and a question mark (?) separated by a
space and parameters names for this command, as well as CTRL_A The cursor moves to the beginning of the current line
parameters descriptions, are displayed.
CTRL_B The cursor moves to the left one space at a time
[Huawei]interface GigabitEthernet ? CTRL_C Terminates the running function
<0,7-8> Slot number
CTRL_D Deletes the character where the cursor lies
Partial help CTRL_E The cursor moves to the end of the current line

Enter a character string followed directly by a question mark CTRL_F The cursor moves to the right one space at a time
(?) to display all commands that begin with this character CTRL_H Deletes one character to the left of the cursor
string.
CTRL_K Stops the creation of the outbound connection

[Huawei]i? CTRL_N Next command in previously-used command buffer


icmp-reply ifindex
igmp igmp-snooping CTRL_P previous command in previously-used command buffer
info-center interface CTRL_R Repeats display of the information of the current line
interface-match-check ip
iptn ipv6 CTRL_T Terminates the outbound connection
isis
CTRL_V Pastes the contents on the clipboard

Keys for displaying CTRL_W Deletes a character string to the left of the cursor

CTRL_X Deletes all the characters to the left of the cursor


Ctrl_C Stops the display and the running of a
command. CTRL_Y Deletes all the characters to the right of the cursor

Allows information to be displayed on the CTRL_Z Returns to the user view


Space
next screen. CTRL_] Terminates the inbound or redirection connections

Enter Allows information to be displayed on the ESC_B The cursor moves to the left by one word
next line.
ESC_D Deletes a word to the right of the cursor
Defining shortcut keys
ESC_F The cursor moves to the right to the end of next word
CTRL_G display current-configuration
ESC_N The cursor moves downward to the next line
CTRL_L display ip routing-table
CTRL_O undo debugging all ESC_P The cursor moves upward to the previous line

ESC_SHIFT_< Sets the cursor to the beginning of the clipboard


hotkey { CTRL_G | CTRL_L | CTRL_O | CTRL_U } command-text
ESC_SHIFT_> Sets the cursor to the end of the clipboard