Cisco Systems UCSCPCIEBTG, 57712 manual Complete a Command, Command History, Command Output Formats

Models: 57712 UCSCPCIEBTG

1 288
Download 288 pages 20.54 Kb
Page 24
Image 24

Overview

Complete a Command

Complete a Command

You can use the Tab key in any mode to complete a command. Partially typing a command name and pressing Tab causes the command to be displayed in full or to the point where another keyword must be chosen or an argument value must be entered.

Command History

The CLI stores all commands used in the current session. You can step through the previously used commands by using the Up Arrow or Down Arrow keys. The Up Arrow key steps to the previous command in the history, and the Down Arrow key steps to the next command in the history. If you get to the end of the history, pressing the Down Arrow key does nothing.

All commands in the history can be entered again by simply stepping through the history to recall the desired command and pressing Enter. The command is entered as if you had manually typed it. You can also recall a command and change it before you press Enter.

Committing, Discarding, and Viewing Pending Commands

When you enter a configuration command in the CLI, the command is not applied until you enter the commit command. Until committed, a configuration command is pending and can be discarded by entering a discard command. When any command is pending, an asterisk (*) appears before the command prompt. The asterisk disappears when you enter the commit command, as shown in this example:

Server# scope chassis

Server /chassis # set locator-led off

Server /chassis *# commit

Server /chassis #

You can accumulate pending changes in multiple command modes and apply them together with a single commit command. You can view the pending commands by entering the show configuration pending command in any command mode.

Note Committing multiple commands together is not an atomic operation. If any command fails, the successful commands are applied despite the failure. Failed commands are reported in an error message.

Command Output Formats

Most CLI show commands accept an optional detail keyword that causes the output information to be displayed as a list rather than a table. You can configure either of two presentation formats for displaying the output information when the detail keyword is used. The format choices are as follows:

DefaultFor easy viewing, the command output is presented in a compact list.

This example shows command output in the default format:

Server /chassis # set cli output default

Server /chassis # show hdd detail

Name HDD_01_STATUS:

Status : present

 

Cisco UCS C-Series Servers Integrated Management Controller CLI Configuration Guide, Release 1.5

8

OL-28893-01

Page 24
Image 24
Cisco Systems UCSCPCIEBTG, 57712 Complete a Command, Command History, Committing, Discarding, and Viewing Pending Commands