Using the Command Line Interface
Navigating the Command Line Interface
Getting Help with CLI Syntax
The G‐Series switch allows you to display usage and syntax information for individual commands
by typing help or ? after the command.
CLI Command Defaults Descriptions
Each command description in this guide includes a section entitled "Defaults" which contains
different information from the factory default settings on the switch described in Table
section defines CLI behavior if the user enters a command without typing optional parameters
(indicated by square brackets [ ]). For 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
an example.
Figure 1-2
Syntax
show port status [port-string]
Defaults
If port‐string is not specified, status information for all ports will be displayed.
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 G‐Series switch
indicates which mode a user is logged in as by displaying one of the following prompts:
•
Admin: G3(su)‐>
•
Read‐Write: G3(rw)‐>
•
Read‐Only: G3(ro)‐>
Performing Keyword Lookups
Entering a space and a question mark (?) after a keyword will display all commands beginning
with the keyword. Figure
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 1-3
G3(su)->show snmp ?
community
notify
targetaddr
targetparams
1-8 Introduction
Sample CLI Defaults Description
1‐3 shows how to perform a keyword lookup for the show snmp
Performing a Keyword Lookup
SNMP v1/v2c community name configuration
SNMP notify configuration
SNMP target address configuration
SNMP target parameters configuration
1‐1. The
1‐2 provides