Collect Scope Addresses In Use

Microsoft.Windows.DHCPServer.Library.Scope.CollectScopeAddressesInUse (Rule)

Collect the number of scope addresses in use

Element properties:

TargetMicrosoft.Windows.DHCPServer.Library.Scope
CategoryPerformanceCollection
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

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

Source Code:

<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>