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‐1.The
sectiondefinesCLIbehavioriftheuserentersacommandwithouttypingoptionalparameters
(indicatedby squarebrackets[]).Forcommands
withoutoptionalparameters,thedefaults
sectionlists“None”. Forcommandswithoptionalparameters,thissectiondescribeshowtheCLI
respondsiftheuseroptstoenteronlythekeywordsofthecommandsyntax.Figure 1‐2provides
anexample.
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
isloggedinasbydisplayingoneofthe followingprompts:
•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(s uchasshowsnmpcommunity)
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