I am attempting (for the first time) to author a group via VSAE. I am 
attempting to just match on a hostname as a first step, but I haven't 
successfully populated the group. I also tried creating a group in the console, 
exporting the unsealed MP and following the logic without success.

I referenced these links:
https://blogs.technet.microsoft.com/kevinholman/2009/06/10/creating-custom-dynamic-computer-groups-based-on-registry-keys-on-agents/
http://blog.scomskills.com/create-a-computer-or-instance-group/
https://stefanroth.net/2013/11/11/scom-vsae-custom-dynamic-computer-groups-based-on-server-registry-keys/

Any help is appreciated. Thank you very much.

Sanitized MP Fragment:

<ManagementPackFragment SchemaVersion="2.0" 
xmlns:xsd="http://www.w3.org/2001/XMLSchema";>
  <TypeDefinitions>
    <EntityTypes>
      <ClassTypes>
        <ClassType ID="Test.Override.Group" Abstract="false" 
Accessibility="Public" Base="SC!Microsoft.SystemCenter.ComputerGroup" 
Hosted="false" Singleton="true" />
      </ClassTypes>
    </EntityTypes>
  </TypeDefinitions>
  <Monitoring>
    <Discoveries>
      <Discovery ID="Test.Override.Group.DiscoveryRule" Enabled="true" 
Target="Test.Override.Group" ConfirmDelivery="false" Remotable="true" 
Priority="Normal">
        <Category>Discovery</Category>
        <DiscoveryTypes>
          <DiscoveryRelationship 
TypeID="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities" />
        </DiscoveryTypes>
        <DataSource ID="GroupPopulationDataSource" 
TypeID="SC!Microsoft.SystemCenter.GroupPopulator">
          <RuleId>$MPElement$</RuleId>
          
<GroupInstanceId>$MPElement[Name="Test.Override.Group"]$</GroupInstanceId>
          <MembershipRules>
            <MembershipRule>
              
<MonitoringClass>$MPElement[Name="Windows!Microsoft.Windows.Server.Computer"]$</MonitoringClass>
              
<RelationshipClass>$MPElement[Name="MSIL!Microsoft.SystemCenter.InstanceGroupContainsEntities"]$</RelationshipClass>
              <Expression>
                <RegExExpression>
                  <ValueExpression>
                    
<Property>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/NetbiosComputerName$</Property>
                  </ValueExpression>
                  <Operator>ContainsSubstring</Operator>
                  <Pattern>HOSTNAME</Pattern>
                </RegExExpression>
              </Expression>
            </MembershipRule>
          </MembershipRules>
        </DataSource>
      </Discovery>
    </Discoveries>
  </Monitoring>
  <LanguagePacks>
    <LanguagePack ID="ENU" IsDefault="true">
      <DisplayStrings>
        <DisplayString ElementID="Test.Override.Group">
          <Name>Test Override</Name>
          <Description>Searches for 'Windows Server Computer' matching 
"HOSTNAME".</Description>
        </DisplayString>
        <DisplayString ElementID="Test.Override.Group.DiscoveryRule">
          <Name>Discovery rule populates "Test Override" group.</Name>
        </DisplayString>
      </DisplayStrings>
    </LanguagePack>
  </LanguagePacks>
</ManagementPackFragment>
Confidentiality Notice: This is a transmission from Community Hospital of the 
Monterey Peninsula. This message and any attached documents may be confidential 
and contain information protected by state and federal medical privacy 
statutes. They are intended only for the use of the addressee. If you are not 
the intended recipient, any disclosure, copying, or distribution of this 
information is strictly prohibited. If you received this transmission in error, 
please accept our apologies and notify the sender. Thank you.



Reply via email to