NetApp Community Update
This site will enter Read Only mode on July 23 as we prepare to move to a new platform. You will still be able to view content, but posting and replying will be temporarily disabled.
We're excited to launch our new Community experience on July 30 and more information will follow soon.
Stay connected during the transition - Join our Discord community today.

Software Development Kit (SDK) and API Discussions

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

ronaldmajor
2,508 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
2,431 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