Got it

Using the Command Line Interface

Latest reply: Oct 8, 2021 15:30:29 601 28 18 0 0

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.


01


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.


02


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 + AMove to the first character on the command line
Ctrl + BMoves the cursor back one character.
Ctrl + CCancels and ends command and tasks in progress 

(such as long views) and displays a new prompt of

command.

Ctrl + DDeletes the character at the cursor.
Ctrl + EMove to the end of the current command line.
Ctrl + FMoves the cursor forward one character.
Ctrl + RRepeats the current command line on a new line.
Ctrl + NStart the next command line in the history buffer.
Ctrl + PStart the previous command line in the history buffer.
Ctrl + U; Ctrl + XDeletes all characters from the cursor to the beginning of the line command.
Ctrl + WDeletes the last word you typed.
Ctrl + ZMoves 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.

022

03

044

05

06

07

08



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


- END -


The post is synchronized to: Author groupandersoncf1's Author Collection

hemin88
Moderator Author Created Sep 28, 2021 11:02:16

Informative post dear friend, many thanks for sharing
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Sep 28, 2021 16:19:50 (0) (0)
you’re welcome  
Wow
Great
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Sep 28, 2021 16:20:50 (0) (0)
thanks  
Cool thanks for sharing
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Sep 29, 2021 16:22:46 (0) (0)
you’re welcome  
IndianKid
Moderator Author Created Sep 28, 2021 11:27:03

Thank you. Very useful sharing Anderson
View more
  • x
  • convention:

Serges_armel
Serges_armel Created Sep 28, 2021 19:44:28 (0) (0)
 
andersoncf1
andersoncf1 Created Sep 29, 2021 16:23:07 (0) (0)
you’re welcome  
Thanks for sharing
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 3, 2021 17:04:58 (0) (0)
you’re welcome  
zaheernew
MVE Author Created Sep 28, 2021 18:01:22

Awesome
View more
  • x
  • convention:

andersoncf1
andersoncf1 Created Oct 3, 2021 17:05:20 (0) (0)
thanks  
Useful information
View more
  • x
  • convention:

zaheernew
zaheernew Created Oct 3, 2021 18:01:39 (0) (0)
Thanks for your appreciation  
andersoncf1
andersoncf1 Created Oct 5, 2021 16:16:20 (0) (0)
Thanks  
Thanks!!!
View more
  • x
  • convention:

zaheernew
zaheernew Created Oct 3, 2021 18:01:45 (0) (0)
Thanks for your appreciation  
Thank you for sharing!
View more
  • x
  • convention:

zaheernew
zaheernew Created Oct 3, 2021 18:01:50 (0) (0)
Thanks for your appreciation  
12
Back to list

Comment

You need to log in to comment to the post Login | Register
Comment

Notice: To protect the legitimate rights and interests of you, the community, and third parties, do not release content that may bring legal risks to all parties, including but are not limited to the following:
  • Politically sensitive content
  • Content concerning pornography, gambling, and drug abuse
  • Content that may disclose or infringe upon others ' commercial secrets, intellectual properties, including trade marks, copyrights, and patents, and personal privacy
Do not share your account and password with others. All operations performed using your account will be regarded as your own actions and all consequences arising therefrom will be borne by you. For details, see " User Agreement."

My Followers

Login and enjoy all the member benefits

Login

Block
Are you sure to block this user?
Users on your blacklist cannot comment on your post,cannot mention you, cannot send you private messages.
Reminder
Please bind your phone number to obtain invitation bonus.