API Guide

Configure local monitoring session
1. Verify that the intended monitoring port has no configuration other than no shutdown and no switchport.
show running-configuration
2. Create a monitoring session in CONFIGURATION mode.
monitor session session-id [local]
3. Enter the source and direction of the monitored traffic in MONITOR-SESSION mode.
source interface interface-type {both | rx | tx}
4. Enter the destination of traffic in MONITOR-SESSION mode.
destination interface interface-type
Create monitoring session
OS10(config)# monitor session 1
OS10(conf-mon-local-1)#
Configure source and destination port, and traffic direction
OS10(conf-mon-local-1)# source interface ethernet 1/1/7-1/1/8 rx
OS10(conf-mon-local-1)# destination interface ethernet1/1/1
OS10(conf-mon-local-1)# no shut
View configured monitoring sessions
In the State field, true indicates that the port is enabled. In the Reason field, Is UP indicates that hardware resources are
allocated.
OS10# show monitor session all
S.Id Source Destination Dir SrcIP DstIP DSCP TTL State Reason
----------------------------------------------------------------------
1 ethernet1/1/7 ethernet1/1/1 rx N/A N/A N/A N/A true Is UP
Remote port monitoring
Remote port monitoring monitors ingress traffic, egress traffic, or both, on multiple source ports of multiple devices. It forwards
the monitored traffic to multiple destination ports on different remote devices. Remote port monitoring helps network
administrators monitor and analyze traffic to troubleshoot network problems.
In a remote port monitoring session, monitored traffic is tagged with a VLAN ID and switched on a user-defined, nonroutable L2
VLAN. The VLAN is reserved to carry only monitored traffic, which is forwarded on all egress ports of the VLAN. You must
configure each intermediate switch that participates in transporting monitored traffic with the reserved L2 VLAN. Remote port
monitoring supports monitoring sessions where multiple source and destination ports distribute across multiple network devices.
Layer 2
517