With the introduction of Flexports the location of the MirrorView front-end port is not always the last port on the SP. Sometimes you’ll find it quicker to identify the MirrorView port through the use of naviseccli. Here’s how to do it.
If you don’t have the MirrorView enabler installed on the array, but want to keep the port aside for when you do, use the ioportconfig command to identify any ports marked as Special in Port Usage – these ones are MirrorView ports.
C:\>naviseccli -h 256.256.256.256 ioportconfig -list > c:\tmp\array_ports.txt
SP ID: A
I/O Module Slot: 1
I/O Module Type: Fibre Channel
I/O Module State: Present
I/O Module Substate: Good
I/O Module Power state: On
I/O Carrier: No
Information about each port on this I/O module:
Physical Port ID: 0
Port Role: BE
Logical Port ID: 2
Port Usage: Normal
Port Type: Fibre Channel
Port State: Enabled
Port Substate: Good
Is Persisted: Yes
Physical Port ID: 1
Port Role: BE
Logical Port ID: 3
Port Usage: Normal
Port Type: Fibre Channel
Port State: Enabled
Port Substate: Good
Is Persisted: Yes
Physical Port ID: 2
Port Role: FE
Logical Port ID: 2
Port Usage: Normal
Port Type: Fibre Channel
Port State: Enabled
Port Substate: Good
Is Persisted: Yes
Physical Port ID: 3
Port Role: FE
Logical Port ID: 3
Port Usage: Special
Port Type: Fibre Channel
Port State: Enabled
Port Substate: Good
Is Persisted: Yes
If you have the MirrorView enabler installed the port command is all you need. This is a handy command with some pretty verbose output, and provides information on the total number of attached initiators, amongst other things.
C:\>naviseccli -h 256.256.256.256 port -list -sp -all > c:\tmp\array_port_list.txt
[snip]
SP Name: SP B
SP Port ID: 3
SP UID: 50:06:01:60:BB:20:36:C1:50:06:01:6B:3B:20:36:C1
Link Status: Up
Port Status: Online
Switch Present: YES
Switch UID: 20:09:00:0D:EC:5A:FA:81:20:CB:00:0D:EC:5A:FA:80
SP Source ID: 852207
ALPA Value: 0
Speed Value : 4Gbps
Auto Negotiable : NO
Available Speeds:
1Gbps
2Gbps
4Gbps
Auto
Requested Value: Auto
MAC Address: Not Applicable
SFP State: Online
Reads: 0
Writes: 641452077
Blocks Read: 0
Blocks Written: 3126242880
Queue Full/Busy: 0
I/O Module Slot: 1
Physical Port ID: 3
Usage: Mirrorview
Of course you can always look at the ports in Unisphere – check out an old post I did a little while ago for information on how to do that.