show monitor session
To display information about the Switched Port Analyzer (SPAN) or Encapsulated Remote Switched Port Analyzer (ERSPAN) sessions, use the show monitor session command.
show monitor session [ session | all [brief] | range range [brief] | status ]
Syntax Description
session |
(Optional) Number of the session. The range is from 1 to 18. |
||
all |
(Optional) Displays all sessions. |
||
brief |
(Optional) Displays a brief summary of the information. |
||
range range |
(Optional) Displays a range of sessions. The range is from 1 to 18. |
||
status |
(Optional) Displays the operational state of all sessions.
|
Command Default
None
Command Modes
EXEC mode
Command History
Release |
Modification |
---|---|
6.0(2)N1(1) |
This command was introduced. |
Examples
This example shows how to display information about SPAN session 1:
switch# show monitor session 1
session 1
---------------
description : A Local SPAN session
type : local
state : down (No operational src/dst)
source intf :
rx : Eth1/5
tx : Eth1/5
both : Eth1/5
source VLANs :
rx :
source VSANs :
rx :
destination ports : Eth1/21
Legend: f = forwarding enabled, l = learning enabled
switch#
This example shows how to display a brief information about a SPAN session:
switch# show monitor session range 1 brief
session 1
---------------
description : A Local SPAN session
type : local
state : down (No operational src/dst)
source intf :
rx : Eth1/5
tx : Eth1/5
both : Eth1/5
source VSANs :
destination ports : Eth1/21
Legend: f = forwarding enabled, l = learning enabled
switch#
This example shows how to display the information about an ERSPAN session:
switch# show monitor session 1
session 1
---------------
description : ERSPAN Source configuration
type : erspan-source
state : down (No valid global IP Address)
flow-id : 1
vrf-name : default
destination-ip : 192.0.2.1
ip-ttl : 255
ip-dscp : 0
origin-ip : origin-ip not specified
source intf :
rx : Eth1/5
tx : Eth1/5
both : Eth1/5
source VLANs :
rx : 5
switch#