Sun WBEM SDK Developer's Guide

Working in Namespaces

A namespace is a logical entity, an abstraction of a managed object into which classes and instances can be stored. A namespace can be implemented in various forms including a directory structure, a database, or a folder. By default, CIM WorkShop connects to the CIM Object Manager on the local host, in the default namespace root\cimv2. All classes contained in the default namespace are displayed in the left side of the CIM WorkShop window. The name of the current namespace is listed in the toolbar of the CIM WorkShop window. In CIM WorkShop, you can browse the classes of namespaces on different hosts and you can change location to new namespaces.

When you want to set user privileges for a particular namespace, use the Sun WBEM User Manager. For information about the Sun WBEM User Manager tool, see “Administering Security” in Solaris WBEM Services Administrator's Guide.

This section describes how to:

Creating a Namespace

You can create one or more namespaces within an existing namespace.

How to Create a Namespace
  1. Select Change Namepace from the Workshop menu in the main CIM WorkShop window.

  2. Right click on the namespace in which you want to create the new namespace, and then select Add Namespace.

  3. In the Input dialog box, type the name of the new namespace and click OK.

Changing Namespaces

In the Sun WBEM SDK, the default namespace is root\cimv2. You can change to any other namespace.

How to Change Namespaces
  1. In the CIM WorkShop window, click Workshop->Change Namespace.

  2. In the Change Namespace dialog box, click the icon of the namespace you want to use. Click OK.

    The namespace you have selected becomes the current namespace.

Changing Hosts

You can change to another host to view namespaces or processes.

How to Change Hosts
  1. Click Workshop->Change Host or click the Change Hosts icon in the CIM WorkShop toolbar.

  2. In the Host Name field, type the name of the host on which the namespace you want to view is located.

  3. Type your user name and password in the User Name and Password fields, respectively.

  4. Click OK.

Refreshing Classes and Namespaces

You can refresh the display of the class inheritance tree in the namespace to reflect current changes made by other users who work in the namespace.

How to Refresh a Class Inheritance Tree
  1. In the class inheritance tree, click the folder of the class you want to refresh.

  2. Click Action->Refresh or click the Refresh Selected Class icon in the CIM WorkShop toolbar.