Subscribe

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

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

 

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

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.