Home > Cisco > Switch > Cisco 2960 X Owners Manual

Cisco 2960 X Owners Manual

Here you can view all the pages of manual Cisco 2960 X Owners Manual. The Cisco manuals for Switch are available online for free. You can easily download all the documents as PDF.

Page 11

CHAPTER 1
Using the Command-Line Interface
Thischaptercontainsthefollowingtopics:
•InformationAboutUsingtheCommand-LineInterface,page1
•HowtoUsetheCLItoConfigureFeatures,page5
Information About Using the Command-Line Interface
ThissectiondescribestheCiscoIOScommand-lineinterface(CLI)andhowtouseittoconfigureyourswitch.
Command Modes
TheCiscoIOSuserinterfaceisdividedintomanydifferentmodes.Thecommandsavailabletoyoudepend...

Page 12

Table 1: Command Mode Summary
About This ModeExit MethodPromptAccess MethodMode
Usethismodeto
•Change
terminal
settings.
•Performbasic
tests.
•Display
system
information.
Enterlogoutor
quit.Switch>Beginasession
usingTelnet,SSH,
orconsole.
UserEXEC
Usethismodeto
verifycommands
thatyouhave
entered.Usea
passwordtoprotect
accesstothismode.
Enterdisableto
exit.Switch#WhileinuserEXEC
mode,enterthe
enablecommand.
PrivilegedEXEC
Usethismodeto
configure
parametersthat
applytotheentire
switch.
Toexittoprivileged...

Page 13

About This ModeExit MethodPromptAccess MethodMode
LineconfigurationUsethismodeto
configure
parametersforthe
terminalline.
Toexittoglobal
configurationmode,
enterexit.
Toreturnto
privilegedEXEC
mode,pressCtrl-Z
orenterend.
Switch(config-line)#Whileinglobal
configurationmode,
specifyalinewith
thelinevtyorline
consolecommand.
Using the Help System
Youcanenteraquestionmark(?)atthesystemprompttodisplayalistofcommandsavailableforeach...

Page 14

PurposeCommand or Action
Listsallcommandsavailableforaparticularcommand
mode.
?
Example:Switch>?
Step 4
Liststheassociatedkeywordsforacommand.command?
Example:Switch>show?
Step 5
Liststheassociatedargumentsforakeyword.commandkeyword?
Example:Switch(config)#cdpholdtime?Lengthoftime(insec)thatreceiver
Step 6
mustkeepthispacket
Understanding Abbreviated Commands
Youneedtoenteronlyenoughcharactersfortheswitchtorecognizethecommandasunique....

Page 15

Table 2: Common CLI Error Messages
How to Get HelpMeaningError Message
Reenterthecommandfollowedby
aquestionmark(?)withaspace
betweenthecommandandthe
questionmark.
Thepossiblekeywordsthatyoucan
enterwiththecommandappear.
Youdidnotenterenough
charactersforyourswitchto
recognizethecommand.
%Ambiguouscommand:"showcon"
Reenterthecommandfollowedby
aquestionmark(?)withaspace
betweenthecommandandthe
questionmark.
Thepossiblekeywordsthatyoucan
enterwiththecommandappear.
Youdidnotenterallthekeywords...

Page 16

Changing the Command History Buffer Size
Bydefault,theswitchrecordstencommandlinesinitshistorybuffer.Youcanalterthisnumberforacurrent
terminalsessionorforallsessionsonaparticularline.Thisprocedureisoptional.
SUMMARY STEPS
1.terminalhistory[sizenumber-of-lines]
DETAILED STEPS
PurposeCommand or Action
Changesthenumberofcommandlinesthattheswitchrecordsduring
thecurrentterminalsessionintheprivilegedEXECmode.Youcan
configurethesizefrom0through256.
terminalhistory[sizenumber-of-lines]...

Page 17

PurposeCommand or Action
ListsthelastseveralcommandsthatyoujustenteredinprivilegedEXECmode.
Thenumberofcommandsthatappeariscontrolledbythesettingoftheterminal
showhistory
Example:Switch#showhistory
Step 3
historyglobalconfigurationcommandandthehistorylineconfiguration
command.
Disabling the Command History Feature
Thecommandhistoryfeatureisautomaticallyenabled.Youcandisableitforthecurrentterminalsessionor
forthecommandline.Thisprocedureisoptional.
SUMMARY STEPS
1.terminalnohistory
DETAILED STEPS...

Page 18

PurposeCommand or Action
Disablestheenhancededitingmodeforthecurrentterminalsession
intheprivilegedEXECmode.
terminalnoediting
Example:Switch#terminalnoediting
Step 2
Editing Commands through Keystrokes
Thekeystrokeshelpyoutoeditthecommandlines.Thesekeystrokesareoptional.
ThearrowkeysfunctiononlyonANSI-compatibleterminalssuchasVT100s.Note
Table 3: Editing Commands
DescriptionEditingCommands
Movesthecursorbackonecharacter.Ctrl-Borusetheleftarrowkey...

Page 19

Deletesfromthecursortotheendoftheword.EscD
Capitalizesatthecursor.EscC
Changesthewordatthecursortolowercase.EscL
Capitalizeslettersfromthecursortotheendofthe
word.
EscU
Designatesaparticularkeystrokeasanexecutable
command,perhapsasashortcut.
Ctrl-VorEscQ
Scrollsdownalineorscreenondisplaysthatare
longerthantheterminalscreencandisplay.
TheMorepromptisusedforanyoutputthat
hasmorelinesthancanbedisplayedonthe
terminalscreen,includingshowcommand
output.YoucanusetheReturnandSpace...

Page 20

DETAILED STEPS
PurposeCommand or Action
Displaystheglobalconfigurationcommandentrythatextendsbeyond
oneline.
access-list
Example:
Switch(config)#access-list101permittcp
Step 1
Whenthecursorfirstreachestheendoftheline,thelineisshiftedten
spacestotheleftandredisplayed.Thedollarsign($)showsthatthe
linehasbeenscrolledtotheleft.Eachtimethecursorreachestheend
oftheline,thelineisagainshiftedtenspacestotheleft....
Start reading Cisco 2960 X Owners Manual

Related Manuals for Cisco 2960 X Owners Manual

All Cisco manuals