DHCP Superscope Addresses Available

Microsoft.Windows.DHCPServer.Library.Superscope.UnitMonitor.ScopeSpaceAvailable (UnitMonitor)

This monitor alerts when the total number of the free addresses of all scopes for the specified superscope fall below the defined threshold

Knowledge Base article:

Summary

Microsoft Windows Server DHCP Library Scope Monitoring, returns a property bag containing the number of free in the specified scope / superscope.

These are the parameters that we could override, if need it:

Resolutions

If the DHCP server does not have IP addresses available to provide to its clients, they could fail to obtain new assigned IPs. When this occurs, consider the following possible solutions:

Extend the DHCP scope

If you already have a DHCP scope and the Start Address and End Address do not currently include all addresses for yourspecific subnet, you can increase the number of addresses in the scope by extending the Start Address or End Address in the scope properties.

To increase the number of addresses available to clients:

Reduce the lease duration

To perform these procedures, you must be a member of the Administrators group, or you must have been delegated the appropriate authority.

Toreduce the lease duration:

Decreasethe cleanup interval

To perform these procedures, you must be a member of the Administrators group, or you must have been delegated the appropriate authority.

To use a Netsh command to set the cleanup interval time:

Example

In the following example, this command sets the database cleanup interval to 10,080 minutes (every seven days).

netsh dhcp set databasecleanupinterval 10080

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.Superscope
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.DHCPServer.Library.MonitorType.ScopeSpaceAvailable
RemotableTrue
AccessibilityPublic
Alert Message
DHCP Superscope Addresses Available Alert

The total # of all available scope addresses in the superscope have fallen beneath the threshold.
{0}
RunAsMicrosoft.Windows.DHCPServer.Library.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.Superscope.UnitMonitor.ScopeSpaceAvailable" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Superscope" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.DHCPServer.Library.MonitorType.ScopeSpaceAvailable" ConfirmDelivery="false" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.Library.Superscope.UnitMonitor.ScopeSpaceAvailable_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Property[Type="Microsoft.Windows.DHCPServer.Library.Superscope"]/Name$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ScopeAddressesAvailable" MonitorTypeStateID="ScopeAddressesAvailable" HealthState="Success"/>
<OperationalState ID="ScopeAddressesLow" MonitorTypeStateID="ScopeAddressesLow" HealthState="Warning"/>
<OperationalState ID="ScopeAddressesExhausted" MonitorTypeStateID="ScopeAddressesExhausted" HealthState="Error"/>
</OperationalStates>
<Configuration>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<TargetComputer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</TargetComputer>
<Name>$Target/Property[Type="Microsoft.Windows.DHCPServer.Library.Superscope"]/Name$</Name>
<Threshold>10</Threshold>
</Configuration>
</UnitMonitor>