locked
How to delete a ManagementPackDisovery object from a Management Pack? RRS feed

  • Question

  • This question is related to System Center Service Manager.

    If I have a ManagementPackDiscovery object and the discovery configuration looks like this (found in management pack):

    <Discovery ID="---_c8cd8664969e4c27a0d3a3128fa622d9.Discovery" Enabled="true" Target="---_c8cd8664969e4c27a0d3a3128fa622d9" ConfirmDelivery="false" Remotable="true" Priority="Normal">
        <Category>PerformanceCollection</Category>
        <DiscoveryTypes>
          <DiscoveryRelationship TypeID="MicrosoftSystemCenterInstanceGroupLibrary7585010!Microsoft.SystemCenter.InstanceGroupContainsEntities" />
        </DiscoveryTypes>
        <DataSource ID="GroupPopulationDataSource" TypeID="SystemCenter!Microsoft.SystemCenter.GroupPopulator">
          <RuleId>$MPElement$</RuleId>
          <GroupInstanceId>$MPElement[Name="---_c8cd8664969e4c27a0d3a3128fa622d9"]$</GroupInstanceId>
          <MembershipRules>
            <MembershipRule>
              <MonitoringClass>$MPElement[Name="---"]$</MonitoringClass>
              <RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary7585010!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
            </MembershipRule>
            <MembershipRule>
              <MonitoringClass>$MPElement[Name="---"]$</MonitoringClass>
              <RelationshipClass>$MPElement[Name="MicrosoftSystemCenterInstanceGroupLibrary7585010!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
              <IncludeList>
                <MonitoringObjectId>16925f55-4769-d8e4-035e-ff9e79acfd77</MonitoringObjectId>
              </IncludeList>
            </MembershipRule>
          </MembershipRules>
        </DataSource>
      </Discovery>
    

    How do I delete the ManagementPackDiscovery object from the Management Pack in code?

    Thursday, July 11, 2013 3:33 PM

All replies

  • I have purposely screened some elements for strict purposes.
    Thursday, July 11, 2013 3:34 PM