Error:Incomplete command found at ‘^‘ position.

Huawei eNSP, after starting the command sys, it reports Error: Incomplete command found at '^' position. How to deal with it?

Table 1  Command line common error message table

English error message

wrong reason

Error: Unrecognized command found at '^' position.

command not found

Keyword not found

Error: Wrong parameter found at '^' position.

Wrong parameter type

Parameter value out of bounds

Error:Incomplete command found at '^' position.

The input command is incomplete

Error:Too many parameters found at '^' position.

Too many input parameters

Error:Ambiguous command found at '^' position.

input command is ambiguous

 The sys command needs to be entered in the user view. If it is entered in the system view, an error will be reported.

Device switch-s5700

User view enters system view: sys

The system view enters the user view: return

Enter interface view from system view: int g0/0/1 

The interface view returns to the user view: return

Return to the upper view: q

view introduction

Enter the command line view

This node describes how to enter and exit the command line view.

The device provides a wealth of functions, and correspondingly provides a variety of configuration and query commands. To make it easier for users to use these commands, Huawei switches register the commands in different command line views according to their functions. When configuring a certain function, you need to enter the corresponding command line view first, and then execute the corresponding command to configure it.

There are many command views provided by the device, and the views mentioned below are the most commonly used views. The methods of entering other views are explained in the specific commands. For details, see S2700, S3700 Series Ethernet Switches Command Reference.

Common Command Line Views

Common View Names enter view view function
user view

After the user successfully logs in to the device from the terminal, he enters the user view, and the screen displays:

<Quidway>

In the user view, users can complete functions such as viewing the running status and statistical information.

system view

In the user view, enter the command system-view and press Enter to enter the system view.

<Quidway> system-view
Enter system view, return user view with Ctrl+Z.
[Quidway]

In the system view, users can configure system parameters and enter other function configuration views through this view.

interface view

You can enter the corresponding interface view by using the interface command and specifying the interface type and interface number.

[Quidway] interface gigabitethernet X/Y/Z
[Quidway-GigabitEthernetX/Y/Z] 
illustrate:
  • X/Y/Z are the serial numbers of the interfaces to be configured, corresponding to "stack ID/subcard number/interface serial number" respectively.

  • The GigabitEthernet interface in the above example is only for illustration.

The view for configuring interface parameters is called interface view. In this view, you can configure important parameters such as interface-related physical attributes, link layer characteristics, and IP addresses.

Routing Protocol View

In the system view, use the routing protocol process run command to enter the corresponding routing protocol view.

[Quidway] isis
[Quidway-isis-1] 

Most parameters of routing protocols are configured in the corresponding routing protocol view. For example, IS-IS protocol view, OSPF protocol view, and RIP protocol view.

  • The command line prompt "Quidway" is the default hostname (sysname). The current view can be judged through the prompt, for example: "<>" indicates the user view, and "[]" indicates other views except the user view.

  • Some commands executed in the system view can also be executed in other views, but the functions realized are closely related to the command view. For example, the lldp enable command enables the global LLDP function in the system view, and enables the LLDP function of a certain interface in the interface view.

  • In the system view, you can run the diagnose command to enter the diagnosis view. The diagnosis command line is mainly used for device fault diagnosis. Executing certain commands in this view may cause device abnormality or service interruption. If you need to use such command lines, please contact Huawei engineers and use them with caution under the guidance of Huawei engineers.
  • Users can execute in any view! Or add a character string with #, at this time, all user input (including ! and #) will be used as the comment line content of the system, which can be sent normally without error reporting and corresponding configuration information will not be generated.

Exit command line view

Execute the quit command to exit from the current view to the previous view.

For example, execute the quit command to return to the system view from IS-IS view, and then execute the quit command to return to the user view.

[Quidway-isis-1] quit
[Quidway] quit
<Quidway>

If you need to directly return to the user view from the IS-IS view, you can type the shortcut key <Ctrl+Z> on the keyboard or execute the return command.

# Use the shortcut key <Ctrl+Z> to directly return to the user view.

[Quidway-isis-1] #Type <Ctrl+Z> 
<Quidway>

# Execute the return command to directly return to the user view.

[Quidway-isis-1] return
<Quidway> 

Guess you like

Origin blog.csdn.net/qq_29752857/article/details/129853906