Sun WBEM SDK Developer's Guide

Adding Instances

Add instances to a class when you want to modify the inherited qualities of objects.

How to Add an Instance to a Class
  1. In the CIM WorkShop window:

    • Click Action->Instances->Deep Enumeration to list the instances of the current class and all its descendant classes.

      or

    • Click Action->Instances->Shallow Enumeration to list the instances of the current class.

      The Instances window is displayed. All instances of the class are displayed in the left side of the window.

  2. Right-click an instance listed in the Instances window.

    The Add Instances dialog box is displayed with options to Refresh, Add Instance, or Delete Instance.

  3. Click Add Instance.

  4. To modify the inherited properties of an instance:

    1. Click in the value field to be changed.

      A dialog box is displayed in which you can provide a value for the property. The dialog box displayed varies depending on the type of the selected property. For example, if you select a property that has a type string, the String dialog box will display. The Value field of this dialog box accepts only character strings.

    2. In the Value field of the dialog box, type the required value.

  5. Click OK to close the Add Instances window.