As part of creating or modifying a discovery pattern, you can use the Get registry key operation to retrieve and select registry key attributes to store in a table.

Before you begin

Role required: none

Navigate to the relevant pattern step:

  1. On the pattern form, select the relevant identification section for Discovery.

    Alternatively, select the relevant identification or connection section for Service Mapping.

  2. Select the relevant pattern step or click Add a step button to add a step.

Basic knowledge of programming is desirable.

Role required: pd_admin

About this task

This operation is relevant only for Windows.

Procedure

  1. Select Get registry key from the Operation list.
  2. If working in the Debut Mode, perform the following steps:
    1. Click Browse and select the registry key.
      The selected key path is placed in the Registry key path field. A form opens and displays a list of keys next to the tree.

      You can use variables. You can also enter a value from the specific field in a tabular variable as described in Enter values and variables in patterns.

    2. Select the key to show the attributes and click OK.
  3. If not working in the Debug Mode, specify the registry key path in the Registry key path field.
  4. Select the relevant option from the Build Variables-Keys Table list:
    • Select By Using All Keys From The Registry Directory, and enter the name of the table to contain the keys and variables.
    • Select By Building The Table From The Browser or Manually, and specify the keys on which you want to build the table. If there is more than one key, it creates a table to hold variables.
  5. Define the name of the table to which you want to save the operation result.
  6. Select Terminate to stop discovery if no results are found.
  7. If in Debug mode, test the step by clicking Test and checking that the operation brings the result you expected.

Example

Get registry keys and values of "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\InetStp” and save the value in the "version" variable.


Get Registry Key operation

What to do next

cmdb-key-value
Discovery also collects cloud tags that are specific to each virtual machine (VM) and saves them to the Key Value [cmdb_key_value] table.