DHCP 超级作用域的可用地址

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

当指定超级作用域中所有作用域的可用地址总数低于定义的阈值时,此监视器会发出警报

Knowledge Base article:

摘要

Microsoft Windows Server DHCP 库作用域监视将返回一个属性包,其中包含指定作用域/超级作用域中的可用地址的数目。

如果需要,您可以替代以下参数:

解决方案

如果 DHCP 服务器不具有可提供给其客户端的 IP 地址,则客户端将无法获取新分配的 IP。当发生此情况时,请考虑以下可能的解决方案:

扩展 DHCP 作用域

如果您已具有一个 DHCP 作用域,并且其起始地址和结束地址当前不包含特定子网的所有地址,则可以通过在此作用域属性中扩展起始地址和结束地址来增加此作用域中的地址数。

若要增加客户端可用的地址数,请执行以下操作:

缩减租用期限

若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。

若要缩减租用期限,请执行以下操作:

减小清理时间间隔

若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。

若要使用 Netsh 命令设置清理时间间隔,请执行以下操作:

示例

在下面的示例中,此命令将数据库清理时间间隔设置为 10,080 分钟(即每七天清理一次)。

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 有关超级作用域的可用地址的警报

超级作用域中可用的作用域地址总数已低于阈值。
{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>