Software Development Kit (SDK) and API Discussions

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

ronaldmajor

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

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.
Announcements
NetApp on Discord Image

We're on Discord, are you?

Live Chat, Watch Parties, and More!

Explore Banner

Meet Explore, NetApp’s digital sales platform

Engage digitally throughout the sales process, from product discovery to configuration, and handle all your post-purchase needs.

NetApp Insights to Action
I2A Banner
Public