M Commands
monitor session
276
Cisco Nexus 7000 Series NX-OS System Management Command Reference
OL-25806-03
monitor session
To enter the monitor configuration mode for configuring Encapsulated Remote Switched Port Analyzer
(ERSPAN) or an Ethernet Switched Port Analyzer (SPAN) session for analyzing traffic between ports,
use the monitor session command. To disable an ERSPAN or an SPAN session(s), use the no form of
this command.
monitor session {session_number | all} {rx | tx | type [erspan-source | erspan-destination | local]
| shut}
no monitor session {session_number | all} [shut]
Syntax Description
Defaults None
Command Modes Global configuration mode (config)
Supported User Roles Super user
VDC administrator
VDC user
Command History
Usage Guidelines While configuring an ERSPAN source session, if rx, tx, or both keywords are not entered, the source is
configured for both directions.
session_number Session number to use for monitoring a switched port. The range is from 1 to
48.
all Specifies all sessions for monitoring a switched port.
rx Specifies an ingress-extended SPAN session.
tx Specifies an egress-extended SPAN session.
type Specifies a session type. A session type can be local, erspan-source, or
erspan-destination.
erspan-source (Optional) Creates an ERSPAN source session.
erspan-destination (Optional) Creates an ERSPAN destination session.
local (Optional) Creates a local session.
shut Specifies a shut state for the selected session.
Release Modification
6.2(2) Added the rx, tx, and shut keywords.
5.1(1) The number of sessions has been increased to 48.
4.0(1) This command was introduced.