Monitor występowania komunikatów NACK zakresu IPv4 usługi DHCP

Microsoft.Windows.DHCPServer.Library.IPv4Scope.UnitMonitor.LeaseAvailability.2 (UnitMonitor)

Knowledge Base article:

Rozwiązania

Klient DHCP może odrzucić adres z serwera, jeśli:

W takiej sytuacji problem powinien zostać automatycznie rozwiązany, ale jeśli nie ustępuje, można ponownie skonfigurować zastrzeżenia lub zakresy wykluczeń na serwerze DHCP.

Zmiana konfiguracji zastrzeżeń klienta

Zastrzeżenia klienta pozwalają na zastrzeżenie konkretnego adresu IP na potrzeby stałego użycia przez klienta DHCP. Zwykle zastrzeżenia są używane w przypadku, gdy adres IP klienta został przypisany przy użyciu innej metody konfiguracji protokołu TCP/IP.

Zastrzeżonych adresów IP nie można modyfikować. Aby zmienić adres IP zastrzeżenia, należy usunąć zastrzeżenie, a następnie ponownie je utworzyć, korzystając z nowego adresu IP.

Aby wykonać te procedury, trzeba należeć do grupy Administratorzy lub mieć odpowiednie uprawnienia oddelegowane.

Aby usunąć zastrzeżenie, a następnie ponownie je utworzyć, korzystając z nowego adresu IP:

Zmiana konfiguracji zakresów wykluczeń

Aby zapobiec konfliktom adresów, definiowane zakresy nie mogą zawierać adresów IP urządzeń, które zostały skonfigurowane statycznie, takich jak serwery DHCP. Definiując zakresy wykluczeń administrator może wykluczyć zakresy adresów IP, tak aby nie były one oferowane klientom DHCP. Podczas tworzenia nowego zakresu należy natychmiast wykluczyć istniejące adresy IP statycznie skonfigurowanych komputerów. Wykluczone adresy IP mogą być aktywne w sieci, ale tylko w przypadku, gdy zostały skonfigurowane ręcznie lub rozdystrybuowane jako zastrzeżone adresy IP.

Aby wykonać te procedury, trzeba należeć do grupy Administratorzy lub mieć odpowiednie uprawnienia oddelegowane.

Aby zmienić konfigurację zakresów wykluczeń:

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.IPv4Scope
Parent MonitorSystem.Health.AvailabilityState
CategoryStateCollection
EnabledTrue
Alert GenerateTrue
Alert SeverityMatchMonitorHealth
Alert PriorityNormal
Alert Auto ResolveTrue
Monitor TypeMicrosoft.Windows.2SingleEventLog2StateMonitorType
RemotableTrue
AccessibilityPublic
Alert Message
Przypomnienie występowania komunikatów NACK zakresu IPv4 usługi DHCP

W takiej sytuacji problem powinien zostać automatycznie rozwiązany, ale jeśli to nie nastąpi, można ponownie skonfigurować zastrzeżenia lub podzakresy wykluczeń.

{0}
RunAsMicrosoft.Windows.DHCPServer.Library.ActionAccount

Source Code:

<UnitMonitor ID="Microsoft.Windows.DHCPServer.Library.IPv4Scope.UnitMonitor.LeaseAvailability.2" Accessibility="Public" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.IPv4Scope" ParentMonitorID="Health!System.Health.AvailabilityState" Remotable="true" Priority="Normal" TypeID="Windows!Microsoft.Windows.2SingleEventLog2StateMonitorType" ConfirmDelivery="true" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount">
<Category>StateCollection</Category>
<AlertSettings AlertMessage="Microsoft.Windows.DHCPServer.Library.IPv4Scope.UnitMonitor.LeaseAvailability.2_AlertMessageResourceID">
<AlertOnState>Warning</AlertOnState>
<AutoResolve>true</AutoResolve>
<AlertPriority>Normal</AlertPriority>
<AlertSeverity>MatchMonitorHealth</AlertSeverity>
<AlertParameters>
<AlertParameter1>$Data/Context/EventDescription$</AlertParameter1>
</AlertParameters>
</AlertSettings>
<OperationalStates>
<OperationalState ID="FirstEventRaised" MonitorTypeStateID="FirstEventRaised" HealthState="Warning"/>
<OperationalState ID="SecondEventRaised" MonitorTypeStateID="SecondEventRaised" HealthState="Success"/>
</OperationalStates>
<Configuration>
<FirstComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</FirstComputerName>
<FirstLogName>System</FirstLogName>
<FirstExpression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-DHCP-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DHCPServer</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1012</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</FirstExpression>
<SecondComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</SecondComputerName>
<SecondLogName>System</SecondLogName>
<SecondExpression>
<And>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-DHCP-Server</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">DHCPServer</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
<Expression>
<Or>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1011</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="UnsignedInteger">EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="UnsignedInteger">1013</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</Or>
</Expression>
</And>
</SecondExpression>
</Configuration>
</UnitMonitor>