Unsupported content

 

This version of the product has reached end of support. The documentation is available for your convenience. However, you must be logged in to access it. You will not be able to leave comments.

get-monitoringclass-by-monitoring-object operation

The get-monitoringclass-by-monitoring-object operation retrieves the monitoring class associated with the specified monitoring object.

The following table describes the <items> XML and request elements for the get-monitoringclass-by-monitoring-object operation:

Adapter request elements for the get-monitoringclass-by-monitoring-object operation

Element

Definition

Required

<operation-name>

Specifies the operation name: get-monitoringclass-by-monitoring-object

Yes

<command-request>

Specifies the parent element for the command elements

Yes

<timeout-secs>

Specifies the duration after which the operation times out

Default value: 60 seconds

No

<command-parameters>

Specifies the parent element for the command parameters

Yes

<monitoringobject>

Specifies the parent element for the <monitoringobject-id> element

Yes

<monitoringobject-id>

Specifies the globally unique identifier (GUID) of the monitoring object

Yes

The following figure illustrates a sample adapter request for the get-monitoringclass-by-monitoring-object operation: 

Sample adapter request for the get-monitoringclass-by-monitoring-object operation

<scom-request>
  <operation-name>get-monitoringclass-by-monitoring-object</operation-name>
  <command-request>
    <timeout-secs>120</timeout-secs>
    <command-parameters>
      <monitoringobject>
        <monitoringobject-id>6c4bb046-82a8-ad78-0bc5-
        97aa4b8cc200</monitoringobject-id>
      </monitoringobject>
    </command-parameters>
  </command-request>
</scom-request>



The following figure illustrates the adapter response for the sample request: 

Sample adapter response for the get-monitoringclass-by-monitoring-object operation

<scom-response>
  <metadata>
    <status>success</status>
    <count>1</count>
  </metadata>
  <commands-output>
    <command-output>
      <metadata>
        <command>./Microsoft.EnterpriseManagement.OperationsManager.ClientShell.
        Startup.ps1;get-monitoringclass -monitoringobject (get-monitoringobject
         -id 6c4bb046-82a8-ad78-0bc5-97aa4b8cc200)</command>
        <execution-milliseconds>4610</execution-milliseconds>
        <exit-code>0</exit-code>
        <status>success</status>
        <count>1</count>
      </metadata>
      <output>
        <item>
          <ManagementGroup>CATNoida</ManagementGroup>
          <ManagementGroupId>ae1fcf8a-8088-31d8-93ec-
          90fe77a32d44</ManagementGroupId>
          <Abstract>False</Abstract>
          <Base>ManagementPackElementUniqueIdentifier=0c363342-717b-5471-3aa5-
          9de3df073f2a</Base>
          <Hosted>False</Hosted>
          <Singleton>True</Singleton>
          <PropertyCollection>{}</PropertyCollection>
          <XmlTag>ClassType</XmlTag>
          <Accessibility>Public</Accessibility>
          <Name>Microsoft.Windows.Server.2000.ComputerGroup</Name>
          <Id>6c4bb046-82a8-ad78-0bc5-97aa4b8cc200</Id>
          <DisplayName>Windows Server 2000 Computer Group</DisplayName>
          <Description>A group containing all computers that are running a
           Windows2000 Server version of the Windows operating system.</Description>
          <LanguageCode>ENU</LanguageCode>
          <Comment />
          <Status>Unchanged</Status>
          <LastModified>1/8/2009 10:30:10 AM</LastModified>
          <TimeAdded>1/8/2009 10:30:10 AM</TimeAdded>
        </item>
      </output>
    </command-output>
  </commands-output>
</scom-response>
Was this page helpful? Yes No Submitting... Thank you

Comments