Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Mute
- Printer Friendly Page
Can't remove port from Default Broadcast Domain using Powershell
2024-08-19
12:37 AM
996 Views
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
1 ACCEPTED SOLUTION
AllenChang has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>
2 REPLIES 2
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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.
AllenChang has accepted the solution
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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>