The following procedure shows how to create a registry discovery using both the Operations Manager 2007 Authoring console and Visual Studio Authoring Extensions.
This exercise applies to the following products:
Before you perform this procedure, you must first complete the following prerequisite procedures:
The Microsoft System Center team has validated this procedure as of the original version. We will continue to review any changes and periodically provide validations on later revisions as they are made. Please feel free to make any corrections or additions to this procedure that you think would assist other users
The registry discovery created in this procedure has the following characteristics:
<!-- Computer Name specifies the computer with the registry to check. We will use a variable for the local computer. -->
<
ComputerName
>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</
>
<!-- Registry Attribute Definitions specify which keys and values we want from the registry. -->
RegistryAttributeDefinitions
RegistryAttributeDefinition
AttributeName
>AppExists</
Path
>SOFTWARE\MyApp</
PathType
>0</
AttributeType
</
>AppVersion</
>SOFTWARE\MyApp\MyVersion</
>1</
<!-- Frequency specifies how often we will run the discovery. -->
Frequency
>3600</
<!-- Class ID specifies the class that we are discovering. -->
ClassId
>$MPElement[Name="MyMP.MyComputerRole1"]$</
<!-- Instance Settings specify the values to use for different properties of the discovered class. -->
InstanceSettings
Settings
Setting
Name
>$MPElement[Name="Windows!Microsoft.Windows.Computer"]/PrincipalName$</
Value
>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/PrincipalName$</
>$MPElement[Name="MyMP.MyComputerRoleBase"]/Version$</
>$Data/Values/AppVersion$</
>$MPElement[Name="System!System.Entity"]/DisplayName$</
<!-- Expression specifies the criteria that must be true for the instance to be created. -->
Expression
SimpleExpression
ValueExpression
XPathQuery
Type
=
"String"
>Values/AppExists</
Operator
>Equal</
>True</
Richard Mueller edited Revision 1. Comment: Removed (en-US) from title, added tags
Richard Mueller edited Revision 2. Comment: Replaced RGB values with color names in HTML to restore colors