beautypg.com

Set switch port mirror – Allied Telesis AT-S39 User Manual

Page 93

background image

AT-S39 Command Line Interface User’s Guide

93

SET SWITCH PORT MIRROR

Syntax

set switch port=port mirror=yes|all|no|none

Parameters

ports

Specifies the source port(s) to be added or removed
from an existing port mirror. The ports can be
specified individually (e.g., 1,2), a range (e.g., 2-3), or
both (1,4,7-9).

mirror

Specifies whether the source port is to be added or
removed. Values are:

yes, all

Adds the port as a source port to the
port mirror. The values are equivalent.

no, none

Removes the port as a source port from
the port mirror. The values are
equivalent.

Description

This command adds and removes source ports from an existing port
mirror. This command performs the same function as the ADD SWITCH
MIRROR command when adding source ports, and the DELETE SWITCH
MIRROR command when removing ports.

To initially create a port mirror, refer to the CREATE SWITCH MIRROR
command. To view the ports of an existing port mirror, use the SHOW
SWITCH command. To change the mirror’s destination port (that is, the
port where the traffic is being copied to), use the SET SWITCH MIRROR
command. To completely delete a port mirror, refer to DESTROY
MIRROR.

Examples

The following command adds Port 10 to an existing port mirror:

set switch port=10 mirror=yes

The following command removes Port 11 from the port mirror:

set switch port=11 mirror=no