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-management-pack operation


The get-monitoringclass-by-management-pack operation retrieves the monitoring classes associated with the specified management pack.

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

Adapter request elements for the get-monitoringclass-by-management-pack operation

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

Sample adapter request for the get-monitoringclass-by-management-pack operation

<scom-request>
 <operation-name>get-monitoringclass-by-management-pack</operation-name>
 <command-request>
   <timeout-secs>120</timeout-secs>
   <command-parameters>
     <managementpack>
       <managementpack-id>66de9512-d446-f46b-bb85-197ec864f1f7</managementpack-id>
     </managementpack>
   </command-parameters>
 </command-request>
</scom-request>


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

Sample adapter response for get-monitoringclass-by-management-pack 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 -managementpack (get-managementpack -id
        66de9512-d446-f46b-bb85-197ec864f1f7)</command>
       <execution-milliseconds>4265</execution-milliseconds>
       <exit-code>0</exit-code>
       <status>success</status>
       <count>2</count>
     </metadata>
     <output>
       <item>
         <ManagementGroup>CATNoida</ManagementGroup>
         <ManagementGroupId>ae1fcf8a-8088-31d8-93ec-
         90fe77a32d44</ManagementGroupId>
         <Abstract>False</Abstract>
         <Base>ManagementPackElementUniqueIdentifier=d0b32736-5344-2fcc-74b3-
         f72dc64ef572</Base>
         <Hosted>False</Hosted>
         <Singleton>True</Singleton>
         <PropertyCollection>{}</PropertyCollection>
         <XmlTag>ClassType</XmlTag>
         <Accessibility>Public</Accessibility>
         <Name>Microsoft.SystemCenter.NetworkDeviceGroup</Name>
         <Id>95e22e89-b2d9-98fb-2db8-a304194ded96</Id>
         <DisplayName>Network Device Group</DisplayName>
         <Description>Represents a group of network devices that support
          SNMP.</Description>
         <LanguageCode>ENU</LanguageCode>
         <Comment />
         <Status>Unchanged</Status>
         <LastModified>1/8/2009 10:12:59 AM</LastModified>
         <TimeAdded>1/8/2009 10:12:59 AM</TimeAdded>
       </item>
        ...
     </output>
   </command-output>
 </commands-output>
</scom-response>

 

Tip: For faster searching, add an asterisk to the end of your partial query. Example: cert*