The main error messages in CLI

If you make a mistake when entering a command in the CLI, or if the command is incomplete, you will get an error message like this

error messagesmeaning
% Ambiguous command.Can’t uniquely identify the command.
% Incomplete command.The command you entered is incomplete.
% Invalid input detected at “^” marker.The “^” is incorrect.
Table The main error messages in CLI

% Ambiguous command.

The error message “% Ambiguous command.” is displayed if the command cannot be uniquely identified. If you enter the command in an abbreviated form, you must enter it to the point where it is uniquely identified.

The following is an example of a “% Ambiguous command.” error message

R1#con t
% Ambiguous command:  "con t"

In this example, you would type “conf t” to enter global configuration mode, but you would type “con t” to enter global configuration mode. There are multiple commands that start with “con” and they cannot be uniquely identified. In such cases, the “% Ambiguous command.” will displayed

% Incomplete command.

The error message “% Incomplete command.” appears if you do not specify the required parameters for the command you entered. Make sure you know which parameters to provide.

The following is an example of a “% Incomplete command.” error message.

R1(config)#interface FastEthernet 0/0
R1(config-if)#ip address
% Incomplete command.

R1(config-if)#

The ip address command, which sets the IP address for an interface, requires you to specify the IP address and subnet mask. If you enter only the ip address, the parameters are incomplete. That’s why “% Incomplete command.” is displayed. To check the parameters you need, use the help.

% Invalid input detected at “^” marker.

The error message “% Invalid input detected at “^” marker.” is mainly shown when the command is misspelled. Make sure the command is spelled correctly.

The following is an example of “% Invalid input detected at “^” marker.

R1(config)#enable secrt cisco
                      ^
% Invalid input detected at '^' marker.

In this example, the “enable secret” command to set the password for privileged EXCE mode is spelled incorrectly. The wrong part is indicated by the “^” sign. You have misspelled “secret” as “secrt”.

To avoid misspelling commands, make use of command completion.

Related articles