发现 Windows 物理磁盘

Microsoft.Windows.Server.10.0.PhysicalDisk.Discovery (Discovery)

此规则使用 WMI 发现 Windows Server 2016 及更高版本操作系统的所有物理磁盘。

Knowledge Base article:

摘要

此发现规则可发现名为“Windows Server 2016 及更高版本物理磁盘”的 Windows Server 类,并使用在 Windows Server 2016 及更高版本操作系统上发现的物理磁盘的实例来填充它。

Element properties:

TargetMicrosoft.Windows.Server.10.0.OperatingSystem
EnabledFalse
Frequency86880
RemotableFalse

Object Discovery Details:

Discovered Classes and their attribuets:
  • Microsoft.Windows.Server.10.0.PhysicalDisk
    • DisplayName
    • DeviceID
    • Name
    • Description
    • Caption
    • Index
    • InterfaceType
    • Manufacturer
    • Model
    • SCSIBus
    • SCSILogicalUnit
    • SCSIPort
    • SCSITargetID
    • Size
    • TotalCylinders
    • TotalHeads
    • TotalSectors
    • TotalTracks
    • TracksPerCylinder
    • PerfmonInstance
Discovered relationships and their attribuets:

Member Modules:

ID Module Type TypeId RunAs 
DiscoveryDataSource DataSource Microsoft.Windows.Server.10.0.PhysicalDiskDiscovery.ModuleType Default

Source Code:

<Discovery ID="Microsoft.Windows.Server.10.0.PhysicalDisk.Discovery" Enabled="false" Target="Microsoft.Windows.Server.10.0.OperatingSystem">
<Category>Discovery</Category>
<DiscoveryTypes>
<DiscoveryClass TypeID="Microsoft.Windows.Server.10.0.PhysicalDisk">
<Property TypeID="System!System.Entity" PropertyID="DisplayName"/>
<Property TypeID="Windows!Microsoft.Windows.LogicalDevice" PropertyID="DeviceID"/>
<Property TypeID="Windows!Microsoft.Windows.LogicalDevice" PropertyID="Name"/>
<Property TypeID="Windows!Microsoft.Windows.LogicalDevice" PropertyID="Description"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="Caption"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="Index"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="InterfaceType"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="Manufacturer"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="Model"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="SCSIBus"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="SCSILogicalUnit"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="SCSIPort"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="SCSITargetID"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="Size"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="TotalCylinders"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="TotalHeads"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="TotalSectors"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="TotalTracks"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="TracksPerCylinder"/>
<Property TypeID="WindowsServer!Microsoft.Windows.Server.PhysicalDisk" PropertyID="PerfmonInstance"/>
</DiscoveryClass>
<DiscoveryRelationship TypeID="Windows!Microsoft.Windows.ComputerHostsLogicalDevice"/>
</DiscoveryTypes>
<DataSource ID="DiscoveryDataSource" TypeID="Microsoft.Windows.Server.10.0.PhysicalDiskDiscovery.ModuleType">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<ComputerID>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</ComputerID>
<IntervalSeconds>86880</IntervalSeconds>
<TimeoutSeconds>360</TimeoutSeconds>
</DataSource>
</Discovery>