다음을 통해 공유


ClassTypes

Applies To: Operations Manager 2007 R2, System Center Operations Manager 2007

Contains definitions of class types to be discovered and/or monitored.

Schema Hierarchy

ManagementPack
  TypeDefinitions
    EntityTypes
      ClassTypes

Syntax

<ClassTypes>
   <ClassType ID=”Company.Product.ClassID” Comment=”Comment” Accessibility=”Internal/Public” Abstract=” True/False” Base=”BaseClassID” Hosted=” True/False” Singleton=”True/False”>…</ClassType>
</ClassTypes>

Attributes and Elements

The following sections describe attributes, child elements, and the parent element for the ClassTypes element.

Attributes

None.

Child Elements

Element Description

ClassType

Optional element. Represents a class type definition in the management pack.

Parent Elements

Element Description

EntityTypes

Contains class and relationship type definitions.

Remarks

For an example of how the ClassTypes element is expressed in a management pack, see EntityTypes.

Example

The following sample illustrates how class types are defined within a management pack. Notice that two of the class types, Microsoft.Windows.Computer and Microsoft.Windows.ApplicationComponent, have base classes that are defined in an external management pack using the Alias!ElementID.

For more information about how to reference an external management pack by using the Alias!ElementID notation, see Reference (Manifest).

<ClassTypes>
    <ClassType ID="Microsoft.Windows.ApplicationComponent" Base="System!System.ApplicationComponent" Accessibility="Public" Hosted="false" Abstract="true" />
    <ClassType ID="Microsoft.Windows.Client.Computer" Base="Microsoft.Windows.Computer" Accessibility="Public" Hosted="false" Abstract="false" />
    <ClassType ID="Microsoft.Windows.Client.OperatingSystem" Base="Microsoft.Windows.OperatingSystem" Accessibility="Public" Hosted="true" Abstract="false" />
    <ClassType ID="Microsoft.Windows.Computer" Base="System!System.Computer" Accessibility="Public" Hosted="false" Abstract="false">
      <Property ID="PrincipalName" Type="string" Key="true" CaseSensitive="false" />
      <Property ID="DNSName" Type="string" />
      <Property ID="NetbiosComputerName" Type="string" />
      <Property ID="NetbiosDomainName" Type="string" />
      <Property ID="IPAddress" Type="string" />
      <Property ID="NetworkName" Type="string" />
      <Property ID="ActiveDirectoryObjectSid" Type="string" />
      <Property ID="IsVirtualMachine" Type="bool" />
      <Property ID="DomainDnsName" Type="string" />
      <Property ID="OrganizationalUnit" Type="string" />
      <Property ID="ForestDnsName" Type="string" />
      <Property ID="ActiveDirectorySite" Type="string" />
      <Property ID="LogicalProcessors" Type="int" />
    </ClassType>
</ClassTypes>

See Also

Reference

ClassType
EntityTypes