642 Port Monitor Commands
monitor session
Use the monitor session command in Global Configuration mode to
configure a probe port and a monitored port for monitor session (port
monitoring). Use the src-interface parameter to specify the interface to
monitor. Use rx to monitor only ingress packets, or use tx to monitor only
egress packets. If you do not specify an {rx | tx} option, the destination port
monitors both ingress and egress packets. Use the destination interface to
specify the interface to receive the monitored traffic. Use the mode parameter
to enabled the administrative mode of the session. If enabled, the probe port
monitors all the traffic received and transmitted on the physical monitored
port.
Use the no form of the command to remove the monitoring session.
Syntax
monitor session

session_number

{source interface

interface–id

[rx | tx] |
destination interface

interface–id

}
no monitor session

session _number

— Session identification number.
interface–id
— Ethernet interface (Range: Any valid Ethernet Port), CPU
interface. CPU interface is not supported as a destination interface.
rx
— Monitors received packets only. If no option specified, monitors both
rx and tx.
tx
— Monitors transmitted packets only. If no option is specified, monitors
both rx and tx.
•Use the
mode
keyword to enable the session monitoring.
Default Configuration
Monitor sessions are not enabled by default.
Command Mode
Global Configuration mode
monitor session show monitor session
2CSPC4.XCT-SWUM2XX1.book Page 642 Monday, October 3, 2011 11:05 AM