Seven ESXi hosts, a vSAN cluster, an NSX Manager cluster with two edges, an NSX ALB controller, a vCloud Director cell, a Veeam server, a three-node Proxmox cluster, a three-node Hyper-V failover cluster, two top-of-rack switches, and the iLO and iDRAC boards behind the servers. That is the dummy site in the screenshots, and the point of the tool is that one page shows how all of it hangs together: which VM sits on which port group, which vmnic lands on which switch port, which LUN is behind which datastore, which backup job protects which VM, and what breaks when one host, one switch, or one site goes away.
I build it in my own time, in my home lab. It is separate from the migration tool I built at work. That one belongs to Leaseweb, measures environments against VCF 9, and writes migration workbooks; this one doesn’t plan just migrations. It is an inventory and design tool: every object gets a logical diagram of what the virtual layer builds, and a physical one of how it is cabled and where the data goes.
Anyone who runs more than one environment knows the problem: the information exists, but it is spread across five consoles that don’t talk to each other, and none of them keeps the answer once you close the window. vCenter knows which host a VM runs on and which port group it uses, but not which switch port the uplink lands on. The switch knows the port and the MAC on it, but not the VM. Veeam knows the restore points, but not that the repository sits on the same datastore as the VMs it protects. NSX knows the transport node, but not that two manager nodes share one ESXi host. Every question that crosses those two systems is answered by a person who logs in to both and joins the data in their head, and the answer is gone as soon as they move on. As an example, at Leaseweb I do this across dozens of sites, each with its own vCenter and most with an NSX Manager, a vCloud Director cell and a Veeam server, and the routine is always the same: find the site, open the jump host, log in to the right console, click to the object, write it down. When a NIC or switch port fails, the question reverses: what runs behind it, and that’s where the consoles are worst. The tool exists to do the join once, at scan time, and keep it: open the environment, see its logical and physical design, and drill from a failed port to the host, the uplinks, the port groups, and the VMs in a few clicks, with the answer from the last scan still there when the next person asks.
What I am trying to build is the junction of three views that normally live apart: the physical environment (servers, NICs, cables, switch ports, storage targets), the virtual environment (hosts, virtual switches, datastores, VMs), and the logical environment (port groups, VLANs, segments, gateways, backup jobs, policies). Each console shows one of them well. The tool cross-connects the three, so that every object in one view is linked to what it depends on in the other two, and draws how each segment connects to the next: VM to port group, port group to virtual switch, uplink to switch port, datastore to LUN to target, job to proxy to repository. The site design is where the three meet, and that is what the tool draws.
The Platform – Infrastructure Portal
The tool still has no public name. The page title says Infrastructure Portal, so that is what I call it below.
This is part 1 of two. It covers the rules the tool follows, how it collects, and the vSphere side: vCenter, vSAN, and NSX. Part 2 covers NSX ALB, vCloud Director, Veeam, Proxmox, Hyper-V, the switches and management boards, the views that work across platforms, and the Site Scanner for sites the tool cannot reach.
Four rules every page follows
The portal reads. It never writes to any system it connects to. Every collector uses the vendor’s own API with a read-only account; there is no agent on any host, and the maintenance checklists it produces are text to copy, not actions to run.
It works from scans, not live telemetry. A scan is a snapshot of every connected system, written to disk and kept for 30 snapshots by default. Changes, alerts, trends, and the object timelines are differences between snapshots, so their resolution is the scan interval. A system that doesn’t respond keeps the data from its last good scan, marked stale with the reason and the time.
Facts and inferences stay apart. “Six findings first appeared in the same scan, and all six objects depend on switch tor-a1” is a sentence the portal will write. “Switch tor-a1 caused them” is not.
Missing data is Unknown, never No. When the vSAN API does not return a disk’s health, the page says so instead of painting it green. Every conclusion carries a “Based on” line underneath: which scans it rests on, how old they are, and what was not available.
How it collects
The Connections page holds one entry per system: vCenter, NSX Manager, NSX ALB controller, vCloud Director cell, Veeam Backup & Replication server, Proxmox cluster, Hyper-V cluster, physical switch, and server management board. Each entry has its own credentials, stored encrypted, and its own TLS policy: system trust, a private CA, a pinned certificate fingerprint, or explicitly insecure for a lab appliance. The portal listens on localhost only, with an optional sign-in.
vCenter is read over REST plus the VI JSON API on 8.0 U1 and later, and over the SOAP API through pyVmomi on 6.5, 6.7 and 7.0, so an older vCenter gives the same pages. NSX uses the Policy API, ALB and vCloud use their REST APIs, Veeam its REST API, Proxmox an API token, Hyper-V WinRM through a read-only JEA endpoint (or a node administrator without it), switches SNMP v2c or v3, and the boards Redfish on HPE iLO 4, 5 and 6, Dell iDRAC and Lenovo XClarity.
Where the passwords live
A tool that logs in to every system of a site holds the most valuable credentials in the building, so this deserves its own section.
The inventory file, data/inventory.json, holds the systems without passwords: name, address, zone, user, certificate policy. The passwords go to a separate file, data/vault.json, encrypted with Fernet from the Python cryptography package (AES-128 in CBC mode with an HMAC-SHA256 tag) under one random key. They are never written to a log, never sent to the browser, and the JSON export of the inventory excludes them.
The key determines how safe that file is. On Windows, the key is wrapped with DPAPI for the Windows account that runs the tool on that computer and stored as data/vault.key.dpapi. A copy of the folder, a backup, or a ZIP taken to another computer, or opened by another account on the same computer, cannot unlock the vault. On Linux and macOS, the key is a plain file, data/vault.key, readable by the owner only, and anyone who copies both files can decrypt the passwords, so the folder is what protects them there. The data folder itself is restricted to the account that runs the tool (plus SYSTEM on Windows, for backup and antivirus software), and the start-up line says which key protection applies.
A stored password belongs to one identity: the type, FQDN and IP it was saved for, and the account. Change any of those without typing the password in the same save and the stored password is removed, so a saved password cannot be redirected to another address. The connection test uses the saved address and account only, never an address typed into the request. If a certificate check fails, the login stops before any password leaves the tool.
If the vault cannot be unlocked, for example, if the folder was copied from another computer or account, or an administrator reset the account’s Windows password, the tool starts with –reset-vault: the inventory stays, the old vault is moved aside, and the passwords are typed again. The old vault isn’t recovered, which is the point.
Sign-in, when switched on, keeps only a scrypt hash of the portal password; the session cookie is HttpOnly and SameSite=Strict, and ten wrong passwords pause sign-in for five minutes. The tool listens on localhost only; a listen address on another interface is refused at start.
vCenter
The vCenter page is where most of the clicking happens. The header tiles answer the first questions: how many hosts, clusters, and VMs; the fullest datastore; which hosts have the wrong NTP servers; which certificates expire within 30 or 90 days; how many security findings and at what severity; and whether the clusters still fit after losing one host. Linked systems appear underneath: the NSX Manager registered in this vCenter with its transport node and firewall state, and the ALB controller with its virtual services and Service Engines. The vCenter scan itself reads one PropertyCollector call for hosts, clusters, datastores, distributed switches and port groups, VMs and opaque networks, then per host the CDP and LLDP neighbors and the host certificate, plus the REST side for version, topology, vCenter HA, vLCM image or baselines per cluster, and the certificates.
The tabs under the header are the inventory by object type, and each one carries a dot when something in it needs a look: hosts, clusters, VMs, datastores, power, vSAN, switches, VLANs, alarms, events, performance, changes, design and failures, and then NSX, NSX ALB, vCloud and Veeam embedded for the systems linked to this vCenter, NTP, certificates and security. The VLANs tab is the one I use most in an unfamiliar environment: type a VLAN ID, and it lists every port group that carries it, the hosts, the active and standby uplinks from the teaming policy, the physical switch port of each uplink with the native VLAN it reports, and the VMs and VMkernels on it; a port group whose VLAN is the native VLAN of its switch port is flagged, because that is the configuration that works until someone fixes the switch.
Every object in the tables opens its own page: host, VM, cluster, datastore, port group, distributed switch, VMkernel, physical NIC, storage adapter, LUN, iSCSI target, physical switch, and switch port. The host page has two diagrams. The logical one draws what the virtual layer builds: each VM adapter and VMkernel on the left, the port groups with their VLAN ids, the standard and distributed switches, the host with its uplinks, and on the right the physical switch ports that CDP or LLDP reported for each vmnic, with the native VLAN of the port. Click a VM and its path to the cable lights up.
The physical view reverses the data and shows how the host is cabled: vmnic by vmnic, speed, switch and port, and which uplink is active and which is standby. Above it, the uplink map says whether the uplinks of this host land on two physical switches or on one, which is the question behind every “we have redundant uplinks” that turns out to be two cables into the same switch. CDP is preferred, and LLDP fills the gaps; a host that reports neither gets an empty column and a note, never a guess.
Storage gets the same two views. A host storage path runs from the uplink and its switch port through the VMkernel with its iSCSI port binding, the software adapter, the storage targets, the LUNs, and the datastores on them; a dashed line is a path that is not active. From a datastore, the drawing turns around: every VM disk on it, the LUN behind it, each host’s adapter and its paths, and the targets they reach. Paths and targets come from the hosts (multipath information and port binding); nothing is read from the storage system itself.
The VM page collects what otherwise takes five vCenter screens: adapters with their port groups and VLANs, disks with their datastores and controllers, the logical diagram from the VM down to the switch port and the storage system, the NSX distributed firewall rules that apply to this VM in processing order, the Veeam jobs that protect it with the last restore point, triggered alarms, the last seven days of events, and the performance charts.
Capacity and N+1 is a separate view of the same scan. Per cluster, it shows used and allocated CPU, memory, and storage against thresholds; the 30-day average, P95, and maximum from vCenter statistics; vCPU per core; and what happens when the cluster loses its one or two largest hosts. The verdict uses the higher of the current load and the 30-day P95, which is the number that matters during a maintenance window.
On the Impact tab of a host, the dependency graph pays off. Behind every snapshot, the portal builds one graph: VM runs on host, uses port group, uses datastore, protected by job; host member of cluster, uplinked to switch port, mounts datastore, transport node of NSX; datastore backed by LUN, NFS export or vSAN. Each relationship records its source and how it was found (API field, CDP, LLDP, MAC table, name or IP match). The Impact tab walks that graph for one host and writes down what stops, what loses redundancy, what moves or fails over, and a maintenance checklist to copy or download. The checklist lists what to do; the portal changes nothing.
The same engine answers the same question for a physical switch, a datastore, a whole site, and a customer: which VMs, hosts, and backup components share the thing that fails. The risk levels run from 0 to 4 plus unknown, and unknown is used: a datastore whose mounts the tool could not see produces “not known”, never “safe”.
Two more host tabs read the snapshot history instead of one scan. Peers compares a host with the other hosts of its cluster on the attributes where “peer” means something: ESXi build, physical NIC count and speed, distributed switch membership and uplinks, VMkernel services, VLANs and MTU, datastores presented, NTP, syslog, Secure Boot and lockdown; a difference is shown as a difference (“differs from 5 of 6 peers”, “missing: ds-nfs-01”), an outlier needs a majority of more than half, and one host can be marked as the reference for its cluster. Timeline is the object’s history: what changed between consecutive snapshots, the alerts raised and cleared, and the vCenter events for that object, with a resolution of one scan interval.
Security checks run with every vCenter scan: patch level against the critical VMware advisories, SSH and ESXi Shell state, lockdown mode, idle timeouts, account lockout, the SSH firewall rule, MOB, syslog, Secure Boot, port group security policies, root-level permissions, VM snapshots and Tools, and the vCenter appliance itself. A finding accepted on purpose is listed in vCenter configuration and shows as accepted instead of failed.
Security checks run with every vCenter scan: patch level against the critical VMware advisories, SSH and ESXi Shell state, lockdown mode, idle timeouts, account lockout, the SSH firewall rule, MOB, syslog, Secure Boot, port group security policies, root-level permissions, VM snapshots and Tools, and the vCenter appliance itself. A finding accepted on purpose is listed in vCenter as accepted rather than failed.
vSAN
A vSAN cluster is the part of a vSphere environment where “it looks fine in vCenter” and “it will survive the next host failure” are furthest apart. The capacity number in vCenter is raw capacity; what matters is how much a new VM with a given storage policy can still use, and whether vSAN has room to rebuild after a host is lost. The vSAN page is built around those two questions.
Everything on the page comes from the vSAN Management API, read in the same vCenter scan: the cluster health summary from vCenter’s cache (VsanQueryVcClusterHealthSummary, so the score and the checks are vSAN’s own, not something the tool invents), the space report (VsanQuerySpaceUsage) with the what-if per storage policy, the object identities and their policy compliance, the resync queue, 24 hours of cluster performance from the vSAN performance service, the disks per host with their health, the stretched-cluster configuration where there is one, and the silent checks. Every call is a query; the tool has no code path that changes a vSAN setting.
The overview puts the answers in six tiles: the health score with when vCenter last checked it, raw capacity used, free space for new VMs with the default policy, objects not healthy, resync in progress, and 24-hour IOPS with latency. Under the tiles, capacity by use splits the raw number into VM disks, swap, home folders, file system and checksum overhead, the host rebuild reserve, and the operations reserve, so that “62 percent used” becomes “23 TB of VM data, 8 TB of reserves, and 23 TB free”.
“What needs attention” is a short list of judgments, each with its “Based on” line: physical disks the health service reports as failed or permanently unhealthy, health checks in error, a storage controller whose driver or firmware is not on the vSAN HCL, a policy that needs more fault domains than the cluster has (RAID-5 on four hosts protects the data but cannot rebuild after a host failure), a disk more than 30 percent fuller than the emptiest one, an HCL database older than the one vCenter should have, congestion samples above zero in the performance data, and whether the data in use still fits the remaining hosts after losing the largest one. The HCL date check matters more than it looks: an old HCL database makes every other HCL check in the list unreliable, and the list says so.
The capacity tab draws the raw usage as one bar with vSAN’s warning and critical lines, then three tables: what is in the used space (data written once, copies and parity, reserved, snapshots, the reserves), the space efficiency ratios for deduplication, compression and thin provisioning, and the usable space against what the VMs have provisioned. The what-if per policy is the table I would have wanted in vCenter years ago: for each storage policy in use, the usable total and the free space for new VMs, and a red mark on the policies the cluster cannot satisfy at all. On the dummy cluster, RAID-6 and a stretched mirror are both impossible with four hosts and one site, and the table says so without anyone having to count fault domains.
Design and failures have three views. The logical one draws the cluster as fault domains, hosts, and disk groups, with every cache and capacity disk colored by its health and fill level, and the witness host when the cluster is stretched. The physical one draws the vSAN VMkernel of each host, its uplinks and the switch ports they land on, from the same CDP and LLDP data as the host pages, and flags a host whose vSAN uplinks all land on one switch. The failure simulator is a model: mark a host or a fault domain as failed and, per storage policy in use, it says whether the objects stay online, whether vSAN can rebuild on the fault domains left or must wait for the host to return, how many fault domains are left against how many the policy needs, and how full the cluster would be after the rebuild. It applies the policy rules and the capacity of the last scan; nothing is sent to vCenter, and the “Based on” line under each answer says that.
The other tabs are the vSAN console’s own details in one place: health checks by group with their result, 24 hours of IOPS, throughput, latency and congestion, the disks with their fill level and health, objects and policies with compliance, the resync queue, and the network checks (vSAN VMkernel on every host, ping and large-MTU ping between hosts, latency, partitions) next to the
NSX
NSX is read through the Policy API of the manager cluster, with an audit account: the cluster status and each manager node’s runtime (VIP holder, service leaders, load averages, memory, disk, version), the compute managers, the transport zones, the transport node collections and profiles, every transport node with its host switches, uplink profile, teaming, TEP VLAN and tunnel state, the uplink profiles, the Tier-0 and Tier-1 gateways, the segments, the DFW policies and rules in processing order with their hit counters, the groups with their effective members as NSX reports them, the custom services, the gateway firewall, NAT, load balancer, VPN and DHCP configuration, the exclude list, the VM inventory with its tags, the alarms with their recommended action, the trust store certificates, the backup configuration and the licences. It is a long list because the page has to answer questions the NSX console spreads over twenty screens.
The page opens with six tiles: the state of the manager cluster with its VIP, the transport nodes with how many are not up and how many collections are failing, the segments by type, the distributed firewall with its policies and rules and how many drop or reject, the groups and custom services, and the open alarms with the backup state. Under the tiles sits the appliance strip: each manager node with its IP, which one holds the VIP, which services it leads, and its load, memory, vCPU, disk, and version from the last scan, so a manager node under memory pressure is visible before it becomes an alarm.
On the Diagrams tab, the logical view draws the manager nodes and their cluster, the compute managers, the Tier-0 and Tier-1 gateways with their HA mode, the transport zones with their segments, and the host switches with their uplink and teaming profiles. The physical view draws the same transport zones down to the cable: the host switch, the ESXi hosts that carry it, each vmnic with its speed, and the physical switch and port that vCenter’s CDP or LLDP data reported. Those are two sources joined by the host switch name: segments, transport zones, and host switches come from NSX; vmnics, link speed, and switch ports come from the vCenter scan that runs those hosts. When the host switch name in NSX matches no distributed switch in the vCenter scan, the hosts are drawn with “no NIC detail,” and nothing is guessed.
The transport nodes tab lists them by cluster with the collection profile and state, then one by one with host switches and status, and each node opens its own drawing. For a host, it shows every physical NIC with its speed and the switch port above it, the standard switch and the NSX-prepared VDS with a blue border, which uplinks are active and which are standby, and the host underneath with its ESXi build; a NIC that is an uplink of no switch is drawn dashed. Click a NIC, a line, or a switch, and the path panel lists the hops from the VM traffic to the physical port. Next to the drawing, the overview reads tunnels up and down, transport zones, uplink profile, teaming policy, TEP VLAN and MTU, and the uplink mapping, which is the set of facts a TEP connectivity problem usually comes down to. For an edge node, the same drawing shows the edge’s uplinks and the segments they use.
Under the Manager cluster sits a failure simulator for the control plane, which is the part of NSX that people size by habit and test rarely. The tool matches each manager node to the vCenter VM it runs as, by IP or name, and draws the vSphere cluster with the three manager VMs on their ESXi hosts. Mark a node or a host down and the answer is written out: how many nodes stay up against the quorum of two, which node takes the leader roles, how much margin is left before the management plane stops, and whether vSphere HA would restart the lost node on the remaining hosts, which depends on those hosts having the capacity and seeing the same datastores. Two manager nodes on the same host is the finding this page exists for.
Security review reads the distributed firewall in processing order, the way the data path evaluates it, and lists what is usually found by accident during an audit: traffic that no rule matches and the default rule allows, rules that allow any source to any destination on any service, rules that can never match because an earlier rule already catches the same traffic with the same action, VMs that no specific rule names and so depend on the default rule, VMs on the exclude list that the DFW does not filter at all, rules that use a group with no members and no IP addresses, enabled rules with zero hits since the counters were last reset, disabled rules, and groups no rule uses. Each finding opens the rules behind it with policy, hits, and who last changed them, and the DFW change log between scans records who changed what. The review is a list of things to look at, not verdicts: a rule with zero hits may be the one that matters in a failover, and the page says so.
The networking tab includes gateways, segments, NAT rules, load balancer services and virtual servers, VPN sessions, and DHCP in tables; the alarms tab lists every alarm state with its description and recommended action. The simulator doesn’t include edge clusters or Tier-0 failover yet; they’re on the list.
Where part 1 ends
Everything in this part comes down to one habit the tool replaces: logging in to two consoles and joining the answer in your head. The vCenter page, the host diagrams, the storage path, the VM page, the vSAN what-if, and the NSX transport node drawing are all the same thing done for a different object: the physical, the virtual, and the logical view of it on one screen, each box linked to the next, so a question that starts at a switch port ends at the VMs behind it, and a question that starts at a VM ends at the cable. The answer is kept from the last scan, with the time it was taken, so the next person asks the tool and not the site.
Where that pays off: taking over an environment you did not design, where the first week otherwise goes into clicking through vCenter to find out what is connected to what; a failed NIC, port, or path, where the drill-down from the failed object to everything behind it is a few clicks and the maintenance checklist is already written; an audit, where the security findings, the certificate list, the NTP check, and the firewall review are one scan instead of a day; and design documents, since every diagram exports as SVG, PDF, and draw.io with the real names in it. Nothing in it changes a system, so it runs with an audit account from day one.
A few things did not get their own section. The search bar at the top finds any host, VM, IP, MAC, serial number, datastore, VLAN, switch port, or job across every platform. Every page has light and dark themes.
This part shows less than 20 percent of what the tool reads and draws; page by page, the whole thing would take twenty parts, so the two parts stick to the screens that explain the idea. Part 2 adds the rest of the dummy site: the ALB controller and the vCloud cell, the Veeam server with its flows and RPO calendar, the Proxmox and Hyper-V clusters, the switches and the iLO and iDRAC boards that let the tool confirm the cabling from the other side, the alerts and lists that work across all of them, and the Site Scanner for sites the tool has no route to.
Share this article if you think it is worth sharing. If you have any questions or comments, comment here, or contact me on Twitter (yes, for me it is not X, but still Twitter).