I am playing around with ISCSI and MPIO. I can get the iscsi connection information from the 'Get-IscsiConnection' cmdlet. It gives the target portals the initiator is connected to. Then I have the mpclaim -v command which gives me the current state of paths. In my case I have one active/optimised path and the other standby paths. This information about the mpio path states is shown with respect to Path Ids. I want a way to know which connection/target portal does this path Id correspond to. In GUI, the mpio tab of iscsi initiator window has this information. Do we have a way to obtain this info through power shell ?
Reference for output of mpclaim -v :
MPIO Storage Snapshot on Tuesday, 05 May 2009, at 14:51:45.023 Registered DSMs: 1 ================+--------------------------------|-------------------|----|----|----|---|-----+ |DSM Name | Version |PRP | RC | RI |PVP| PVE | |--------------------------------|-------------------|----|----|----|---|-----| |Microsoft DSM |006.0001.07100.0000|0020|0003|0001|030|False|+--------------------------------|-------------------|----|----|----|---|-----+ Microsoft DSM ============= MPIO Disk1: 02 Paths, Round Robin, ALUA Not Supported SN: 600D310010B00000000011 Supported Load-Balancing Policy Settings: FOO RR RRWS LQD WP LB Path ID State SCSI Address Weight --------------------------------------------------------------------------- 0000000077030002 Active/Optimized 003|000|002|000 0 Adapter: Microsoft iSCSI Initiator... (B|D|F: 000|000|000) Controller: 46616B65436F6E74726F6C6C6572 (State: Active) 0000000077030001 Active/Optimized 003|000|001|000 0 Adapter: Microsoft iSCSI Initiator... (B|D|F: 000|000|000) Controller: 46616B65436F6E74726F6C6C6572 (State: Active) MPIO Disk0: 01 Paths, Round Robin, ALUA Not Supported SN: 600EB37614EBCE8000000044 Supported Load-Balancing Policy Settings: FOO RR RRWS LQD WP LB Path ID State SCSI Address Weight --------------------------------------------------------------------------- 0000000077030000 Active/Optimized 003|000|000|000 0 Adapter: Microsoft iSCSI Initiator... (B|D|F: 000|000|000) Controller: 46616B65436F6E74726F6C6C6572 (State: Active) Microsoft DSM-wide default load-balancing policy settings: Round Robin No target-level default load-balancing policy settings have been set.
The reference for iscsi connection and session info:
PS C:\> Get-IscsiConnection
ConnectionIdentifier : ffffe001e67f4020-29f
InitiatorAddress : 0.0.0.0
InitiatorPortNumber : 44996
TargetAddress : 10.120.34.12
TargetPortNumber : 3260
PSComputerName :
ConnectionIdentifier : ffffe001e67f4020-2a0
InitiatorAddress : 0.0.0.0
InitiatorPortNumber : 46020
TargetAddress : 10.120.34.13
TargetPortNumber : 3260
PSComputerName :
ConnectionIdentifier : ffffe001e67f4020-2a1
InitiatorAddress : 0.0.0.0
InitiatorPortNumber : 47044
TargetAddress : 10.120.34.14
TargetPortNumber : 3260
PSComputerName :
ConnectionIdentifier : ffffe001e67f4020-2a2
InitiatorAddress : 0.0.0.0
InitiatorPortNumber : 46788
TargetAddress : 10.120.34.15
TargetPortNumber : 3260
PSComputerName :
PS C:\>I basically want to know which target portal does this pathid "0000000077030002" correspond to ?