當指定之 IPV4 領域的可用位址數目低於定義的閾值時,此監視會發出警示
Microsoft Windows Server DHCP 2016 和 1709+ IPV4 個別領域監視,會傳回屬性包,其中包含指定領域中可用的位址數目。
以下是我們可以覆寫的參數 (如有需要):
樣本數:等待計算新監視狀態的次數。
警告閾值:接受為狀況良好狀態的位址數目下限。
錯誤閾值:接受為警告狀態的位址數目下限。
間隔 (秒):每次執行的秒數
同步時間:以下列格式表示的時間:"hh:mm",從您要開始執行的時間計算。
逾時 (秒):在因為「逾時原因」而取消執行前要等待的秒數。
第一列:用於分頁的第一列。預設值為 0,表示傳回所有記錄。
最後一列:用於分頁的最後一列。預設值為 0,表示傳回所有記錄。
支援的分頁數量上限為 2,000 個領域
檢查可用的領域位址。
如果 DHCP 伺服器 2016 和 1709+ 沒有 IP 位址可以提供給其用戶端,則用戶端可能無法取得新指派的 IP。當發生這種情況時,請考慮採用下列可能的解決方式:
使用領域延伸來擴大目前領域的位址範圍。
縮短租用期間並縮減清除間隔。這可加快重新回收過期領域 IP 位址的速度。
擴充 DHCP 領域
如果您已經有 DHCP 領域,而 [起始位址] 和 [結束位址] 目前不包括特定子網路的所有位址,您可以擴充領域內容中的 [起始位址] 或 [結束位址],以增加領域中的位址數目。
若要增加用戶端可用的位址數目:
在 DHCP 伺服器上,按一下 [開始],指向 [系統管理工具],然後按一下 [DHCP]。
在主控台樹狀目錄中,以滑鼠右鍵按一下您要擴充的領域,然後按一下 [內容]。
變更 [起始 IP 位址] 和 [結束 IP 位址] 以擴充領域。
縮短租用期間
若要執行這些程序,您必須是 Administrators 群組成員或是已經委派您適當的權限。
若要縮短租用期間:
在 DHCP 伺服器上,按一下 [開始],指向 [系統管理工具],然後按一下 [DHCP]。
在 DHCP 主控台樹狀目錄中,以滑鼠右鍵按一下您要設定的領域,然後按一下 [內容]。
在 [一般] 索引標籤的 [DHCP 用戶端租用期間] 底下,輸入新的租用期間。
降低清除間隔
若要執行這些程序,您必須是 Administrators 群組成員或是已經委派您適當的權限。
若要使用 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>