当指定 IPv4 作用域的可用地址数低于定义的阈值时,此监视器会发出警报
Microsoft Windows Server DHCP 2016 和 1709+ IPv4 单独作用域监视将返回包含指定作用域的可用地址数的属性包。
可根据需要替代这些参数:
样本数:等待计算监视器的新状态的次数。
警告阈值:最少地址数作为正常状态。
错误阈值:最少地址数作为警告状态。
间隔(秒):每次执行的秒数
同步时间:时间通过这种格式表示:“hh:mm",从你将要开始执行时计数。
超时(秒):等待直到取消执行的“超时原因”的秒数。
初始行:用于分页的初始行。默认值为返回所有记录的 0。
结束行:用于分页的结束行。默认值为返回所有记录的 0。
支持分页数量的最大值为 2,000 个作用域
检查可用作用域地址。
如果 DHCP Server 2016 和 1709+ 不具有可提供给其客户端的 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.10.0.IPv4Scope | ||
Parent Monitor | System.Health.AvailabilityState | ||
Category | StateCollection | ||
Enabled | False | ||
Alert Generate | True | ||
Alert Severity | MatchMonitorHealth | ||
Alert Priority | Normal | ||
Alert Auto Resolve | True | ||
Monitor Type | Microsoft.Windows.DHCPServer.10.0.IndScopeStats.MonitorType | ||
Remotable | True | ||
Accessibility | Public | ||
Alert Message |
| ||
RunAs | System.PrivilegedMonitoringAccount |
<UnitMonitor ID="Microsoft.Windows.DHCPServer.10.0.IndScope.IPV4.FreeScopeAddresses.Quantity.Monitor" Accessibility="Public" Enabled="false" Target="Microsoft.Windows.DHCPServer.10.0.IPv4Scope" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Microsoft.Windows.DHCPServer.10.0.IndScopeStats.MonitorType" ConfirmDelivery="false" RunAs="System!System.PrivilegedMonitoringAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.10.0.Scope.IPV4.FreeScopeAddresses.Quantity.Monitor.AlertMessage">
<AlertOnState>Error</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="ScopeAddressesAvailable" MonitorTypeStateID="Success" HealthState="Success"/>
<OperationalState ID="ScopeAddressesLow" MonitorTypeStateID="Warning" HealthState="Warning"/>
<OperationalState ID="ScopeAddressesVeryLow" MonitorTypeStateID="Error" HealthState="Error"/>
</OperationalStates>
<Configuration>
<Scope>$Target/Property[Type="DHCP!Microsoft.Windows.DHCPServer.Library.Scope"]/IPAddress$</Scope>
<CounterName>IPV4Scope-AddressesAvailable</CounterName>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<NumSamples>3</NumSamples>
<WarningThreshold>50</WarningThreshold>
<ErrorThreshold>10</ErrorThreshold>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<InitialRow>0</InitialRow>
<FinalRow>0</FinalRow>
</Configuration>
</UnitMonitor>