Software Development Kit (SDK) and API Discussions

Trying to change IPspace of a port in the 9.1 simulator using Powershell 4.4.

ronaldmajor
1,980 Views

I am trying to change the IPspace of a cluster port to Default on ports e0a and e0b on the 9.1 simulator but it does not work.

 

 

Set-NcNetPort -Name e0a -Node localhost -Ipspace Default


Set-NcNetPort : You must provide one or more values to apply your changes.
At line:1 char:1
+ Set-NcNetPort -Name e0a -Node localhost -Ipspace Default
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidOperation: (192.168.146.21:NcController) [Set-NcNetPort], EINVALIDINPUTERROR
    + FullyQualifiedErrorId : ApiException,DataONTAP.C.PowerShell.SDK.Cmdlets.Net.SetNcNetPort

 

 

 

The cluster shell command works.

 

network port modify -node localhost -port e0a -ipspace Default

 

1 REPLY 1

asulliva
1,903 Views

I would suggest using the actual node name instead of "localhost".

 

Also, maybe try pipelining?

 

Get-NcNetPort -Node <node name> -Name e0a | Set-NcNetPort -Ipspace Default

Andrew

If this post resolved your issue, please help others by selecting ACCEPT AS SOLUTION or adding a KUDO.
Public