Cisco Systems WSC2960X48TDL manual How to Use the CLI to Configure Features, Configuration Logging

Page 17

Using the Command-Line Interface

Configuration Logging

Table 2: Common CLI Error Messages

Error Message

Meaning

How to Get Help

%Ambiguous command: "show con"

% Incomplete command.

%Invalid input detected at ^marker.

You did not enter enough characters for your switch to recognize the command.

You did not enter all the keywords or values required by this command.

You entered the command incorrectly. The caret (^) marks the point of the error.

Reenter the command followed by a question mark (?) with a space between the command and the question mark.

The possible keywords that you can enter with the command appear.

Reenter the command followed by a question mark (?) with a space between the command and the question mark.

The possible keywords that you can enter with the command appear.

Enter a question mark (?) to display all the commands that are available in this command mode.

The possible keywords that you can enter with the command appear.

Configuration Logging

You can log and view changes to the switch configuration. You can use the Configuration Change Logging and Notification feature to track changes on a per-session and per-user basis. The logger tracks each configuration command that is applied, the user who entered the command, the time that the command was entered, and the parser return code for the command. This feature includes a mechanism for asynchronous notification to registered applications whenever the configuration changes. You can choose to have the notifications sent to the syslog.

Note Only CLI or HTTP changes are logged.

How to Use the CLI to Configure Features

Configuring the Command History

The software provides a history or record of commands that you have entered. The command history feature is particularly useful for recalling long or complex commands or entries, including access lists. You can customize this feature to suit your needs.

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

OL-29034-01

5

Image 17
Contents First Published July 10 Americas HeadquartersPage N T E N T S Contents Configuring Auto-MDIX41 Configuring System MTU Configuring EEE Viii Bold font Document ConventionsConvention Description Reader Alert Conventions Vertical barsElement Related Documentation Obtaining Documentation and Submitting a Service RequestXii This chapter contains the following topics Information About Using the Command-Line InterfaceCommand Modes Configure Mode Access Method Prompt Exit Method About This ModeQuit Ctrl-ZCommand or Action Purpose Step Using the Help SystemMode HelpCLI Error Messages Understanding Abbreviated CommandsNo and default Forms of Commands Configuration Logging How to Use the CLI to Configure FeaturesConfiguring the Command History Error Message MeaningCommand or Action Changing the Command History Buffer SizeRecalling Commands 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 descriptionInterface range port-rangemacro Configuring a Range of InterfacesConfigure terminal Enters global configuration mode Define interface-range macroname Configuring and Using Interface Range MacrosVerifies the configuration of the interfaces in the range Interface range macro macroname Configuring Ethernet InterfacesSetting the Interface Speed and Duplex Parameters Nonegotiate Speed 10 100 1000 auto 10Command or Action Purpose Configuring Ieee 802.3x Flow ControlEnter interface configuration mode Configuring SVI Autostate ExcludeEnd Returns to privileged Exec 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 the Console Media Type Example Configuring and Using Interface Range Macros ExamplesSetting Interface Speed and Duplex Mode Example To disable the configuration, use these commands Configuring the USB Inactivity Timeout ExampleStandards and RFCs Standard/RFC NoneRelease Modification Cisco IOS Release 15.02EX This feature was introducedTechnical Assistance Description Link OL-29034-01 This module contains the following sections Prerequisites for Auto-MDIXRestrictions for Auto-MDIX 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 Medianet Lldp and Cisco Switch StacksLldp Supported TLVs 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 SwitchNmsp notification interval attachment location Configuring Network-Policy TLV ExamplesNmsp enable Enables the Nmsp features on the switch Command Description Civic location OL-29034-01 System MTU Guidelines Information about the MTUConfiguring the System MTU How to Configure MTU SizesReload Reloads the operating system Configuration Examples for System MTUShow system mtu Verifies your settings Additional References for System MTU Restrictions for PoE Configuring PoESupported Protocols and Standards Power over Ethernet PortsInformation about PoE 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 PoENever static max max-wattage Budgeting Power for Devices Connected to a PoE PortShow power inline No cdp run Optional Disables CDP Budgeting Power to All PoE portsConfigure terminal No cdp run Budgeting Power to a Specific PoE PortPower inline consumption wattage Configuring Power PolicingSpecifies the physical port to be configured, and enter Show power inline police Show errdisable recovery Power inline police actionlog errdisable ExitConfiguration mode Power inline police actionlog errdisableDown the port and puts the port in the error-disabled state Power inline police action log-Generates a syslog messageWhile still providing power to the port Budgeting Power Example Monitoring Power StatusConfiguration Examples for Configuring PoE 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 EEEThis example shows how to disable EEE for an interface Configuration Examples for Configuring EEEThis example shows how to enable EEE for an interface Feature History and Information for Configuring EEE OL-29034-01 D E PoE