No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Fit AP V200R010C00 Command Reference

Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
Editing Command Lines

Editing Command Lines

Editing Feature

You can edit commands in a CLI that supports multi-line edition. Each command can contain a maximum of 512 characters. The keywords in the commands are case insensitive. Whether a command parameter is case sensitive or not depends on what the parameter is.

Table 1-1 lists keys that are frequently used for command editing.

Table 1-1  Keys for command editing

Key

Function

Common key

Inserts a character at the current location of the cursor if the editing buffer is not full, and the cursor moves to the right. Otherwise, an alarm is generated.

Backspace

Deletes the character on the left of the cursor and the cursor moves to the left. When the cursor reaches the head of the command, an alarm is generated.

Left cursor key ← or Ctrl+B

Moves the cursor to the left by the space of a character. When the cursor reaches the head of the command, an alarm is generated.

Right cursor key → or Ctrl+F

Moves the cursor to the right by the space of a character. When the cursor reaches the end of the command, an alarm is generated.

Operating Techniques

Incomplete Keyword

You can enter incomplete keywords on the device. In the current view, you do not need to enter complete keywords if the entered characters can match a unique keyword. This function improves operating efficiency.

For example, to execute the display current-configuration command, you can enter d cu, di cu, or dis cu, but you cannot enter d c or dis c because they do not match unique keywords.

NOTE:

The maximum length of a command (including the incomplete command) to be entered is 512 characters. If a command in incomplete form is configured, the system saves the command to the configuration file in its complete form, which may cause the command to have more than 512 characters. In this case, the command in incomplete form cannot be restored after the system restarts. Therefore, when you configure a command in incomplete form, pay attention to the length of the command.

Tab

Enter an incomplete keyword and press Tab to complete the keyword.
  • When a unique keyword matches the input, the system replaces the incomplete input with the unique keyword and displays it in a new line with the cursor leaving a space behind. For example:
    1. Enter an incomplete keyword.

      [Huawei] info-
    2. Press Tab.

      The system replaces the entered keyword and displays it in a new line with the complete keyword followed by a space.
      [Huawei] info-center
  • When the input has multiple matches, press Tab repeatedly to display the keywords beginning with the incomplete input in a circle until the desired keyword is displayed. In this case, the cursor closely follows the end of the keyword. For example:
    1. Enter an incomplete keyword.

      [Huawei] info-center log
    2. Press Tab.

      The system displays the prefixes of all the matched keywords. In this example, the prefix is log.
      [Huawei] info-center logbuffer
      Press Tab to switch from one matched keyword to another. In this case, the cursor closely follows the end of a word.
      [Huawei] info-center logfile
      [Huawei] info-center loghost

      Stop pressing Tab when the desired keyword is displayed.

  • When an incorrect keyword is entered, press Tab and it is displayed in a new line without being changed. For example:
    1. Enter an incorrect keyword.

      [Huawei] info-center loglog
    2. Press Tab.

      [Huawei] info-center loglog

      The system displays information in a new line, but the keyword loglog remains unchanged and there is no space between the cursor and the keyword, indicating that this keyword does not exist.

Translation
Download
Updated: 2019-07-18

Document ID: EDOC1100064353

Views: 125561

Downloads: 98

Average rating:
This Document Applies to these Products
Related Documents
Related Version
Share
Previous Next