Bash (Bourne Again
SHell) is a Unix shell or command-line interpreter supported by a variety of
operating systems. You can use the Bash interface to directly access the ACI
switches or you can develop Bash shell scripts to automate tasks. Bash provides
a variety of command line and scripting features.
For more information
about the Bash shell , see
http://www.gnu.org/software/bash/bash.html.
Network Naming
Conventions
Bash uses a forward
slash (/) as a separator for interfaces, network addresses, and other settings.
For example,
Ethernet interface number 46 on switch module 1 is represented as
Eth1/46
.
Command
Completion
Bash provides tab
completion for standard Linux commands and ACI switch-specific commands. When
you press the
Tab key at the end of a command or option
abbreviation, Bash displays the command in full or the next available keyword
or argument choice. Bash will also autocomplete unambiguous partial command
arguments.
Note
|
Bash will
autocomplete partial commands without the
Tab key only after you enter the first level
command. For example,
show int
br will be autocompleted as
show
interface brief , but
sh int
br will not be autocompleted.
|
Command
History
The CLI supports the
Bash shell history functions. To display the command history, you can use the
Up
Arrow or
Down
Arrow, as well as the history command.
You can reenter a
command in the history by stepping through the history to recall the desired
command and pressing
Enter. You can also recall a command and change it
before you enter it.
In addition, you can
directly search for a previous command by pressing
Ctrl-r and then typing part of the desired command
until the command is displayed.
Command
Help
At any time, you can
press the
Esc key twice to display the options available at
the current state of the command syntax. If you have not entered anything at
the prompt, pressing the
Esc key twice lists all available commands for the
current command mode. If you have partially entered a command, pressing the
Esc key twice lists all the keywords and arguments
available at your current position in the command syntax.
Note
|
The iBash CLI
uses
Esc-ESC instead of
? to avoid a conflict with the use of
$? as a possible Bash prompt shortcut.
|