CIDR calculated from scope network address and subnet mask
status
Static
Always reserved
is_pool
Static
Always false. A DHCP scope is a routed subnet, so its network and broadcast addresses are not usable
custom_fields
Scope metadata + options
See custom fields table below
The integration does not set mark_utilized or description on a prefix. You decide both in NetBox, and a sync leaves them as they are: an existing description, such as a reference from another system, is kept. A new prefix gets a blank description. Descriptions written by integration versions before 1.14.0 (Microsoft DHCP - DHCP Scope - {host}) are not cleared.
When a reservation and a lease exist for the same IP address, the reservation always takes precedence. The IP address is ingested with status reserved using the reservation data.
The integration uses the pypsrp library to connect over WinRM/PSRP with NTLM authentication. The following PowerShell cmdlets are executed on the target server:
Cmdlet
Purpose
Get-DhcpServerv4Scope
Retrieves all DHCP scopes
Get-DhcpServerv4Lease
Retrieves leases; called only for scopes listed in MSFT_DHCP_LEASE_SCOPE_IDS
Records deleted on the DHCP server are not removed from NetBox. The integration does not delete NetBox objects. Prefixes for deleted scopes, IP ranges for deleted exclusion ranges, and IP addresses for deleted reservations or expired leases stay in NetBox with the values from the last run that included them. Handle these removals manually.