Hello everybody, I'm trying to get LUN WWN with PowerShell and I faced with issue.
At PS side:
PS C:\> Get-NaLunSerialNumber /vol/AIX_TEST/AIX_TEST
D0zdE+CP/KHo
PS C:\> Get-NaLunTargetDeviceId -serialnumber "D0zdE+CP/KHo" -Protocol fcp
Get-NaLunTargetDeviceId : Extra input: protocol
At line:1 char:24
+ Get-NaLunTargetDeviceId <<<< -serialnumber "D0zdE+CP/KHo" -Protocol fcp
+ CategoryInfo : InvalidOperation: (xx.xx.xx.xx:NaController) [Get-NaLunTargetDeviceId], EINVALIDINPUTERROR
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Lun.GetNaLunTargetDeviceId
At controller side:
fas-bottom1> Wed AprWed Apr 10 16:34:37 VOLT 10 16: [fas-bottom1:api.input.invalidSchema:warning]: Error in API input schema validation. API name: lun-get-target-device-id. Detailed error: Extra input: protocol.
34:37 VOLT [fas-bottom1:api.input.invalidSchema:warning]: Error in API input schema validation. API name: lun-get-target-device-id. Detailed error: Extra input: protocol.
As you can see I did mark "Extra input: protocol", because if I try to use Get-NaLunTargetDeviceId without -Protocol I get this:
PS C:\Distr> Get-NaLunTargetDeviceId -serialnumber "D0zdE+CP/KHo"
cmdlet Get-NaLunTargetDeviceId at command pipeline position 1
Supply values for the following parameters:
(Type !? for Help.)
Protocol: fcp
Get-NaLunTargetDeviceId : Extra input: protocol
At line:1 char:24
+ Get-NaLunTargetDeviceId <<<< -serialnumber "D0zdE+CP/KHo"
+ CategoryInfo : InvalidOperation: (xx.xx.xx.xx:NaController) [Get-NaLunTargetDeviceId], EINVALIDINPUTERROR
+ FullyQualifiedErrorId : ApiException,DataONTAP.PowerShell.SDK.Cmdlets.Lun.GetNaLunTargetDeviceId
Suggestions?