This PowerShell script finds all empty subnets (no assigned hosts, only network/broadcast addresses used) across all IPAM spaces in your Infoblox Universal DDI (EU tenant) and exports them to a CSV file.
- Install PowerShell 7+ and the ibPS module:
Install-Module -Name ibPS -Scope CurrentUser
- Save your API key in a file named
.b1apikey
in the script directory (no quotes, no extra lines). - Run the script:
pwsh ./extract-empty-subnets.ps1
- Results are saved as
empty_subnets-YYYYMMDD-HHmmss.csv
. - Columns: Name, Address, CIDR, Location, Cloud Provider, Subnet Creation Date, First Seen, Last Seen (sortable in Excel).
Note: Requires access to the Infoblox Universal DDI EU tenant and a valid API key.