Using the Command Line Interface
1-8 Introduction
Navigating the Command Line Interface
Getting Help with CLI Syntax
TheEnterasysB5switchallowsyoutodisplayusageandsyntaxinformationforindividual
commandsbytypinghelpor?afterthecommand.
CLI Command Defaults Descriptions
Eachcommanddescriptioninthisguideincludesasectionentitled“Defaults”whichcontains
differentinformationfromthefactorydefaultsettingsontheswitchdescribedinTable 1‐1.The
sectiondefinesCLIbehavioriftheuserentersacommandwithouttypingoptionalparameters
(indicatedby squarebrackets[]).Forcommands
withoutoptionalparameters,thedefaults
sectionlists“None”. Forcommandswithoptionalparameters,thissectiondescribeshowthe CLI
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.TheEnterasysB5switch
indicateswhichmodeauser
isloggedinasbydisplayingoneofthefollowingprompts:
•Admin:B5(su)‐>
•Read‐Write:B5(rw)‐>
•Read‐Only:B5(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.
B5(su)->show snmp ?
community SNMP v1/v2c community name configuration
notify SNMP notify configuration
targetaddr SNMP target address configuration
targetparams SNMP target parameters configuration