How to extract Virtual Machine network allocations, Portgroup names, and VLAN IDs directly from the vCenter Server database
search cancel

How to extract Virtual Machine network allocations, Portgroup names, and VLAN IDs directly from the vCenter Server database

book

Article ID: 444269

calendar_today

Updated On:

Products

VMware vCenter Server

Issue/Introduction

Administrators may require a comprehensive report detailing all virtual machines (VMs), the specific portgroups they are connected to, and the associated VLAN IDs or trunk ranges across the infrastructure. Generating this manually via the vSphere Client can be highly time-consuming in large-scale environments.

This article provides a centralized SQL query that can be executed directly against the vCenter Server Appliance database (VCDB) to gather this inventory mapping.

Environment

VMware vCenter Server

Cause

Standard vSphere interface views separate virtual machine inventories from deep network properties, requiring an aggregated database join to consolidate VM names, portgroup names, and VLAN assignments into a single report.

Resolution

To safely extract this information or for advanced troubleshooting, open a Broadcom Technical Support case. For more information, see How to Submit a Support Request