Send comments to nexus3k-docfeedback@cisco.com
-SM-120
Cisco Nexus 3000 Series NX-OS System Management Command Reference
OL-29557-04
Chapter System Management Commands
monitor session
monitor session
To create a new Switched Port Analyzer (SPAN) or an Encapsulated Remote Switched Port Analyzer
(ERSPAN) session configuration for analyzing traffic between ports, or add to an existing session
configuration, use the monitor session command. To clear SPAN or ERSPAN sessions, use the no form
of this command.
monitor session {session-number [shut | type {local | erspan-destination | erspan-source}] | all
shut}
no monitor session {session-number | all} [shut]
Syntax Description
Command Default None
Command Modes Global configuration mode
Command History
Usage Guidelines To ensure that you are working with a completely new session, you can clear the desired session number
or all SPAN sessions.
After you create an ERSPAN session, you can describe the session and add interfaces and VLANs as
sources and destinations.
This command does not require a license.
Examples This example shows how to create a SPAN session:
switch# configure terminal
switch(config)# monitor session 2
switch(config)#
session-number SPAN session to create or configure. The range is from 1 to 18.
all Specifies to apply configuration information to all SPAN sessions.
shut (Optional) Specifies that the selected session will be shut down for
monitoring.
type (Optional) Specifies the type of session to configure.
local Specifies the session type to be local.
erspan-destination Creates an ERSPAN destination session.
erspan-source Creates an ERSPAN source session.
Release Modification
5.0(3)U1(1) This command was introduced.
5.0(3)U2(2) Support for ERSPAN was added.