收集使用中的領域位址數目
This rule collects the number of scope addresses in use
Target | Microsoft.Windows.DHCPServer.Library.Scope |
Category | PerformanceCollection |
Enabled | True |
Alert Generate | False |
Remotable | True |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | Microsoft.Windows.DHCPServer.Library.DataSource.ScopeSpaceAvailable | Microsoft.Windows.DHCPServer.Library.ActionAccount |
PerfDataMapper | ConditionDetection | Microsoft.Windows.DHCPServer.Library.CD.PerfFilter | Microsoft.Windows.DHCPServer.Library.ActionAccount |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.Windows.DHCPServer.Library.Scope.CollectScopeAddressesInUse" Enabled="true" Target="Microsoft.Windows.DHCPServer.Library.Scope" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount" TypeID="Microsoft.Windows.DHCPServer.Library.DataSource.ScopeSpaceAvailable">
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
<TargetComputer>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</TargetComputer>
</DataSource>
</DataSources>
<ConditionDetection ID="PerfDataMapper" RunAs="Microsoft.Windows.DHCPServer.Library.ActionAccount" TypeID="Microsoft.Windows.DHCPServer.Library.CD.PerfFilter">
<Expression/>
<ObjectName>DHCP Scope</ObjectName>
<CounterName>Addresses In Use</CounterName>
<InstanceName>$Target/Property[Type="Microsoft.Windows.DHCPServer.Library.DHCPComponent"]/Name$ [$Target/Property[Type="Microsoft.Windows.DHCPServer.Library.Scope"]/IPAddress$]</InstanceName>
<Value>$Data/Property[@Name='$Target/Property[Type="Microsoft.Windows.DHCPServer.Library.Scope"]/IPAddress$/InUse']$</Value>
</ConditionDetection>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>