Using the Command Line Interface
1-8 Introduction
Navigating the Command Line Interface
Getting Help with CLI Syntax
TheSecureStackC2switchallowsyoutodisplayusageandsyntaxinformationforindividual
commandsbytypinghelpor?afterthecommand.
CLI Command Defaults Descriptions
Eachcommanddescriptioninthisguideincludesasectionentitled“Defaults”whichcontains
differentinformationfromthefactorydefaultsettingsontheswitchdescribedinTable 1‐1and
Table 1‐2.ThesectiondefinesCLIbehavioriftheuserentersacommandwithouttypingoptional
parameters(indicatedbysquarebrackets[
]).Forcommandswithoutoptionalparameters,the
defaultssectionlists“None”.Forcommandswithoptionalparameters,thissectiondescribeshow
theCLIrespondsiftheuseroptstoenteronlythekeywordsofthecommandsyntax.Figure 1‐2
providesanexample.
Figure 1-2 Sample CLI Defaults Description
CLI Command Modes
Eachcommanddescriptioninthisguideincludesasectionentitled“Mode” whichstateswhether
thecommandisexecutableinAdmin(SuperUser),Read‐Write,orRead ‐Onlymode.Userswith
Read‐OnlyaccesswillonlybepermittedtoviewRead‐Only(show)commands.UserswithRead‐
Writeaccesswillbe
abletomodifyallmodifiableparametersinsetandshowcommands,aswell
asviewRead‐Onlycommands.AdministratorsorSuperUserswillbeallowedallRead‐Writeand
Read‐Onlyprivileges,andwillbeabletomodifylocaluseraccounts.TheSecureStackC2switch
indicateswhichmodeauser
isloggedinasbydisplayingoneofthefollowingprompts:
•Admin:C2(su)‐>
•Read‐Write:C2(rw)‐>
•Read‐Only:C2(ro)‐>
Performing Keyword Lookups
Enteringaspaceandaquestionmark(?)afterakeywordwilldisplayallcommandsbeginning
withthekeyword.Figure 1‐3showshowtoperformakeywordlookupfortheshowsnmp
command.Inthiscase,fouradditionalkeywordsareusedbytheshowsnmpcommand.Entering
aspaceand
aquestionmark(?)afteranyoftheseparameters(suchasshowsnmpcommunity)
willdisplayadditionalparametersnestedwithinthesyntax.
Figure 1-3 Performing a Keyword Lookup
Syntax
show port status [port-string]
Defaults
Ifport‐stringisnotspecified,statusinformationforallportswillbedisplayed.
C2(su)->show snmp ?
community SNMP v1/v2c community name configuration
notify SNMP notify configuration
targetaddr SNMP target address configuration
targetparams SNMP target parameters configuration