A CMDB group is a collection of CIs that lets you apply CI actions collectively to all the CIs that are members in the group.

For example, a CMDB CI Lifecycle Management API can use a CMDB group scriptable API to retrieve the group's list of CIs, and then apply a CI Lifecycle Management action collectively to all the CIs. You can also use a CMDB group with the Dynamic CI Group service population method, to populate an application service.

Group type

You can configure a CMDB group with one of the following group types:
  • Health: The CIs in the group can be monitored by CMDB Health, and the aggregated health is reported for the group as a whole in the CMDB group view dashboard. For example, you can monitor health only for CIs in a specific location.
  • CMDB Workspace: Group appears in the Management view in the CMDB Workspace.

Create and populate a CMDB group

Depending on the group type, you can populate a CMDB group by manually adding individual CIs, selecting saved CMDB queries, or building encoded queries in the CMDB group itself. The resulting CIs from each query are added as members to the group.

Before you begin

Roles required:
  • To view CMDB groups - itil
  • To use a CMDB queries - cmdb_query_builder on top of itil
  • To manually add CIs - itil or asset

Also, to populate a CMDB group using a CMDB query, a saved CMDB query must exist.

About this task

The system property glide.cmdb.group.max_ci_limit determines the maximum number of CIs that a CMDB group can contain (by default 10,000). Once the specified limit is reached, CIs can't be added to the group unless you increase the value of that property.

Procedure

  1. Navigate to All > Configuration > CMDB Groups.
  2. In the CMDB Groups pane, select New.
  3. Fill out the form, right-select the title bar and select Save.
    Table 1. CMDB Group form
    Field Description
    Group Name A unique name for the group.
    Group type
    • Default: Basic group type which can be populated by manually adding CIs, saved queries, and encoded queries.
    • Health: Sets CMDB Health to monitor the health of the group CIs and aggregate health results for the group as a whole.

      Can be populated only by encoded queries.

      Note: Dynamic filters are not supported when populating this type of CMDB groups.
    • CMDB Workspace: Custom class group which appears in the CI Overview panel in CMDB Workspace store app.

      Can be populated only by encoded queries.

  4. To use saved CMDB queries:
    1. Select CMDB Group Contains Saved Queries and then select Add Query.
    2. Select a query from the Query Builder Saved Query list.
    3. Select Submit.
    The returned results consists of the CIs from all the classes that are referenced in the saved query. Those CIs become members of the CMDB group.
  5. To manually add CIs:
    1. Select CMDB Group Contains Configuration Items and then select Edit Manual CI.
    2. (Optional) Add filters.
    3. Select CIs in the Configuration Item list and select the '+' icon at the bottom.
    4. In the Group members list, select the CIs to add to the group.
    5. Select Save or Save and Exit.
    6. In the Save Confirmation dialog box, select OK.
    7. Select Submit.
  6. To use encoded queries:
    1. Select CMDB Group Contains Encoded Queries and then select New.
    2. Fill out the CMDB Group Contains Encoded Query form with the query conditions that filter the CIs to be included in the group.
      Note: Dynamic filters aren't supported for CMDB health-type groups, even though it's possible to add them in a condition clause.
      Field Description
      Class Class for which the encoded query applies to.
      CI Overview Condition Filter that is used in the calculation for the CI Overview chart in CMDB Workspace.

      Applies only if the sn_cmdb_ws.ci_overview.enable_simple_condition system property is set to true (false by default). Improves performance by yielding less results when there is a large amount of data in an environment that hasn't migrated to CSDM.

      This condition isn't used when selecting Show All CI.

      Condition Filters the CIs that are included in the group. Used if CI Overview Condition isn't applicable.
    3. Select Submit.

What to do next

Select Show All CI to show all CIs from all the result columns of the query. However, only CIs from CMDB tables are shown.

Show CI Lifecycle Management details for CMDB group CIs

Display CI Lifecycle Management operational state and CI actions that apply to the CIs that are members of a CMDB group.

Before you begin

Role required: none

About this task

If the CMDB group is based on a CMDB query, then the query runs in real-time and displays the resulting CIs. If the query does not complete successfully due to timing out or for other reasons, then appropriate error messages are displayed.

Procedure

  1. Navigate to All > Configuration > CMDB Groups.
  2. On the CMDB Groups page, click a CMDB group.
  3. Click Show All CI.