Hyper-V 2016 和 1709+ 虚拟机发现

Microsoft.Windows.HyperV.Discovery.VirtualMachineDiscovery (Discovery)

发现 Microsoft Windows Hyper-V 2016 和 1709+ 虚拟机

Knowledge Base article:

摘要

此发现能够发现 Hyper-V 2016 和 1709+ 虚拟机。

该发现默认每 2 小时运行一次,但可以使用“IntervalSeconds”参数对其进行重新配置。

Element properties:

TargetMicrosoft.Windows.HyperV.Discovery.ServerRole
EnabledTrue
Frequency43200
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.Windows.HyperV.Discovery.VirtualMachineDiscoveryDataSourceModule Default

Source Code:

<Discovery ID="Microsoft.Windows.HyperV.Discovery.VirtualMachineDiscovery" Enabled="onEssentialMonitoring" Target="Microsoft.Windows.HyperV.Discovery.ServerRole" ConfirmDelivery="false" Remotable="true" Priority="Normal">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.HyperV.Discovery.VirtualMachine">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="ServerName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="ComputerName"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.Windows.HyperV.Discovery.VirtualDrive">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="DeviceId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="Name"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="VirtualMachineName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="ConnectedControllerName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="ImageFile"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualDrive" PropertyID="DriveType"/>
</DiscoveryClass>
<DiscoveryClass TypeID="Microsoft.Windows.HyperV.Discovery.VirtualNetworkAdapter">
<Property TypeID="Windows!Microsoft.Windows.Computer" PropertyID="PrincipalName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.ServerRole" PropertyID="ServerId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualMachine" PropertyID="VirtualMachineId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="DeviceId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="Name"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualHardwareComponent" PropertyID="VirtualMachineName"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualNetworkAdapter" PropertyID="ConnectedNetworkId"/>
<Property TypeID="HVLib!Microsoft.Windows.HyperV.VirtualNetworkAdapter" PropertyID="ConnectedNetworkName"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Microsoft.Windows.Server.10.0.LogicalDisk.Contains.HyperV.2016.VirtualDrive"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="Microsoft.Windows.HyperV.Discovery.VirtualMachineDiscoveryDataSourceModule">
<IntervalSeconds>43200</IntervalSeconds>
<TimeoutSeconds>300</TimeoutSeconds>
</DataSource>
</Discovery>