DiscoveryClass
Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007
Declares the class type of the instances to be discovered.
Schema Hierarchy
ManagementPack
Monitoring
Discoveries
Discovery
DiscoveryTypes
DiscoveryClass
Syntax
<DiscoveryClass TypeID=”ClassTypeID”>
<Property TypeID=”ClassTypeID” PropertyID=”PropertyID”/>
</DiscoveryClass>
Attributes and Elements
The following sections describe attributes, child elements, and the parent element of the DiscoveryClass element.
Attributes
Attribute | Description |
---|---|
TypeID |
Required attribute. The ID of the class type to be discovered. |
Child Elements
Element | Description |
---|---|
Optional element. Represents a class type property to be populated at discovery. |
Parent Elements
Element | Description |
---|---|
Contains the class and/or relationship type IDs that the discovery will discover. |
Remarks
Example
The following XML sample illustrates a DiscoveryClass element and the referenced ClassType element to be discovered. The base classes of the discovery class are included to illustrate how you can populate the properties of the discovery class as well as the properties of its base classes. To see the entire discovery definition, see Discovery.
<ClassType ID="Microsoft.Windows.LogicalDevice" Base="System!System.LogicalHardware" Accessibility="Public" Hosted="true" Abstract="true">
<Property ID="DeviceID" Type="string" Key="true" />
<Property ID="Name" Type="string" />
<Property ID="Description" Type="string" />
</ClassType>
<ClassType ID="Microsoft.Windows.LogicalDisk" Base="Microsoft.Windows.LogicalDevice" Accessibility="Public" Hosted="true" Abstract="true" />
<ClassType ID="Microsoft.Windows.Client.LogicalDisk" Abstract="true" Accessibility="Public" Base="Windows!Microsoft.Windows.LogicalDisk" Hosted="true" Singleton="false">
<Property ID="FileSystem" Type="string" />
<Property ID="Compressed" Type="string" />
<Property ID="Size" Type="string" />
<Property ID="DriveType" Type="string" />
<Property ID="SupportsDiskQuota" Type="string" />
<Property ID="QuotasDisabled" Type="string" />
<Property ID="SupportsFileBasedCompression" Type="string" />
</ClassType>
<ClassType ID="Microsoft.Windows.Client.XP.LogicalDisk" Abstract="false" Accessibility="Public" Base="WindowsClient!Microsoft.Windows.Client.LogicalDisk" Hosted="true" Singleton="false" />
<DiscoveryClass TypeID="Microsoft.Windows.Client.XP.LogicalDisk">
<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="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="FileSystem" />
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="Compressed" />
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="Size" />
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="DriveType" />
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="SupportsDiskQuota" />
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="QuotasDisabled" />
<Property TypeID="WindowsClient!Microsoft.Windows.Client.LogicalDisk" PropertyID="SupportsFileBasedCompression" />
</DiscoveryClass>