# Building the RVTools Analyzer: Edge Cases That Matter

> Accurately parse core minimums, cold disaster recovery VMs, and snapshot allocation pools during Broadcom exit planning.

- Author: Matthias Goodman
- Category: Deep Dive
- Published: 2026-02-18
- Updated: 2026-02-18
- Tags: VMware, Broadcom, RVTools, Architecture
- Canonical HTML: https://www.genericservice.app/notes/rvtools-analyzer-edge-cases
- Section LLM Index: https://www.genericservice.app/notes/llms.txt

This is the critical engineering mindset. "The happy path is easy; show me where it breaks."

Building an RVTools analyzer is feasible and high-value, but if you rely solely on raw column data without exception logic, you will generate false positives that damage credibility. These edge cases come up constantly during [vSphere stabilization](/services/infrastructure) engagements where licensing posture is part of the baseline assessment.

Here are the specific **misses, edge cases, and "silent failures"** I account for in the [RVTools Analyzer](/tools/rvtools-analyzer) logic to ensure the output is "Senior Architect" quality, not just a script.

## 1. The "Broadcom Math" Edge Cases (Hardware & Cores)

The new licensing model is core-based, but it’s not a simple `SUM(Cores)`.

- **The 16-Core Minimum Trap:** Broadcom charges for a _minimum_ of 16 cores per CPU.
- _The Miss:_ If a client has older hosts with 12-core CPUs, a simple sum will under-report the required license count.
- _The Fix:_ Logic must be `MAX(16, Actual_Cores)` per CPU.

- **Hyperthreading Confusion:**
- _The Miss:_ RVTools reports logical processors (Threads) and physical cores.
- _The Fix:_ I explicitly parse the `Cores` column, never `CPUs` (threads), or you will double the estimated license cost and terrify the client unnecessarily.

![Calculation diagram showing why naive vCPU and core counts understate Broadcom licensing by 40% to 100% across the 16-core per socket floor, raw vSAN TiB capacity, and ghost VDS/DRS entitlements.](/images/notes/broadcom-16-core-minimum-penalty.svg)

## 2. Feature-Level "Ghosts" (VDS & DRS)

Detecting feature usage is harder than just checking a "True/False" column.

- **Ghost VDS (Legacy Artifacts):**
- _The Edge Case:_ A client migrated from Enterprise Plus to Standard years ago but left a Distributed Switch (VDS) configured with no active ports.
- _The Miss:_ The tool flags them as "Requiring VVF/VCF" because a VDS object exists, even if it's orphaned.
- _The Fix:_ Check `vNetwork` for connected VMs/Hosts rather than relying solely on the existence of a VDS.

- **Cluster-Level Granularity:**
- _The Edge Case:_ A client has 3 clusters. 2 are VVF (DRS enabled), 1 is Standard (DRS disabled).
- _The Miss:_ Reporting "Environment requires VVF" applies the high cost to the whole estate.
- _The Fix:_ The report must break down licensing _per cluster_. "Cluster A requires VVF; Cluster B can remain Standard."

## 3. Storage & vSAN Nuances

vSAN is now licensed by capacity (TiB), not sockets.

- **The "Claimed vs. Usable" Gap:**
- _The Miss:_ RVTools reports raw disk size and used space. Broadcom licenses usually apply to _raw capacity claimed_ by the vSAN datastore.
- _The Fix:_ Calculate the sum of `Capacity` in `vDisk` for vSAN-claimed disks, not just the `vDatastore` used space.

## 4. The "Zombie" False Positives

You want to detect waste, but you don't want to flag critical assets as trash.

- **The "Cold DR" Problem:**
- _The Edge Case:_ A DR site has 200 VMs powered off for 6 months.
- _The Miss:_ The tool labels them "Zombies" (waste).
- _The Fix:_ Check the `vHost` or `vCluster` name for keywords like "DR", "Recovery", "Replica".

- **Templates & Golden Images:**
- _The Edge Case:_ A "Templates" folder has VMs powered off for 2 years.
- _The Miss:_ Flagging the Golden Image as a zombie.
- _The Fix:_ Filter out objects where `IsTemplate` = True.

## 5. The "Contract" Invisible Layer

This is the hardest miss because the data isn't in the file.

- **ELA / ELA-PP:** The export shows _what is running_, not _what was bought_.
- _The Risk:_ The tool says "You are under-licensed by 20 cores," but the client has a prepaid ELA with a buffer.
- _The Mitigation:_ The output language must be careful. Use phrases like _"Estimated requirement based on configuration"_ rather than _"You are non-compliant."_

-

## Use the Tool

I've baked this logic into a free, 100% client-side analyzer. No data leaves your browser. If the output raises questions about your licensing posture or infrastructure baseline, the [health check](/health-check) provides the full assessment.

[Open RVTools Analyzer](/tools/rvtools-analyzer)
