The following procedures show how to create a Windows Management Instrumentation (WMI) discovery using 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 WMI discovery created in this procedure has the following characteristics:
<!-- Namespace identifies the WMI namespace containing the class being queried. -->
<
NameSpace
>root\cimv2</
>
<!-- Query is the WQL query to run. -->
Query
>select name, version from cim_datafile where name ='c:\\MyApp\\MyApp.exe'</
<!-- Frequency specifies how often we will run the discovery. -->
Frequency
>14400</
<!-- Class ID specifies the class that we are discovering. -->
ClassId
>$MPElement[Name="MyMP.MyComputerRole2"]$</
<!-- 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/Property[@Name='Version']$</
>$MPElement[Name="System!System.Entity"]/DisplayName$</
Richard Mueller edited Revision 3. Comment: Replaced RGB values with color names in HTML to restore colors
Richard Mueller edited Revision 1. Comment: Removed (en-US) from title, added tags
Richard Mueller edited Revision 2. Comment: Remove blank headings and fix duplicate <a name> tags in HTML