Send feedback to nx5000-docfeedback@cisco.com
1-3
Cisco Nexus 5000 Series Switch CLI Software Configuration Guide
OL-16597-01
Chapter 1 Configuring SPAN
Configuring SPAN
• Configuring the Destination Port, page 1-4
• Configuring Source Ports, page 1-5
• Configuring Source Port Channels, VLANs, or VSANs, page 1-5
• Configuring the Description of a SPAN Session, page 1-6
• Suspending or Activating a SPAN Session, page 1-7
• Displaying SPAN Information, page 1-7
Creating and Deleting a SPAN Session
You create a SPAN session by assigning a session number using the monitor command. If the session
already exists, any additional configuration is added to that session.
To create a SPAN session, perform this task:
The following example shows creating a SPAN session:
switch# configure terminal
switch(config)# monitor session 2
To ensure that you are working with a completely new session, you can delete the desired session number
or all SPAN sessions.
To delete SPAN sessions, perform this task:
Command Purpose
Step 1
switch# configure terminal
Enters global configuration mode.
Step 2
switch(config)# monitor session
session-number
Enters the monitor configuration mode. New session
configuration is added to the existing session
configuration.
The session-number can be from 1 to 18. You can
configure up to 18 sessions; however you can have
only 2 sessions active at a time.
When you configure more than two SPAN sessions,
the first two sessions are active. During startup, the
order of active sessions is reversed; the last two
sessions are active. For example, if you configured ten
sessions 1 to 10 where 1 and 2 are active, after a
reboot, sessions 9 and 10 will be active. To enable
deterministic behavior, explicitly suspend the
sessions 3 to 10 with the monitor session
session-number shut command.
Command Purpose
switch(config)# no monitor session {all
| session-number}
Deletes the configuration of the specified SPAN
session or all sessions.