收集 DHCP Server 2016 及更高版本超级作用域可用地址

Microsoft.Windows.DHCPServer.10.0.SuperScope.IPV4.CollectFreeAddresses (Rule)

收集超级作用域中的可用地址数

Knowledge Base article:

摘要

此规则使用运行 Microsoft Windows Server 2016 及更高版本操作系统且已启用 DHCP 功能的服务器实例,收集名为“DHCP 2016 及更高版本服务器组”的 DHCP 2016 及更高版本服务器组成员中的超级作用域 IPv4 可用地址。

配置

间隔(秒):应对值进行检查的频率(秒)。

同步时间:模块执行的同步时间。

超时(秒):等待模块完成执行的时间(秒)。

Element properties:

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

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.DHCPServer.10.0.FilteredSuperScopeStats.DS System.PrivilegedMonitoringAccount
WriteToDB WriteAction Microsoft.SystemCenter.CollectPerformanceData Default
WriteToDW WriteAction Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData Default

Source Code:

<Rule ID="Microsoft.Windows.DHCPServer.10.0.SuperScope.IPV4.CollectFreeAddresses" Enabled="true" Target="DHCP!Microsoft.Windows.DHCPServer.Library.Superscope" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" RunAs="System!System.PrivilegedMonitoringAccount" TypeID="Microsoft.Windows.DHCPServer.10.0.FilteredSuperScopeStats.DS">
<SuperScope>$Target/Property[Type="DHCP!Microsoft.Windows.DHCPServer.Library.Superscope"]/Name$</SuperScope>
<CounterName>AddressesAvailable</CounterName>
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerName>
<IntervalSeconds>900</IntervalSeconds>
<SyncTime/>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>