Cisco Systems WSC2960X48TDL manual Editing Command Lines That Wrap

Page 21

Using the Command-Line Interface

Enabling and Disabling Editing Features

Esc D

Deletes from the cursor to the end of the word.

Esc C

Capitalizes at the cursor.

Esc L

Changes the word at the cursor to lowercase.

Esc U

Capitalizes letters from the cursor to the end of the

 

word.

 

Ctrl-V or Esc Q

Designates a particular keystroke as an executable

 

command, perhaps as a shortcut.

Return key

Scrolls down a line or screen on displays that are

 

longer than the terminal screen can display.

 

Note

The More prompt is used for any output that

 

 

has more lines than can be displayed on the

 

 

terminal screen, including show command

 

 

output. You can use the Return and Space

 

 

bar keystrokes whenever you see the More

 

 

prompt.

Space bar

Scrolls down one screen.

Ctrl-L or Ctrl-R

Redisplays the current command line if the switch

 

suddenly sends a message to your screen.

Editing Command Lines That Wrap

You can use a wraparound feature for commands that extend beyond a single line on the screen. When the cursor reaches the right margin, the command line shifts ten spaces to the left. You cannot see the first ten characters of the line, but you can scroll back and check the syntax at the beginning of the command. The keystroke actions are optional.

To scroll back to the beginning of the command entry, press Ctrl-Bor the left arrow key repeatedly. You can also press Ctrl-Ato immediately move to the beginning of the line.

Note The arrow keys function only on ANSI-compatible terminals such as VT100s.

The following example shows how to wrap a command line that extend beyond a single line on the screen.

SUMMARY STEPS

1.access-list

2.Ctrl-A

3.Return key

Catalyst 2960-X Switch Interface and Hardware Component Configuration Guide, Cisco IOS Release 15.0(2)EX

OL-29034-01

9

Image 21
Contents First Published July 10 Americas HeadquartersPage N T E N T S Contents Configuring Auto-MDIX41 Configuring System MTU Configuring EEE Viii Document Conventions Convention DescriptionBold font Vertical bars ElementReader Alert Conventions Related Documentation Obtaining Documentation and Submitting a Service RequestXii Information About Using the Command-Line Interface Command ModesThis chapter contains the following topics Configure Mode Access Method Prompt Exit Method About This ModeQuit Ctrl-ZCommand or Action Purpose Step Using the Help SystemMode HelpUnderstanding Abbreviated Commands No and default Forms of CommandsCLI Error Messages Configuration Logging How to Use the CLI to Configure FeaturesConfiguring the Command History Error Message MeaningChanging the Command History Buffer Size Recalling CommandsCommand or Action Disabling the Command History Feature Enabling and Disabling Editing FeaturesPrivileged Exec mode Terminal no historyEditing Commands through Keystrokes Editing Command Lines That Wrap Access-list Searching and Filtering Output of show and more CommandsShow more command begin include exclude regular-expression Show more command begin include excludeCommand or Action Example OL-29034-01 Information About Configuring Interface Characteristics Finding Feature InformationInterface Types This module contains the following topicsPort-Based VLANs Switch PortsTrunk Ports Switch Virtual InterfacesEtherChannel Port Groups Power over Ethernet PortsUSB Mini-Type B Console Port Using the Switch USB PortsUSB Type a Ports Interface ConnectionsConnecting VLANs with the Switch Interface Configuration ModeFeature Default Ethernet Interface ConfigurationDefault Setting Layer 2 or switching mode switchport command VLANs 1Speed and Duplex Configuration Guidelines Interface Speed and Duplex ModeIeee 802.3x Flow Control Configuring Interfaces Procedure How to Configure Interface CharacteristicsGigabit Ethernet port 1 on switch 1 is selected Either gigabitethernet 1/0/1Adding a Description for an Interface Configure terminalDescription string Show interfaces interface-id descriptionConfiguring a Range of Interfaces Configure terminal Enters global configuration modeInterface range port-rangemacro Configuring and Using Interface Range Macros Verifies the configuration of the interfaces in the rangeDefine interface-range macroname Configuring Ethernet Interfaces Setting the Interface Speed and Duplex ParametersInterface range macro macroname Nonegotiate Speed 10 100 1000 auto 10Command or Action Purpose Configuring Ieee 802.3x Flow ControlConfiguring SVI Autostate Exclude End Returns to privileged Exec modeEnter interface configuration mode Shutting Down and Restarting the Interface Switchport autostate excludeAn SVI line state up or down Interface vlan vlan-id gigabitethernet interface-idThis configuration applies to all switches in a stack Configuring the Console Media TypeConfigure terminal Line console Media-type rj45 End Shutdown Shuts down an interfaceConfigure terminal Enters the global configuration mode Configuring the USB Inactivity TimeoutCommand Purpose Monitoring Interface CharacteristicsShow interfaces interface-id status err-disabled Show interfaces interface-id switchportClearing and Resetting Interfaces and Counters Identifying Interfaces on a Stack-Capable Switch Examples Configuration Examples for Interface CharacteristicsConfiguring a Range of Interfaces Examples Adding a Description to an Interface ExampleConfiguring and Using Interface Range Macros Examples Setting Interface Speed and Duplex Mode ExampleConfiguring the Console Media Type Example To disable the configuration, use these commands Configuring the USB Inactivity Timeout ExampleStandards and RFCs Standard/RFC NoneCisco IOS Release 15.02EX This feature was introduced Technical Assistance Description LinkRelease Modification OL-29034-01 Prerequisites for Auto-MDIX Restrictions for Auto-MDIXThis module contains the following sections How to Configure Auto-MDIX Information about Configuring Auto-MDIXConfiguring Auto-MDIX on an Interface Auto-MDIX on an InterfaceMonitoring Auto-MDIX This example shows how to enable auto-MDIX on a port Example for Configuring Auto-MDIXInformation about the Ethernet Management Port Prerequisites for Ethernet Management PortsSupported Features on the Ethernet Management Port Ethernet Management Port Direct Connection to a SwitchDisabling and Enabling the Ethernet Management Port How to Configure the Ethernet Management PortWhat to Do Next Additional ReferencesRelated Topic Bootloader commandsMIBs Document TitleOL-29034-01 Configuring LLDP, LLDP-MED, and Wired Location Service Lldp and Cisco Switch Stacks Lldp Supported TLVsLldp and Cisco Medianet LLDP-MED Supported TLVs Wired Location Service Configuration Guidelines Default Lldp ConfigurationLldp run Enables Lldp globally on the switch Configure terminal Lldp runLLDP, and enter interface configuration mode Enabling LldpLldp transmit Enables the interface to send Lldp packets Configuring Lldp CharacteristicsLldp receive Enables the interface to receive Lldp packets Show lldp Verifies the configurationSwitchconfig# lldp holdtime Command or Action Purpose Step Configuring LLDP-MED TLVsLldp med-tlv-select Specifies the TLV to enable Lldp med-tlv-select End Copy running-config startup-configConfiguration mode. The range is 1 to Configuring Network-Policy TLVDscp dvalue none untagged Voice voice-signalingvlan vlan-idcosShow network-policy profile Verifies the configuration Configuring Location TLV and Wired Location ServiceWay Use one of the followingInformation, and enter interface configuration mode Exit Returns to global configuration modeUse one of the following Verifies the configuration Enters location information for an interfaceCommand or Action Purpose Example Enabling Wired Location Service on the SwitchConfiguring Network-Policy TLV Examples Nmsp enable Enables the Nmsp features on the switchNmsp notification interval attachment location Command Description Civic location OL-29034-01 System MTU Guidelines Information about the MTUConfiguring the System MTU How to Configure MTU SizesConfiguration Examples for System MTU Show system mtu Verifies your settingsReload Reloads the operating system Additional References for System MTU Restrictions for PoE Configuring PoEPower over Ethernet Ports Information about PoESupported Protocols and Standards Class Powered-Device Detection and Initial Power AllocationPower Management Modes Power Monitoring and Power Policing Maximum Power Allocation Cutoff Power on a PoE Port Configuring a Power Management Mode on a PoE Port How to Configure PoEBudgeting Power for Devices Connected to a PoE Port Show power inlineNever static max max-wattage No cdp run Optional Disables CDP Budgeting Power to All PoE portsConfigure terminal No cdp run Budgeting Power to a Specific PoE PortConfiguring Power Policing Specifies the physical port to be configured, and enterPower inline consumption wattage Show power inline police Show errdisable recovery Power inline police actionlog errdisable ExitConfiguration mode Power inline police actionlog errdisablePower inline police action log-Generates a syslog message While still providing power to the portDown the port and puts the port in the error-disabled state Monitoring Power Status Configuration Examples for Configuring PoEBudgeting Power Example EEE Overview Information About EEEDefault EEE Configuration How to Configure EEEEEE is disabled by default Restrictions for EEEPower efficient-ethernet auto Specifies the interface to be configured, and enterCommand Monitoring EEEConfiguration Examples for Configuring EEE This example shows how to enable EEE for an interfaceThis example shows how to disable EEE for an interface Feature History and Information for Configuring EEE OL-29034-01 D E PoE