Utilities and Conventions
Take note of the following commands or conventions when using the CLI.
Search Command
The search <WORD> command can locate strings that appear in your
■
running configuration file. Strings can be words like vlan, or numbers such
as 10.20.30.40, or even a Perl-style regular expression.
Although the search command accepts most special characters used in
■
regular expressions, the character "?" is interpreted as a request for Help.
That is, instead of accepting "?" as a search parameter, the CLI will try
either to complete the command or to provide help for succeeding tokens
in the command.
Entering Parameters
■
When the CLI asks for a string parameter that appears in uppercase (for
example, WORD), enter a variable (for example, hello). When the CLI
prompts you for a parameter in lowercase, (for example, name), enter it
as it appears (that is, name). It is command syntax.
Address Notation
■
When you enter an IP address and subnet mask, you can enter it as either
an IP address and subnet mask pair or as an IP address with CIDR
notation. For example, the IP address and mask 15.127.43.21 255.255.255.0,
can also be entered as 15.127.43.21/24.
The switch supports subnet masking as well as inverse masks. For
■
example, both 255.255.0.0 and 0.0.255.255 are both valid masks.
Terminating Sessions and Exiting Modes
■
The switch includes the following commands that terminate your current
mode level: quit, end (or [
actions of each of these commands.
•
T he logout command is only available in Exec and Privileged Exec
modes. Use it and the quit (a hidden command) or exit commands to
disconnect the SSH or Telnet session. If you are connected directly to
the console, then using the quit, exit and logout commands will end
your session but not disconnect you.
T he exit command in any sub mode of the global config mode, returns
•
the CLI to the previous mode.
Using the Command Line Interface (CLI)
]), exit, and logout.
][
Ctrl
Z
Using the CLI
Figure 2-1
illustrates the
2-11