當指定之超級領域中所有領域的可用位址總數低於定義的閾值時,此監視會發出警示
Microsoft Windows Server DHCP 程式庫領域監視,它會傳回屬性包,其中包含指定之領域/超級領域中可用的項目數。
這些是可視需要覆寫的參數:
間隔秒數:每次執行的秒數
同步處理時間:您想開始執行作業的起始時間,以 "hh:mm" 格式表示。
逾時秒數:因為「逾時原因」而取消執行之前等待的秒數。
偵錯旗標:請使用 "true" 或 "false" 在 Operation Manager 事件記錄檔中記錄不同的事件,以供追蹤之用。
如果 DHCP 伺服器沒有 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.Library.Superscope | ||
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.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>