Using the CLI
Use the commands described in this section to navigate the CLI. For a complete description of the CLI, see Command-Line Interface.
configure
- Use to enter Global Configuration mode.
- Global Configuration mode provides access to other configuration modes, such as Interface Configuration mode. See Command-Line Interface.
- This command allows other commands to be executed from a terminal or a file.
- This command is not allowed for a short time after a warm restart (warm switchover) occurs. This delay allows some applications time to complete their warm-restart initialization. However, if the warm restart is not complete in 5 minutes, the warm start is cancelled and configuration access is restored.
- Example 1host1#configureConfiguring from terminal or file [terminal]?Enter configuration commands, one per line. End with CNTL/Z.host1(config)#
- Example 2host1#configureConfiguring from terminal or file [terminal]? fileFile name: system1.scrProceed with configure? [confirm] host1(config)#
- There is no no version.
- See configure.
disable
- Use to exit Privileged Exec mode and return to User Exec mode.
- Use to move to a lower Privileged Exec mode level without returning to User Exec mode. Specifying a privilege level after the disable command changes the Privileged Exec mode to the lower level that you specify; you do not return to User Exec mode.
- Example 1host1#disablehost1>
- Example 2host1#show privilege Privilege level is 10host1#disable 5 host1#show privilege Privilege level is 5
- There is no no version.
- See disable.
do
- Use to issue an Exec mode command from any CLI configuration command mode.
- Examplehost1(config)#do show configuration | begin interface
- The do command functions the same as the run command.
- There is no no version.
- See do.
enable
- Use to move from User Exec to Privileged Exec mode.
- Privileged Exec mode allows you to access all other user interface modes. From here you can configure, monitor, and manage all aspects of the router.
- You can access the Privileged Exec commands using one of 16 levels of command privilege. If you do not enter a privilege level and you are not accessing the router through a RADIUS authentication account, the default CLI access level is 10. For information about CLI levels of access, see Privileged-Level Access in Command-Line Interface.
- Set a password for this mode by using either the enable password or the enable secret command in Global Configuration mode. This protects the system from any unauthorized use.
- Once a password is set, anyone trying to use Privileged Exec mode will be asked to provide the password.
- Example 1 (accessing Privileged Exec mode at the default
level 10)host1>enablepassword:*******host1#
- Example 2 (accessing Privileged Exec mode at the highest
level 15; a password is not set for this example)host1>enable 15host1#
- There is no no version.
- See enable.
end
- Use to exit Global Configuration mode or any of the other Configuration modes. You may also use Ctrl+z to exit these modes.
- Executing this command returns you to the User Exec mode.
- Examplehost1(config)#end host1#
- There is no no version.
- See end.
exit
- Use to exit the current command mode or the system when issued from the User Exec mode.
- Examplehost1#exithost1>
- There is no no version.
- See exit.
help
- Use to display basic information about the interactive help system.
- Examplehost1#helpUse the help options as follows:
?, or command<Space>? - Lists the set of all valid next keywords or argumentspartial-keyword? - Lists the keywords that begin with a certain character stringpartial-keyword<Tab> - Completes the partial keyword - There is no no version.
- See help.
run
- Use to issue an Exec mode command from any CLI configuration command mode.
- Examplehost1(config)#run show configuration | begin interface
- The run command functions the same as the do command.
- There is no no version.
- See run.
sleep
- Use to make the CLI pause for a specified period of time (in seconds).
- Pausing is very useful in configuration script files.
- Examplehost1#sleep 60
- There is no no version.
- See sleep.
Hide Navigation Pane
Show Navigation Pane
SHA1