Using the Command Line Interface
Hello everyone!
Today, I would like to introduce you to the operating system of Huawei devices.
Objetive
The purpose of this post is to introduce you to Huawei's VRP and login methods.
Using the command line interface
Access to the switch's command line interface is via the SSH protocol.
The SSH Protocol is recommended due to its security, since all the content is encrypted, not allowing unauthorized people be able to know your username and password by getting only the network packets.
To help users of this interface we have the help of Online help, Command completion, Scroll control and Line editing commands
Online help
To show the list of available commands or options for the command, you must use the "?" or Tab. If you don't put any part command list will be displayed the list of commands supported in that mode. If you place part of the command, the list of options for that command will be displayed command.
If you use an invalid command, the message will appear indicating that the command is invalid.

Command completion
CLI allows commands to be completed, so you don't need to type the complete command or option. As soon as you insert the enough command or option characters to avoid ambiguity, the CLI understands what you want.
Scroll control
By default, the CLI uses a paging mode for views that are greater than the number of lines in the terminal emulation window. Per example, if you display a list of all commands at the CONFIG level global, but your terminal emulation window does not have enough lines to display them all at once, paging mode stops the display and lists your options for continuing the display.

The software provides the following scrolling options:
Press the Space bar to display the next page (one screen per turn).
Press the Return or Enter key to display the next line (a line at a time).
Press Ctrl-C to cancel display.
Line editing commands
CLI supports the following line editing commands. To insert a line editing command, use the CTRL + key combination to the command by pressing and holding the CTRL key and pressing the letter associated with the command.
Ctrl + key combination | Description |
| Ctrl + A | Move to the first character on the command line |
| Ctrl + B | Moves the cursor back one character. |
| Ctrl + C | Cancels and ends command and tasks in progress (such as long views) and displays a new prompt of command. |
| Ctrl + D | Deletes the character at the cursor. |
| Ctrl + E | Move to the end of the current command line. |
| Ctrl + F | Moves the cursor forward one character. |
| Ctrl + R | Repeats the current command line on a new line. |
| Ctrl + N | Start the next command line in the history buffer. |
| Ctrl + P | Start the previous command line in the history buffer. |
| Ctrl + U; Ctrl + X | Deletes all characters from the cursor to the beginning of the line command. |
| Ctrl + W | Deletes the last word you typed. |
| Ctrl + Z | Moves from any CLI CONFIG level to the level privileged EXEC; At the privileged EXEC level, it moves to the user EXEC level. |
Table - CLI Line Edit Commands
Privileged EXEC Mode
Privileged EXEC mode allows all levels of the show command. Additionally you can run configuration commands among others.
Below is the list of possible commands.







After the changes it is advisable to save the configuration with the save command.
- END -


