HP StorageWorks Fabric OS 5.3.x administrator guide (5697-0244, November 2009)

Fabric OS 5.3.0 administrator guide 331
Creating, deleting, and displaying port mirroring
The following section describes how to use the port mirroring feature in the fabric.
The method for adding a port mirror connection between two local switch ports and between a local
switch port and a remote switch port is the same.
To add a port mirror connection
1. Log in to the switch as admin.
2. Type portMirror --add
slotnumber/portnumber SourceID DestID
The configuration database keeps information about the number of port mirror connections configured on
a switch, the number of chunks of port mirroring data that are stored, and the chunk number. When
removing a mirror connection, always use this method to ensure that the data is cleared. Deleting a
connection removes the information from the database.
To delete a port mirror connection between two local switch ports or a local and a
remote switch port
1. Log in to the switch as admin.
2. Type portMirror --del
SourceID DestID
.
For example, to delete the port mirror connection on mirror port 2, you might type:
portMirror --del 0x011400 0x240400
To display port mirror connections
1. Log in to the switch as admin.
2. Type portMirror --show
You should see output similar to the following:
switch:admin> portmirror --show
Number of mirror connection(s) configured: 4
Mirror_Port SID DID State
----------------------------------------
18 0x070400 0x0718e2 Enabled
18 0x070400 0x0718e3 Enabled
18 0x070400 0x0718ef Enabled
18 0x070400 0x0718e0 Enabled