3.6 Managing CMS Elements from Operations Center

Because the CMS structure exists in Operations Center (see Section 3.5, Understanding Operations Center’s Services Hierarchy for CMS), there are various maintenance activities that can be accomplished through the Operations Center console. These include the deleting of CMS configuration items and users as well as the managing of relationships.

3.6.1 Relating CIs

Adding a New Relationship

  1. In the Operations Center console Explorer pane, navigate to the CIM element under Services > Service Models > CMS.

    The element must have a CIM class for this option for this functionality to be available.

  2. Right-click the desired CIM element, then select Manage Relationships.

    The Relationships dialog box opens, displaying a list of existing relationships for that configuration item:

  3. Click Add Relationship to open the Add Relationship dialog box:

  4. Select a relationship appropriate for the element from the Select an approved Relationship drop-down list.

  5. Select Use Current Element as Destination to define the current element as the destination instead of the source element.

  6. Select another element as the destination endpoint (or source endpoint if the check box is selected) from the Select Destination Element window.

  7. Click OK to add the new relationship.

    A new relationship definition displays under the element.

Deleting a Relationship

  1. In the Operations Center console Explorer pane, navigate to the CIM element under Services > Service Models > CMS.

  2. Right-click the desired CIM element, then select Manage Relationships.

    The Relationships dialog box opens, displaying a list of existing relationships for that configuration item.

  3. Click Remove Relationship.

    A confirmation message asks whether you wish to delete the relationship.

  4. Do one of the following:

    • Click Yes to confirm the deletion.

    • Click No to cancel the deletion.

3.6.2 Retiring CIs

CIs at the end of their lifecycle can be retired by using automation scripts in Operations Center. When a specific value on a metamodel property is reached (either manually, using BSCM, or a job function changing the value), the script responds to the event by moving the CI from its location into a similar location under a specified root element in the service model.

Before implementation, decide how users should indicate that a CI is retired. In the simplest case, a metamodel property can be used with a behavior model matcher to cover a subset of the service model. The metamodel property page would have a value that is well known and contains the state of the CI either by using several states (such as preproduction, development, QA, cert, retired, and so on) or simply a True/False value.

The default automation script /OperationsCenter_install_path/database/scripts/cmdb/Action_RetireConfigurationItem.fs retires CIs based on the presence of a nonblank value for the supplied property. Alternate approaches can be introduced to this script, or the script modified to handle a series of state values (such as production, qa, dev, test, retired, and so on).

The following step-by-step tasks demonstrate setting up a Retired property that triggers the automation script that retires a CI when Retired is set to True. For additional information about automations, see Defining and Managing Automation Events in the Operations Center 5.6 Server Configuration Guide.

To enable the automation script to retire CIs when a property is set to True, do the following in order:

Creating the New Property and the Accepted Values

For this example, we create Production State behavior model that has a Production State property page with a True/False Retired property.

  1. From the Explorer pane, navigate to the Administration > Metamodel > Behavior Models element.

  2. Right-click the Behavior Models element, then select Create Behavior Model, to open the Create Behavior Model dialog box:

  3. Specify the name of the new model.

    For example, we named ours Production State Model.

  4. Define a matching rule to include all CMS elements.

    We defined a rule to consider all elements under Service Models.

    For more information on creating behavior models and defining matching rules, see the Operations Center 5.6 Service Modeling Guide.

  5. Right-click the Create a Property Page icon, to open the Create Property Page dialog box:

  6. Specify the name of the new property page.

    We named ours Production State.

  7. Click the Create a Property icon, to open the Add Property dialog box:

  8. Specify the name of the new property, then click Forward to continue.

  9. Define the type and accepted values of the new property.

  10. To define a True/False value, select Choice for the property type and enter True and False for Choice Type (Fixed).

  11. Click Finish to create the new property.

    The Add Property dialog box closes. The new property is added to the Create Property Page dialog box.

  12. Click Create to create the new property page.

  13. Test that you can set this value on elements arbitrarily through the property pages of the element using the Operations Center console.

Creating an Element

  1. Create an element under Services > Service Models that retired CIs should be moved to:

  2. View Properties on the element and note the DName.

    For example, we created a Retired element.

Setting Up Automation

To set up automation for the automation server (nonuser) on the branch of elements that contain this service model:

  1. Select the An Element Property Was Added/Changed/Removed check box for the Filter to trigger automation processing:

  2. Select the Retire Configuration Item check box for the action to perform.

  3. Specify settings for the Retire configuration item action.

  4. Specify the DName of the Retired CIs Service Model element where elements are placed after being marked as retired.

  5. Specify the name of the property to monitor.

  6. Click OK.

Retiring an Item to Verify

To retire an item to verify that elements are retired as expected:

  1. View the Properties for a CI element and set the Production State’s Retired property to True.

  2. Verify that the element is moved from its original location to Services > Service Models > Retired.