Remove Stale NSX Segments from vCenter Network Inventory
book
Article ID: 369037
calendar_today
Updated On:
Products
VMware NSX
Issue/Introduction
NSX Segment is showing under the vCenter Network Inventory
Validated NSX Segment is unable to be found from within the NSX UI
Validated the NSX Segment is not showing up when running the following API Call - "GET https://nsxManager_Ip/api/v1/logical-ports".
Port groups shown in vCenter are not present on the ESXi hosts, verified with 'esxcfg-vswitch -l'
Environment
VMware NSX-T Datacenter
VMware NSX
VMware vCenter Server
Resolution
If it is confirmed that the NSX Segment is stale in the vCenter Network Inventory, proceed with the following steps:
Note: It is advised to take a backup of the vCenter before proceeding with the following steps:
Identify the dvs-id by selecting the DVS in which the segment is a part of and view the ID from the Browser URL. You should see text in a format similar to the following:
The dvs-id value to use is the portion before the :, i.e. dvs-######
Identify the dvportgroup-id by selecting the stale NSX segment from the vCenter network inventory and grabbing the ID from the browser URL. You should see text in a format similar to the following: