Cisco Cisco ASR 5000

Page of 9109
  Command Line Interface Overview 
Exiting the CLI and CLI Command Modes  ▀   
 
Command Line Interface Reference, StarOS Release 18  ▄  
 
   
141 
Exiting the CLI and CLI Command Modes 
A CLI session is defined as the successful login into the CLI. When you establish a CLI session, you are placed into the 
system’s Exec Mode. Depending upon your user privilege level, you can: 
 
Use the local context to perform system management functions. 
 
Move to an assigned context and work in Exec Mode. 
 
Move to an assigned context as an administrative user and work in Global Configuration Mode or other 
configuration sub-mode. 
This section addresses how to properly exit the various modes and the CLI. 
Exiting Configuration Sub-modes 
To exit a configuration sub-mode and return to the next highest configuration sub-mode or Global Configuration Mode, 
type the exit command at the system prompt. 
[context_name]host_name(config-ctx)# exit 
[local]host_name(config)# 
Important:
  The CLI supports implicit mode-exits when using configuration files. Therefore, configuration files 
do not have to contain all of the required exit commands for you to leave various sub-config modes. 
To exit a sub-mode and return to the Exec Mode, enter the end command. 
[local]host_name(config-ctx)# end 
[local]host_name
Exiting Global Configuration Mode 
To exit Global Configuration Mode, and return to the Exec Mode prompt, type the exit command at the prompt. 
Ending a CLI Session 
To end a CLI session and exit the CLI, type the exit command at the Exec Mode prompt.