Managing asset classes
To be able to add, update, and delete asset classes, IT asset management must be enabled. For more information, see Enabling-asset-management. Depending on the asset data that you want to store, you can use the available out-of-the-box asset, CI and Asset, and Rule Based Asset classes. Based on your requirements, you can also customize the out-of-the-box classes, or add custom classes. For more information about the available out-of-the-box classes, see BMC-Remedyforce-CMDB-Common-Data-Model.
This topic contains the following information:
- Adding custom asset and Rule Based Asset classes
- Updating asset and Rule Based Asset classes
- Deleting asset and Rule Based Asset classes
Adding custom asset and Rule Based Asset classes
Depending on the type of class you are adding, you must perform the following actions:
- To add an asset or a CI and Asset class:
To add a Rule Based Asset class:
To add the class details
- On the CMDB Classes list view page, click
.
In the CMDB Class Type list, select one of the following options:
- To create an asset class, select Asset.
- To create a Rule Based Asset class, select Rule Based Asset.
- To create a class which is both CI and asset, select CI and Asset.
- From the Superclass lookup, and select the superclass.
By default, the Superclass lookup displays BMC_BaseElement. When you select a superclass, the hierarchy of the selected class, starting from the BMC_BaseElement class, is displayed on the UI. - In the Class Name field, enter a unique class name.
The system validates that the class name is unique. The class name can contain only uppercase and lowercase letters from A through Z, numbers 0 through 9, and the underscore (_) character. It must begin with a letter, not end with an underscore, and not contain two consecutive underscores. - (Optional) In the Display Label field, enter a unique display label of the class.
By default, the entered class name is displayed as the display label, which you can update. For more information, see Updating asset and Rule Based Asset classes. - Depending on the type of class you are adding, perform one of the following actions:
- If you are adding an asset or a CI and Asset class, skip to step 7.
If you are adding a Rule Based Asset class, perform the following actions from the Criteria section on the CMDB Class form:
From the <Field> list, select the required operand value.
- From the <Operator> list, the only available operator is " = ". Its is automatically populated when you select the operand value from the <Field> list.
- Enter an operand field value in the corresponding text box.
- To add multiple rules, click on
and add the required rules.
Multiple rules are combined by using the logical operator "AND".
To display the class in the Remedyforce CMDB tab, ensure that the Display in CMDB check box is selected.
To create an abstract class, select the Abstract check box.
(Optional) To display the default class and class impacted icons in the Remedyforce CMDB tab, Relationships tab of the Instance Editor, and in the CMDB Explorer, ensure that the Use Default radio button is selected.
By default, the Use Default radio button is selected. If you want to replace the default class and the class impacted icons with custom images, perform the following steps:- Click the Select Custom radio button.
- Next to Class Icon, click Browse.
- From the Add Image window, select the class icon image file.
- Next to Class Impacted Icon, click Browse.
- From the Add Image window, select the class impacted icon image file.
- Click
.
- Depending on the class type that you are adding, perform one of the following actions:
- For Asset and CI and Asset class types, add the class attributes. For more information, see Adding the class attributes.
- For Rule Based Asset class type, activate the Rule Based Asset class. For more information, see Activating Rule Based Asset classes.
Adding the class attributes
When you save the class details, the Manage Attributes section of the UI is displayed on the CMDB Class form, which enables you to do the following:
- View the Field Set Label and Field Set Name fields that you must enter for the class.
Access the links to the Base Element object to add the field set and attributes of the class.
Click on Field Set to create the field set of the class; click Custom Fields to create the unique attributes of the class.
To add a field set for a custom class
- In the Manage Attributes section, click on the Field Set link.
- In the Field Sets section of the Base Element object page, click New.
- In the Field Set Label text box, enter the field set label that is displayed on the Manage Attributes section.
- In the Field Set Name text box, the field set name is automatically populated.
Ensure that the field set name is the same as the one displayed in the Manage Attributes section. - In the Where is this used? text box, enter a brief description of where and how the field set is used.
- Click Save.
To add fields for the custom class attributes
- In the Manage Attributes section, click on the Custom Fields link.
- In the Custom Fields & Relationships section of the Base Element object that opens on a new tab, click New.
- From the New Custom Field page, add custom fields for the class attributes.
For more information, see Adding-or-removing-fields-on-the-Instance-Editor-in-CMDB-2-0.
To add the fields to the field set for a custom class
- In the Manage Attributes section, click on the Field Set link.
- In the Field Set section of the Base Element object page that opens on a new tab, navigate to the corresponding field label.
- Click Edit.
- From the object palette, drag the fields to the In the Field Set list.
- Click Save.
Activating Rule Based Asset classes
You must activate a Rule Based Asset class in the following scenarios:
- When you have added or updated a Rule Based Asset class.
- When you have upgraded from an earlier version and have chosen to manually activate the required out-of-the-box Rule Based Asset classes.
To activate a Rule Based Asset class
- On the CMDB Class form of the Rule Based Asset class, click Activate.
On activation, new CIs are automatically synchronized based upon the rules set on the CI Class. - When prompted to synchronize the existing CIs, perform one of the following actions:
- To synchronize existing CIs, click Yes.
- To synchronize existing CIs later, click No.
To synchronize the existing CIs at a later stage, you must perform the following actions:- On the CMDB Class form of the Rule Based Asset class, click Deactivate.
- Click Activate.
- When prompted to synchronize existing CIs, select Yes.
Updating asset and Rule Based Asset classes
Depending on the type of class you are updating, you must perform the following actions:
To update an asset or a CI and Asset class:
To update a Rule Based Asset class:
To update the class details
- On the CMDB Classes list view page, in the Class column, click the class that you want to update.
In the CMDB Class Type list, select the required class type.
From the Superclass lookup, select the superclass.
The hierarchy of the selected superclass, starting from the BMC_BaseElement class, is displayed on the UI.- The Class Name field is not editable.
(Optional) In the Display Label field, enter a unique display label.
The updated label is displayed in the Class column of the CMDB Classes list view page and on the Remedyforce CMDB tab.- Depending on the type of class you are updating, perform one of the following actions:
- For Asset and CI and Asset class types, skip to step 7.
- For Rule Based Asset class type, perform the following actions:
- Click Deactivate.
From the Criteria section, perform the following actions:
- To add new rules:
- From the <Field> list, select the required operand value.
- From the <Operator> list, the only available operator is " = ". Its is automatically populated when you select the operand value from the <Field> list.
- Enter an operand field value in the corresponding text box.
- To add multiple rules, click on
and add the required rules.
Multiple rules are combined by using the logical operator "AND".
- To update or remove existing rules, from the list of rules, select the corresponding rule and perform one of the following actions:
- To update a rule, select the required operand value from the <Field> list, and enter the required operand field value in the corresponding text box, and click
.
- To remove the rule, click
.
- To update a rule, select the required operand value from the <Field> list, and enter the required operand field value in the corresponding text box, and click
- To add new rules:
- Click Activate.
Select the Display in CMDB check box to display the class in the Remedyforce CMDB tab.
Select the Abstract check box to assign the class as an abstract class.
To remove the assignment of a class as an abstract class, clear the Abstract check box.- (Optional) To replace both the default class and class impacted icons with custom images, click the Select Custom radio button.
For more information, see To add the custom asset class details. - Click
.
- Depending on the class type that you are updating, perform one of the following actions:
- For Asset and CI and Asset class types, you can update the class attributes, if required. For more information, see To update the class attributes.
- For Rule Based Asset class type, you must activate the Rule Based Asset class. For more information, see Activating Rule Based Asset classes.
To update the class attributes
You can update the attributes of an asset or a CI and Asset class from the Manage Attributes section of the CMDB Class form.
To add custom fields for the class attributes, click the Custom Fields link.
For more information, see Adding the class attributes.
- To update the field set of the class, perform the following actions:
- Click the Field Set link.
- In the Field Set section of the Base Element object page, click Edit for the corresponding field label, and then perform one or both of the following actions:
- To add new fields, drag the fields from the object palette to the In the Field Set list.
- To delete existing fields from the In the Field Set list, click
next to the fields.
- Click Save.
- Click
.
Deleting asset and Rule Based Asset classes
You can only delete custom classes, and cannot delete any out-of-the-box classes. For the out-of-the-box classes, the button is disabled. However, if a custom asset, CI and Asset, or CI class contains CMDB instances (such as assets, CIs, and CIs and assets), or subclasses, you cannot delete that class. To be able to delete that class, you must first delete the related CMDB instances and subclasses. You can delete a custom Rule Based Asset class even if it contains assets.
To delete a custom asset class
- On the CMDB Classes list view page, select the custom asset class that you want to delete.
- Click
.
Alternatively, you can delete a class by clickingon the CMDB Class form of the class.