Command Completion
To complete the spelling of commands or keywords
automatically, begin typing the command or keyword and then press Tab. For example,
entering
conf t in privileged EXEC
mode auto-completes the keyword and runs the configure terminal command.
device# conf t terminal Configure thru terminal device# conf terminal device(config)#
In releases prior to FastIron 08.0.80, if there are two or more matching commands or keywords, the commands or keywords will not be auto-filled when Tab is pressed. You must type all the characters in the commands or keywords to differentiate among the commands or keywords. In the following example, "dh" is matched with multiple keywords. Pressing Tab does not auto-complete the keyword, so you must manually type all the characters of the keyword.
device(config)# ip dh dhcp Set DHCP option dhcp-client DHCP client options dhcp-server DHCP Server dhcp-valid-check Check DHCP offer packet for NULL client addr
Beginning with FastIron 08.0.80, if there is more than one command or keyword associated with the entered characters, pressing Tab auto-fills the commands or keywords up to the last common matching character among all the commands or keywords so that typing a single character allows you to auto-complete the keyword.
device(config)# ip dh <and press Tab> device(config)# ip dhcp dhcp Set DHCP option dhcp-client DHCP client options dhcp-server DHCP Server dhcp-valid-check Check DHCP offer packet for NULL client addr
In the previous example, because "dhcp" is the common word among the four options, pressing Tab auto-fills "dh" to "dhcp". The CLI displays all choices matching the characters. Type another character to differentiate among the keywords and utilize the Tab-based command completion, thus improving the usability.
device(config)# ip dhcp-c <and press Tab> device(config)# ip dhcp-client auto-update Enable the DHCP client auto-update disable disable DHCP client globally on router
If you enter an invalid command or partial string that cannot be completed, an error message is displayed.
device(config)# shw Unrecognized command device(config)# shw