Alternative to GetFcpTargetMapping Method

On windows 2008, with latest Emulex driver version 10.2.370.18 the GetFcpTargetMapping method fails with the below error.

Exception calling "GetFcpTargetMapping" : "Not supported "
        $fcpMappingResult = $hbaFCPInfoInstance.GetFcpTargetMapping <<<< ($hbaPortDetails.Item($i)."PortWWNOrig", 1024);
  + CategoryInfo          : NotSpecified: (:) [], MethodInvocationException
  + FullyQualifiedErrorId : WMIMethodException

I cannot use FCInfo.exe and looking for alternatives by powershell way. Kindly suggest.


January 20th, 2015 3:32pm

Is that the error when running FCInfo.exe, or from a powershell script?

Also, what does FCInfo do that you would like to do with Powershell?

Free Windows Admin Tool Kit Click here and download it now
January 20th, 2015 3:34pm

I'm trying to map HBA information with storage information. Win32_DiskDrive with the HBA API classes. I want to know the target port wwn of the disk drive. Also the HBA port wwn to which the connectivity is established.

This error is when i run the powershell code. Not to do any with FCInfo.exe

The approach followed to map Win32_DiskDrive with HBA API classes is in

http://download.microsoft.com/download/9/c/5/9c5b2167-8017-4bae-9fde-d599bac8184a/FCTopology.doc

  • Edited by pk_hafeez Tuesday, January 20, 2015 3:42 PM
January 20th, 2015 3:38pm

I am not sure, so I would search the gallery to see if someone already has something written that you can utilize

Here is one, but not sure if it retrieves all information you need. Find HBA and WWN

Free Windows Admin Tool Kit Click here and download it now
January 20th, 2015 3:47pm

I got this working when i change 1024 to 512. So i added a retry logic by catching exception when 1024.
May 21st, 2015 1:43pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics