Using the Command Line Interface
3-4 CLI Basics
commands without optional parameters, the defaults section lists “None”. For commands with
optional parameters, this section describes how the CLI responds if the user opts to enter only the
keywords of the command syntax. Figure 3-2 provides an example.
Figure 3-2 Sample CLI Defaults Description
CLI Command Modes
Each command description in this guide includes a section entitled “Mode” which states whether
the command is executable in Admin (Super User), Read-Write, or Read-Only mode. Users with
Read-Only access will only be permitted to view Read-Only (show) commands. Users with Read-
Write access will be able to modify all modifiable parameters in set and show commands, as well
as view Read-Only commands. Administrators or Super Users will be allowed all Read-Write and
Read-Only privileges, and will be able to modify local user accounts. The A4 switch indicates
which mode a user is logged in as by displaying one of the following prompts:
• Admin: A4(su)->
• Read-Write: A4(rw)->
• Read-Only: A4(ro)->
Performing Keyword Lookups
Entering a space and a question mark (?) after a keyword will display all commands beginning
with the keyword. Figure 3-3 shows how to perform a keyword lookup for the show snmp
command. In this case, four additional keywords are used by the show snmp command. Entering
a space and a question mark (?) after any of these parameters (such as show snmp community)
will display additional parameters nested within the syntax.
Figure 3-3 Performing a Keyword Lookup
Entering a question mark (?) without a space after a partial keyword will display a list of
commands that begin with the partial keyword. Figure 3-4 shows how to use this function for all
commands beginning with co:
Figure 3-4 Performing a Partial Keyword Lookup
Syntax
show port status [port-string]
Defaults
If port-string is not specified, status information for all ports will be displayed.
A4(su)->show snmp ?
community SNMP v1/v2c community name configuration
notify SNMP notify configuration
targetaddr SNMP target address configuration
targetparams SNMP target parameters configuration
A4(rw)->co?
configure copy
A4(su)->co