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.

Microsoft Virtualization Discussions

Can't remove port from Default Broadcast Domain using Powershell

AllenChang
2,895 Views

When I use powershell to remove port from Default Broadcast Domain,

it show me an error message

AllenChang_0-1724052930770.png

But I can do the same thing in ontap cli

AllenChang_1-1724053008405.png

Is any thing I miss in powershell environment?

 

Thanks

 

 

 

1 ACCEPTED SOLUTION

Ashun
2,272 Views

hi

 

In the broadcast domain Default using the Set - NcNetPortBroadcastDomain remove port seems to be not possible
However, you can separate the port into a separate broadcast domain, and then use Set-NcNetPortBroadcastDomain to remove the port and delete the separate broadcast domain

 

For example

PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name Default -RemovePort cluster1-01:e0d
Set-NcNetPortBroadcastDomain : Port cannot be removed from Default Broadcast Domain

 

PS C:\Windows\system32> Split-NcNetPortBroadcastDomain -Name Default -Ipspace Default -NewName data01 -Port cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default {data01} 1500 complete


PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name data01 -RemovePort cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default 1500 complete


PS C:\Windows\system32> Remove-NcNetPortBroadcastDomain -Name data01
PS C:\Windows\system32>

View solution in original post

2 REPLIES 2

saharsh
2,655 Views

Could you please share the debug logs? This will help me to identify the root cause of the error. You can enable logs using set-natoolkitconfiguration debug.

Ashun
2,273 Views

hi

 

In the broadcast domain Default using the Set - NcNetPortBroadcastDomain remove port seems to be not possible
However, you can separate the port into a separate broadcast domain, and then use Set-NcNetPortBroadcastDomain to remove the port and delete the separate broadcast domain

 

For example

PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name Default -RemovePort cluster1-01:e0d
Set-NcNetPortBroadcastDomain : Port cannot be removed from Default Broadcast Domain

 

PS C:\Windows\system32> Split-NcNetPortBroadcastDomain -Name Default -Ipspace Default -NewName data01 -Port cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default {data01} 1500 complete


PS C:\Windows\system32> Set-NcNetPortBroadcastDomain -Name data01 -RemovePort cluster1-01:e0d

BroadcastDomain Ipspace FailoverGroups Mtu PortUpdateStatusCombined
--------------- ------- -------------- --- ------------------------
data01 Default 1500 complete


PS C:\Windows\system32> Remove-NcNetPortBroadcastDomain -Name data01
PS C:\Windows\system32>

Public