set mirror ports (S-, K-Series)

Use this command to associate one or more ports with a mirror destination.

Syntax

set mirror ports port-string control-index-list [append]

Parameters

port-string Port or range of ports to be associated with this mirror destination. You can associate physical ports or LAGs with a mirror destination, but you cannot associate both in the same mirror destination.
control-index-list The index number (1–255) that identifies the mirror destination.
append (Optional) Append this information to the previously entered mirror destination. Not using the append parameter will overwrite what you have previously configured for the mirror destination.

Defaults

None.

Mode

All command modes.

Example

This example shows how to associate port ge.1.1 with mirror destination 25 without overwriting any previous port associations:

System(rw)->set mirror ports ge.1.1 25 append