DHCP 領域可用位址監視

Microsoft.Windows.DHCPServer.Library.Scope.UnitMonitor.ScopeAddressesAvailable (UnitMonitor)

當指定之領域的可用位址數目低於定義的閾值時,此監視會發出警示

Knowledge Base article:

摘要

Microsoft Windows Server DHCP 程式庫超級領域監視,它會傳回屬性包,其中包含指定之領域/超級領域中可用的項目數。

這些是可視需要覆寫的參數:

解決方式

如果 DHCP 伺服器沒有 IP 位址可以提供給其用戶端,則用戶端可能無法取得指派的 IP。當發生這種情況時,請考慮採用下列可能的解決方式:

擴充 DHCP 領域

如果您已經有 DHCP 領域,而 [起始位址] 和 [結束位址] 目前不包括特定子網路的所有位址,您可以擴充領域內容中的 [起始位址] 或 [結束位址],以增加領域中的位址數目。

若要增加用戶端可用的位址數目:

縮短租用期間

若要執行這些程序,您必須是 Administrators 群組成員或是已經委派您適當的權限。

若要縮短租用期間:

縮減清除間隔

若要執行這些程序,您必須是 Administrators 群組成員或是已經委派您適當的權限。

若要使用 Netsh 命令設定清除間隔時間:

範例

在下列範例中,此命令會將資料庫清除間隔設定為 10,080 分鐘 (每七天)。

netsh dhcp set databasecleanupinterval 10080

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.Scope
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 領域可用位址監視
可用領域位址數低於指定的閾值
RunAsMicrosoft.Windows.DHCPServer.Library.ActionAccount

Source Code:

<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>