First Published July 10
Americas Headquarters
Cisco Systems, Inc
170 West Tasman Drive San Jose, CA
Cisco Systems, Inc. All rights reserved
Using the Command-Line Interface
Obtaining Documentation and Submitting a Service Request
Information About Using the Command-Line Interface Command Modes
Using the Help System Understanding Abbreviated Commands
Event Service NameSpace Mapper
Cisco Configuration Engine Software Configuration Service
Cisco Networking Services IDs and Device Hostnames 16 ConfigID
DeviceID Hostname and DeviceID Hostname, DeviceID, and ConfigID
Configuring Simple Network Management Protocol
Feature History and Information for Cisco Discovery Protocol
Finding Feature Information Prerequisites for SNMP
SNMP MIB Variables Access SNMP Notifications
Default SPAN and RSPAN Configuration Configuration Guidelines
SPAN and RSPAN Interaction with Other Features
SPAN Configuration Guidelines RSPAN Configuration Guidelines
FSPAN and FRSPAN Configuration Guidelines
Examples Creating an RSPAN VLAN
Feature History and Information for SPAN and RSPAN
Contents
OL-29044-01
viii
Contents
OL-29044-01
Preface
Obtaining Documentation and Submitting a Service Request, page
Document Conventions
Document Conventions, page Related Documentation, page
Reader Alert Conventions
Tip Means the following information will help you solve a problem
Convention
Description
Related Documentation
Obtaining Documentation and Submitting a Service Request
OL-29044-01
Preface Obtaining Documentation and Submitting a Service Request
Information About Using the Command-Line Interface
Using the Command-Line Interface
Command Modes
Information About Using the Command-Line Interface, page
About This Mode
Access Method
the configure
vlan-id command
2. abbreviated-command-entry ? 3. abbreviated-command-entry Tab
Using the Help System
5. command ? 6. command keyword ?
Command or Action
No and default Forms of Commands
Understanding Abbreviated Commands
CLI Error Messages
Lists all commands available for a particular command
Configuration Logging
How to Use the CLI to Configure Features
Configuring the Command History
Error Message
Recalling Commands
Changing the Command History Buffer Size
Repeat the key sequence to recall successively older commands
more recent commands
Disabling the Command History Feature
Enabling and Disabling Editing Features
privileged EXEC mode
Reenables the enhanced editing mode for the current terminal
in the privileged EXEC mode
Editing Commands through Keystrokes
terminal no editing
Ctrl-B or use the left arrow key
1. access-list 2. Ctrl-A 3. Return key
Editing Command Lines That Wrap
Esc D
Esc C
access-list
Searching and Filtering Output of show and more Commands
1. show more command begin include exclude regular-expression
show more command begin include exclude
Command or Action Example
Accessing the CLI through a Console Connection or through Telnet
Purpose
Accessing the CLI through a Console Connection or through Telnet
Using the Command-Line Interface
OL-29044-01
Prerequisites for Configuring the Configuration Engine
Finding Feature Information
Finding Feature Information, page
Prerequisites for Configuring the Configuration Engine, page
Information About Configuring the Configuration Engine
Restrictions for Configuring the Configuration Engine
Cisco Configuration Engine Software
Cisco Networking Services IDs and Device Hostnames, on page
Figure 1 Cisco Configuration Engine Architectural Overview
Configuration Service
Cisco Networking Services IDs and Device Hostnames
Event Service
ConfigID
Prerequisites for Configuring the Configuration Engine, on page
DeviceID
Hostname, DeviceID, and ConfigID
Hostname and DeviceID
Refreshing DeviceIDs, on page
Automated CNS Configuration, on page
Initial Configuration
Cisco IOS CNS Agents
Related Topics
Incremental Partial Configuration
Automated CNS Configuration
Synchronized Configuration
Required Configuration
Initial Configuration, on page
How to Configure the Configuration Engine
1. configure terminal
Enabling the CNS Event Agent
Enters the global configuration mode
configure terminal
reconnect-time time backup
What to Do Next
2. cns config initial hostname ip-address port-number
Event Service, on page
3. cns config partial hostname ip-address port-number
cns config initial hostname ip-address
Enables the Cisco IOS CNS agent and initiates a partial configuration
Enabling an Initial Configuration for Cisco IOS CNS Agent
on the switch
Returns to privileged EXEC mode
3. cli config-text
1. configure terminal 2. cns template connect name
cli config-text
each command line in the template
exit
Returns to global configuration mode
Step 7 discover controller controller-type dlci
Step 8 template name ... name
hostname name
hostname string string udi event image command
ip route network-number
address is network-number
page source ip-address syntax-check
port-number event no-persist page
Command or Action
Returns to privileged EXEC mode
5. configure terminal
1. show cns config connections
Refreshing DeviceIDs
3. show cns event connections
show cns event connections
show cns config connections
no cns event ip-address port-number
cns event ip-address port-number
cns config partial ip-address hostname
Enabling a Partial Configuration for Cisco IOS CNS Agent
Enabling the Cisco IOS CNS Agent, on page
Hostname and DeviceID, on page
Command
Monitoring CNS Configurations
show cns config outstanding
show cns config stats
Configuration Engine Setup
Feature History and Information for the Configuration Engine
docs/netmgmt/configurationengine/1.5
installationlinux/guide/setup1.html
Finding Feature Information, page Information About CDP, page
Configuring the Cisco Discovery Protocol
How to Configure CDP, page Monitoring and Maintaining CDP, page
Feature History and Information for Cisco Discovery Protocol, page
Default CDP Configuration
How to Configure CDP
Configuring CDP Characteristics
Feature
cdp timer seconds
1. configure terminal 2. cdp timer seconds 3. cdp holdtime seconds
4. cdp advertise-v2 5. end
cdp holdtime seconds
Disables CDP
1. configure terminal 2. no cdp run 3. end
Disabling CDP
Monitoring and Maintaining CDP, on page
Enables CDP if it has been disabled
1. configure terminal 2. cdp run 3. end
Enabling CDP
Enabling CDP, on page
and enters interface configuration mode
3. no cdp enable 4. end
Disabling CDP on an Interface
Disabling CDP, on page
Disables CDP on the interface specified in Step
no cdp enable
3. cdp enable 4. end
Enabling CDP on an Interface
Enables CDP on a disabled interface
cdp enable
Resets the traffic counters to zero
Monitoring and Maintaining CDP
Cisco IOS Configuration Fundamentals Command
Configuring CDP Characteristics, on page
Switches
show cdp entry entry-name version protocol
Technical Assistance
Feature History and Information for Cisco Discovery Protocol
Description
Link
Finding Feature Information, page Prerequisites for SNMP, page
Configuring Simple Network Management Protocol
How to Configure SNMP, page Monitoring SNMP Status, page
Prerequisites for SNMP
Model
Authentication
Level
Encryption
Model
Authentication
Level
Encryption
Information About SNMP
Restrictions for SNMP
SNMP Overview
SNMP Manager Functions
SNMP Agent Functions
SNMP MIB Variables Access
SNMP Community Strings
Operation
SNMP ifIndex MIB Object Values
SNMP Notifications
SNMP Configuration Guidelines
Default SNMP Configuration
Default Setting
Interface Type
1. configure terminal 2. no snmp-server 3. end
How to Configure SNMP
Disabling the SNMP Agent
Before You Begin
Disables the SNMP agent operation
Configuring Community Strings
3. access-list access-list-number deny permit source source-wildcard
no snmp-server
Step 3 access-list access-list-number deny
view view-name ro rw access-list-number
Step 2 snmp-server community string
permit source source-wildcard
5. end
Configuring SNMP Groups and Users
snmp-server engineID local
engineid-string remote ip-address
group-name remote host udp-port port v1 access access-list v2c
notifyview access access-list
access access-list v3 encrypted access access-list auth md5 sha
auth-password priv des 3des aes 128 192 256 priv-password
Step 5 end Example
Configuring SNMP Notifications
Command or Action Example
Purpose
copy-config
config
Notification Type Keyword
bridge
2 snmp-server enable traps port-security trap-rate rate
1 snmp-server enable traps port-security
port-security
snmp
9. snmp-server trap-timeout seconds 10. end
6. snmp-server enable traps notification-types
host udp-port port v1 access access-list
v2c access access-list v3 encrypted access
1 snmp-server enable traps port-security
Step 6 snmp-server enable traps notification-types
2 snmp-server enable traps port-security trap-rate rate
range is 1 to 1000 the default is
snmp-server trap-timeout seconds
Setting the Agent Contact and Location Information
to 1000 the default is 30 seconds
1. configure terminal 2. snmp-server contact text
Limiting TFTP Servers Used Through SNMP
2. snmp-server tftp-server-list access-list-number
snmp-server contact text
Sets the system contact string
Monitoring SNMP Status
access-list-number
Step 2 snmp-server tftp-server-list
Command or Action
SNMP Examples
running-config output
show snmp
show snmp engineID
Release
Switchconfig# snmp-server enable traps entity
Modification
Cisco IOS 15.02EX
How to Configure SPAN and RSPAN, page
Configuring SPAN and RSPAN
SPAN and RSPAN Configuration Examples, page
Feature History and Information for SPAN and RSPAN, page
RSPAN
Restrictions for SPAN and RSPAN
SPAN
An RSPAN source session cannot have a local destination port
Flow-Based SPAN FSPAN and Flow-Based RSPAN FRSPAN
RSPAN
SPAN and RSPAN
Information About SPAN and RSPAN
Local SPAN
name
Figure 4 Example of Local SPAN Configuration on a Single Device
Remote SPAN
Figure 5 Example of Local SPAN Configuration on a Device Stack
SPAN Sessions, page Monitored Traffic Source Ports Source VLANs
SPAN and RSPAN Concepts and Terminology
VLAN Filtering Destination Port RSPAN VLAN
Monitored Traffic
SPAN Sessions
Source Ports
VLAN Filtering
Source VLANs
Destination Port
RSPAN VLAN
SPAN and RSPAN Interaction with Other Features
SPAN and RSPAN and Device Stacks
Flow-Based SPAN
Configuration Guidelines
Default SPAN and RSPAN Configuration
SPAN Configuration Guidelines
Feature
RSPAN Configuration Guidelines
How to Configure SPAN and RSPAN
FSPAN and FRSPAN Configuration Guidelines
Creating a Local SPAN Session
Step 3 monitor session sessionnumber source
Step 2 no monitor session sessionnumber all local remote
interface interface-id vlan vlan-id
both rx tx
Step 5 end
Creating a Local SPAN Session and Configuring Incoming Traffic
Command or Action Example
Returns to privileged EXEC mode
local remote
no monitor session sessionnumber all
monitor session sessionnumber source
interface interface-id vlan vlan-id
untagged encapsulation type with the specified VLAN as the default
Command or Action
Returns to privileged EXEC mode
Specifying VLANs to Filter
interface interface-id
Configuring a VLAN as an RSPAN VLAN
Step 4 monitor session sessionnumber filter vlan
vlan-id
3. remote-span 4. end
2. vlan vlan-id
vlan vlan-id
remote-span
4. monitor session sessionnumber destination remote vlan vlan-id
Creating an RSPAN Source Session
Step 2 no monitor session sessionnumber all local remote
1. configure terminal
destination remote vlan vlan-id
monitor session sessionnumber
5. monitor session sessionnumber destination remote vlan vlan-id
Command or Action
Step 5 monitor session sessionnumber destination remote vlan vlan-id
Step 2 no monitor session sessionnumber all local remote
Command or Action
configure terminal
3. remote-span 4. exit
Creating an RSPAN Destination Session
5. no monitor session sessionnumber all local remote
6. monitor session sessionnumber source remote vlan vlan-id
local remote
no monitor session sessionnumber all
monitor session sessionnumber source
remote vlan vlan-id
Step 3 monitor session sessionnumber source remote vlan vlan-id
3. monitor session sessionnumber source remote vlan vlan-id
1. configure terminal
Command or Action
Enters global configuration mode
Configuring an FSPAN Session
Command or Action
1. configure terminal
Step 2 no monitor session sessionnumber all local remote
Command or Action
Example
Step 3 monitor session sessionnumber source
access-list-number name
Configuring an FRSPAN Session
5. vlan vlan-id
6. remote-span 7. exit
configure terminal
Command or Action
Enters global configuration mode
DETAILED STEPS
or FRSPAN configuration
ipv6 mac access-group access-list-number name
Monitoring SPAN and RSPAN Operations
vlan vlan-id
Example Configuring Local SPAN
SPAN and RSPAN Configuration Examples
Examples Creating an RSPAN VLAN
Feature History and Information for SPAN and RSPAN
Release
Modification
Release
defined in terms of access lists that
Modification
SPAN Destination Port Support on
I N D E