Hyper-V Host Number of Logical Processors Discovery

VKernel.CapacityAnalyzer.HyperVHostNumberOfPhysicalProcessorsDiscovery (Discovery)

Discovers number of physical processors on Hyper-V host.

Element properties:

TargetMicrosoft.SystemCenter.VirtualMachineManager.2012.HyperVHost
EnabledTrue
Frequency14400
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper Default

Source Code:

<Discovery ID="VKernel.CapacityAnalyzer.HyperVHostNumberOfPhysicalProcessorsDiscovery" Enabled="true" Target="SCVMM2012DiscoveryMP!Microsoft.SystemCenter.VirtualMachineManager.2012.HyperVHost" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="VKernel.CapacityAnalyzer.HyperVHost">
<Property TypeID="VKernel.CapacityAnalyzer.HyperVHost" PropertyID="NumberOfPhysicalProcessors"/>
</DiscoveryClass>
</DiscoveryTypes>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.WmiProviderWithClassSnapshotDataMapper">
<NameSpace>root\cimv2</NameSpace>
<Query>select NumberOfProcessors from Win32_ComputerSystem</Query>
<Frequency>14400</Frequency>
<ClassId>$MPElement[Name="VKernel.CapacityAnalyzer.HyperVHost"]$</ClassId>
<InstanceSettings>
<Settings>
<Setting>
<Name>$MPElement[Name="SCVMMLibraryMP!Microsoft.SystemCenter.VirtualMachineManager.VMHost"]/VMMId$</Name>
<Value>$Target/Property[Type="SCVMMLibraryMP!Microsoft.SystemCenter.VirtualMachineManager.VMHost"]/VMMId$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Name>
<Value>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</Value>
</Setting>
<Setting>
<Name>$MPElement[Name="VKernel.CapacityAnalyzer.HyperVHost"]/NumberOfPhysicalProcessors$</Name>
<Value>$Data/Property[@Name='NumberOfProcessors']$</Value>
</Setting>
</Settings>
</InstanceSettings>
</DataSource>
</Discovery>