Microsoft Virtualization Discussions
Microsoft Virtualization Discussions
When I use powershell to remove port from Default Broadcast Domain,
it show me an error message
But I can do the same thing in ontap cli
Is any thing I miss in powershell environment?
Thanks
Solved! See The Solution
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>
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.
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>