当指定作用域的可用地址数低于定义的阈值时,此监视器会发出警报
Microsoft Windows Server DHCP 库超级作用域监视将返回一个属性包,其中包含指定作用域/超级作用域中的可用地址的数目。
如果需要,您可以替代以下参数:
间隔(秒):每次执行所使用的时间(秒)
同步时间:时间采用以下格式:“hh:mm”,因为您可能希望开始执行。
超时(秒):在因“超时原因”取消执行之前要等待的时间(秒)。
调试标志:在 Operations Manager 事件日志中,使用“true”或“false”来记录不同的事件以便进行跟踪。
如果 DHCP 服务器不具有可提供给其客户端的 IP 地址,则客户端将无法获取新分配的 IP。当发生此情况时,请考虑以下可能的解决方案:
使用作用域扩展来扩展当前作用域的地址范围。
缩减租用期限并减小清理时间间隔。这将有助于加快对过期作用域的 IP 地址的回收速度。
扩展 DHCP 作用域
如果您已具有一个 DHCP 作用域,并且其起始地址和结束地址当前不包含特定子网的所有地址,则可以通过在此作用域属性中扩展起始地址和结束地址来增加此作用域中的地址数。
若要增加客户端可用的地址数,请执行以下操作:
在 DHCP 服务器上,单击“开始”,指向“管理工具”,然后单击“DHCP”。
在控制台树中,右键单击要扩展的作用域,然后单击“属性”。
更改“起始 IP 地址”和“结束 IP 地址”以扩展作用域。
缩减租用期限
若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。
若要缩减租用期限,请执行以下操作:
在 DHCP 服务器上,单击“开始”,指向“管理工具”,然后单击“DHCP”。
在 DCHP 控制台树中,右键单击要配置的作用域,然后单击“属性”。
在“常规”选项卡上,在“DHCP 客户端的租用期限”下,键入新的租用期限。
减小清理时间间隔
若要执行这些过程,您必须是管理员组的成员,或者您必须被委派了适当的权限。
若要使用 Netsh 命令设置清理时间间隔,请执行以下操作:
在 DHCP 服务器上,单击“开始”,再单击“运行”,键入 cmd,然后按 Enter。
键入 netsh dhcp set databasecleanupinterval "NewInterval",其中 "NewInterval" 是 DHCP 数据库清理之间的时间间隔(分钟)。
示例
在下面的示例中,此命令将数据库清理时间间隔设置为 10,080 分钟(即每七天清理一次)。
netsh dhcp set databasecleanupinterval 10080
Target | Microsoft.Windows.DHCPServer.Library.Scope | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | StateCollection | ||
Enabled | True | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.DHCPServer.Library.MonitorType.ScopeSpaceAvailable | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | Microsoft.Windows.DHCPServer.Library.ActionAccount |
<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.Scope.UnitMonitor.ScopeAddressesAvailable" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Scope" 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.Scope.UnitMonitor.ScopeAddressesAvailable_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
</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.Scope"]/IPAddress$</Name>
<Threshold>10</Threshold>
</Configuration>
</UnitMonitor>