Snap-in sample overview for CIM, DMI and SNMP

The CIM, DMI and SNMP snap-in sample program demonstrates how to create a snap in for the CIM Browser, DMI Browser, or SNMP Browser tasks. It can also be used as a general guide for creating any other Director snap ins. Creating and registering a snap in is described in Creating and Registering IBM Director Snap Ins.

Detail of the CIM and DMI snap-in sample

IBM Director defines snap-in points for the CIM Browser, DMI Browser and the SNMP Browser tasks. The CIM, DMI and SNMP snap in sample provides an implementation of each of these snap in interfaces and demonstrates how your organization can create their own snap in customizations.

The sample code consists of Java source for the snap ins and extension.

ProgramGroupSnapIn
It implements the TWGCIMInstanceBrowserInterface interface and displays instances of the Win32_ProgramGroup CIM class in a tree view. This example snap in can be viewed using the console CIM Browser by selecting the Win32_ProgramGroup under the tree path :
    root\CIMV2
      |__ CIM_Setting
        |__ Win32_ProgramGroup
LogicalDiskSnapIn
It implements the TWGCIMPropertiesBrowserInterface interface and displays an instance of the Win32_LogicalDisk CIM class using a pie chart for disk usage. This example snap in can be viewed using the console CIM Browser by selecting the Win32_LogicalDisk under the tree path :
    root\CIMV2
      |__ CIM_ManagedSystemElement
        |__ CIM_LogicalElement
          |__ CIM_LogicalDevice
            |__ CIM_StorageExtent
              |__ CIM_LogicalDisk
                |__ Win32_LogicalDisk
ComponentIDSnapIn
It implements the TWGDMIGroupBrowserInterface interface and displays instances of the "DMTF|ComponentID|*" DMI group in a more readable format.
BobCoSnapInsExtension
Is an extension of the TWGExtension class. This class is the means by which the snap ins are registered with the IBM Director server.
BobCoSnapInsResources
Defines a resource bundle of strings used by the sample.
SysDescrSnapIn
It implements the TWGSNMPInfoBrowserInterface2 interface and displays the MIB information and value of the sysDescr object.

Source files of the sample