Enabling Or Disabling The Cli Confirmation Prompts; Setting Cli Display Colors - Cisco Nexus 9000 Series Configuration Manual

Nx-os fundamentals configuration guide
Hide thumbs Also See for Nexus 9000 Series:
Table of Contents

Advertisement

Understanding the Command-Line Interface
This example shows how to display 20 lines of the command history:
switch# show cli history 20
This example shows how to display only the configuration commands in the command history:
switch(config)# show cli history config-mode
This example shows how to display only the EXEC commands in the command history:
switch(config)# show cli history exec-mode
This example shows how to display only the commands in the command history for the current command
mode:
switch(config-if)# show cli history this-mode-only
This example shows how to display only the commands in the command history without the command number
and timestamp:
switch(config)# show cli history unformatted

Enabling or Disabling the CLI Confirmation Prompts

For many features, the Cisco NX-OS software displays prompts on the CLI that ask for confirmation before
continuing. You can enable or disable these prompts. The default is enabled.
Procedure
Step 1

Setting CLI Display Colors

You can change the CLI colors to display as follows:
• The prompt displays in green if the previous command succeeded.
• The prompt displays in red of the previous command failed.
• The user input displays in blue.
• The command output displays in the default color.
Command or Action
[no] terminal dont-ask [persist]
Example:
switch# terminal dont-ask
Cisco Nexus 9000 Series NX-OS Fundamentals Configuration Guide, Release 7.x
Enabling or Disabling the CLI Confirmation Prompts
Purpose
Disables the CLI confirmation prompt. The persist keyword
makes the setting persistent across sessions for the current
username. The default is enabled.
Use the no form of the command to enable the CLI
confirmation prompts.
71

Advertisement

Table of Contents
loading

Table of Contents