CLI command modes
The different command modes in the Vyatta NOS CLI and how to switch between them.
The Vyatta NOS CLI has two command modes: operational mode and configuration mode.
- Operational mode
- Note: The command prompt for this mode takes this form:
user@system:~$
This mode is active when you log into the Vyatta NOS system. It offers operational commands that allow you to:
- Show or clear information
- Enable or disable debugging
- Configure terminal settings
- Load or save a configuration
- Restart the system
- Configuration mode
- Note: The command prompt for this mode takes this form:
user@system#
Switch to this mode when you want to use commands to:
- Create, modify, delete or commit configuration information
- Navigate through the configuration hierarchy
Switch to configuration mode
How to switch from operational mode to configuration mode in the Vyatta NOS CLI.
configure
command to switch from operational mode to configuration mode.user@system:~$ configure
[edit]
user@system#
Notice that the command prompt changes to the configuration mode form #
.Switch to operational mode
How to exit configuration mode in the Vyatta NOS CLI, to return to operational mode.
commit
command — or you can discard the changes and exit in one operation with the exit discard
command.exit
command to exit this mode and return to operational mode.user@system# exit
exit
user@system:~$
Notice that the command prompt changes to the operational mode form :~$
.