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
Bash uses a forward
slash (/) as a separator for interfaces, network addresses, and other settings.
Ethernet interface number 46 on switch module 1 is represented as
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
autocomplete partial commands without the
Tab key only after you enter the first level
command. For example,
br will be autocompleted as
interface brief, but
br will not be autocompleted.
The CLI supports the
Bash shell history functions. To display the command history, you can use the
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.
At any time, you can
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.
The iBash CLI
Esc-ESC instead of
? to avoid a conflict with the use of
$? as a possible Bash prompt shortcut.