Monday, May 16, 2016

Interaction Characteristics

Intelligent Matching

When you enter an incomplete keyword, and then press Space, the CLI displays the results matching the keyword that is entered. In such a situation, you do not have to enter the entire keyword. Thus it facilitates operation. For example, to enter the enable command, just enter en or ena.
If you fail to enter a space, it indicates that:
  • You have entered a wrong command. In this case, you should check the command and enter a correct command. For example, when you enter dip (for display), you cannot enter a space.
    huawei#dip
  • The entered keyword conflicts with other keywords. For example, when you enter dis in privilege mode, the system cannot find a matched keyword for it.
    huawei#dis
    This is because there are two commands that start with dis: disable and display. To avoid this, enter more keywords of a command. For example, to enter the disable command, enter disa and then enter a space.

Edit Functions

The CLI provides the basic command edit functions. It allows multi-line editing, with up to 255 bytes for each command. Table 1 lists the edit functions.
Table 1 Edit functions
Key Function
Common keys If the edit buffer is not full, pressing such a key moves the cursor from its current position to the right.
BackSpace Pressing this key deletes the characters before the cursor and moves the cursor backwards. When reaching the beginning of the command, the cursor stops.
Tab or Space Typeaheads the key word in the command.
Left arrow key or Ctrl+A Moves the cursor to the left of one character.
Right arrow key or Ctrl+D Moves the cursor to the right of one character.
Up/Down arrow key / Displays historical commands. For some display terminals that do not support the upward/downward arrow key, you can press Ctrl+P to select the previous historical command or press Ctrl+O to select the next historical command.
Ctrl+U Deletes the characters before the current cursor and moves the cursor to the beginning of the line.
Ctrl+K Deletes the characters that follow the current cursor and moves the cursor to the end of the line.
Ctrl+F Moves the cursor to the beginning of the line.
Ctrl+B Moves the cursor to the end of the line.
Ctrl+W Displays previous historical command.
Ctrl+S Displays next historical command.
Ctrl+C Stops the current command.
Ctrl+] Exits.
Q Exits the displayed command output.
Any keys except Q Displays the command output.
? Displays the help.
ESC Pressing this key twice deletes the entered data.
NOTE:
Common keys refer to letter keys, digit keys and mark keys.

Interaction Mode

In the interactive mode, when you enter an incomplete command, the system displays the next keyword and its parameter type.
For example, to run the idle-timeout command in the interactive mode, do as follows:
huawei>idle-timeout  { minutes<U><1,255> }:255                                                       
                                                                                
  Command: idle-timeout 255  
When the interactive mode is disabled, the system runs the command directly after you enter the command. Then, press Enter. If you enter an incomplete command and press Enter, the system displays the error message with the symbol "^" marking the first errored character.
For example, run the idle-timeout command after you disable the interactive mode, and you can see the error message as follows:
huawei>undo smart                                                               
huawei>idle-timeout
                     ^
  % Incomplete command, the error locates at '^'
NOTE:
The CLI does not display the password that is entered.

CLI Error Prompts

All the entered commands that pass the syntax check can run successfully. If you enter an invalid command, the system displays the error message with the symbol "^" marking the first error character.
For example, run the incorrect display xxxx command.
huawei(config)#display xxxx                         
                       ^                                                        
  % Unknown command, the error locates at '^'  
If the command syntax is correct but the command running fails, the system displays the command prompts Failure or Info.
For example, run the display board command when the board being queried is not configured.
huawei#display board 1       
  Failure: 1 frame does not exist



You can find Huawei MA5683T, Huawei OSN3500 at Thunderlink



More related:

How to do when Occasional Hot Patch Installation Failures?

No comments:

Post a Comment