monitor (LAG)

Monitors an individual port in a deployed LAG.
Syntax
monitor { ethe-port-monitored stackid/slot/port | named-port-monitored name } [ ethernet stackid/slot/port ] { input | output | both }
no monitor{ ethe-port-monitored stackid/slot/port | named-port-monitored name } [ ethernet stackid/slot/port ] { input | output | both }
Command Default

Traffic is not monitored on ports.

Parameters
ethe-port-monitored stackid/slot/port
Specifies the Ethernet port to be monitored.
named-port-monitored name
Specifies the named port that you want to monitor.
ethernet stackid/slot/port
Specifies the mirror ports to be used and specifies the port to which the traffic analyzer is attached.
input
Monitors the incoming packets.
output
Monitors the outgoing packets.
both
Monitors both incoming and outgoing packets.
Modes

LAG configuration mode

Usage Guidelines

By default, when you monitor the LAG virtual interface, aggregated traffic for all the ports in the LAG is copied to the mirror port.

You can configure the device to monitor individual ports in a LAG including Ethernet ports or named ports. If a new port is added to a deployed LAG and if the entire LAG is monitored, the new port will also be mirrored by the same port monitoring traffic across the entire LAG.

Note: You can use only one mirror port for each monitored LAG port. You cannot configure mirroring on an undeployed LAG.

The no form of the command stops monitoring the traffic.

Examples

The following is an example of monitoring traffic on an individual Ethernet port within a LAG.

device(config)# lag test2 dynamic id 1
device(config-lag-test2)# ports ethernet 1/1/1 ethernet 1/1/9
device(config-lag-test2)# monitor ethe-port-monitored 1/1/1 ethernet 1/1/9 input

The following example shows the monitoring of traffic on a named port.

device(config)# lag test2 dynamic id 2
device(config-lag-test2)# ports ethernet 1/1/1 ethernet 1/1/9
device(config-lag-test2)# monitor named-port-monitored port1 both