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-discovery-by-monitoring-object operation

The get-discovery-by-monitoring-object operation retrieves the discoveries associated with the specified monitoring object.

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

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

Element

Definition

Required

<operation-name>

Specifies the operation name: get-discovery-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-discovery-by-monitoring-object operation: 

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

<scom-request>
  <operation-name>get-discovery-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-discovery-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-discovery -monitoringobject (get-monitoringobject -id
         6c4bb046-82a8-ad78-0bc5-97aa4b8cc200)</command>
        <execution-milliseconds>4265</execution-milliseconds>
        <exit-code>0</exit-code>
        <status>success</status>
        <count>1</count>
      </metadata>
      <output>
        <item>
          <ManagementGroup>M1</ManagementGroup>
          <ManagementGroupId>ae1fcf8a-8088-31d8-93ec-90fe77a32d44</ManagementGroupId>
          <HasNonCategoryOverride>False</HasNonCategoryOverride>
          <Enabled>onEssentialMonitoring</Enabled>
          <Target>ManagementPackElementUniqueIdentifier=6c4bb046-82a8-ad78-0bc5-
          97aa4b8cc200</Target>
          <ConfirmDelivery>False</ConfirmDelivery>
          <Remotable>True</Remotable>
          <Priority>Normal</Priority>
          <Category>Discovery</Category>
          <DataSource>DiscoveryDataSource</DataSource>
          <DiscoveryClassCollection>{}</DiscoveryClassCollection>
          <DiscoveryRelationshipCollection>{}</DiscoveryRelationshipCollection>
          <XmlTag>Discovery</XmlTag>
          <Name>Microsoft.Windows.Server.2000.AllServersComputerGroupDiscovery</Name>
          <Id>06d8e298-8e6c-02e8-8a2f-a4aa7a4dede0</Id>
          <DisplayName>Populate All Windows Server 2000 Computer Group</DisplayName>
          <Description>This rule populates the Windows Server 2000 Computer Group.</Description>
          <LanguageCode>ENU</LanguageCode>
          <Comment />
          <Status>Unchanged</Status>
          <LastModified>1/8/2009 10:30:10 AM</LastModified>
          <TimeAdded>1/8/2009 10:30:15 AM</TimeAdded>
        </item>
      </output>
    </command-output>
  </commands-output>
</scom-response>
Was this page helpful? Yes No Submitting... Thank you

Comments