beautypg.com

41 mirror control show command – DSS Networks 8261-RTM User Manual

Page 53

background image

Gigabit Ethernet Metro-Switch

Board and Firmware Users Manual

DSS NETWORKS, INC.

Version: 1.14g

Page: 53

mirror-to-port. This specifies the local port to which the mirrored packets are
being sent.

Destination bitmap specifying which ports are mirrored on egress.

Preserve format. When set, packets that are mirrored will be the same
tagged/untagged format (at the mtp) as the ingress packet. When clear, the format of
the mirrored packet is determined by the VLAN. This argument is optional. When
omitted it is set implicitly.

Note: To make the settings effective, the configuration has to be saved and the switch
has to be reset.

Usage example:


metro-sw> mirctl set 3 0 0xff0


The above command will set the mirror control register for port 3. All incoming packets
on port 3 with destination port 11-4 will be mirrored to port 0. The preserve format bit is
set implicitly.

9.1.41 MIRROR CONTROL SHOW COMMAND


The ‘mirctl show’ command is used to display the modified values of the port mirror
control register.

metro-sw> mirctl show


Usage example:


metro-sw> mirctl show 3
Mirror Control Register
link reg fmt mtp DSTmap
0x03 0x00140ff0 0x1 0x00 1111 1111 0000 [0xff0]

metro-sw> mirctl show all
Mirror Control Register
link reg fmt mtp DSTmap
0x01 0x0014000c 0x1 0x00 0000 0000 1100 [0x00c]
0x03 0x00140ff0 0x1 0x00 1111 1111 0000 [0xff0]
0x0b 0x000487ff 0x0 0x02 0111 1111 1111 [0x7ff]


reg: 32 bit register value.

fmt: Preserve format flag.

mtp: Mirror-to-port.