Define WMI method invocation

As part of creating or modifying a pattern, you can use the WMI method invocation operation to execute a method selected from a table returned by a WMI query.

Before you begin

Navigate to the relevant pattern step:

  1. On the pattern form:
    • Select the relevant identification section for Discovery.

      Or

    • Select the relevant identification or connection section for Service Mapping.
  2. Select the relevant pattern step or click to add a step.

Make sure that the step containing the WMI method invocation operation follows the step with the WMI query operation. The WMI query results in table which you must use as the source table for WMI method invocation operation.

Role required: pd_admin

Basic knowledge of programming is desirable.

About this task

This operation is relevant only for Windows.

Procedure

  1. Select WMI method invocation from the Operation list.
  2. Fill in the fields, as appropriate:
    Field Description
    Enter Source Table Specify the source table name. The source table must be the result of the WMI Query operation you perform before this step.
    Enter WMI Method Select the desired method:
    • In the debug mode, click Get methods and select the method from the list.
    • Not in the debug mode, enter the name of the method as a string, for example, "RunDetails".
    Enter Target Table Specify the target table name.
    Enter Target Column Specify the name of the column to contain the results of the method invocation.
  3. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.

Example

This operation is used in This item
Hierarchy Applications > Directory Services
CI Type IIFP
Pattern IIFP On Windows Pattern
Section AD Home Forest connectivity stage-wmi
Step number and Name 2. invoke_wmi_method Run Details

During discovery of Identity Integration Feature Pack (IIFP), use the RunDetails WMI method to extract information on details from the ManagementAgents table. You discover this table earlier using the WMI query operation. In this case, the result is saved in the same table in the column named "details".


Example of WMI Method Invocation usage

What to do next