このモニターは、指定した使用可能な 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] をクリックします。
DCHP コンソール ツリーで、構成するスコープを右クリックし、[プロパティ] をクリックします。
[全般] タブの [DHCP クライアントのリース期間] で、新しいリース期間を入力します。
クリーンアップ間隔を短縮します
これらの手順を実行するには、Administrators グループのメンバーであるか、適切な権限が委任されている必要があります。
Netsh コマンドを使用してクリーンアップ間隔を設定するには、次の手順を実行します。
DHCP サーバーで [スタート] ボタンをクリックし、[ファイル名を指定して実行] をクリックします。次に、「cmd」と入力し、Enter キーを押します。
次のように入力します。 netsh dhcp set databasecleanupinterval "NewInterval" (NewInterval は DHCP データベースのクリーンアップ間隔 (分単位) です。)
例
次の例では、このコマンドによってデータベース クリーンアップ間隔が 10,080 分 (7 日ごと) に設定されます。
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>