Documentation Home
> WBEMfor Solaris on Sun Developer's Guide
WBEMfor Solaris on Sun Developer's Guide
Book Information
Preface
Part I Introduction
Chapter 1 Overview of WBEM
About WBEM
Common Information Model
CIM Terminology
CIM Structure
The Core Model
The Common Model
CIM Extensions
Managed Object Format
The MOF Syntax
Schema MOF Files
CIM and Solaris
Sun WBEM SDK
Solaris WBEM Services
Part II Sun WBEM SDK
Chapter 2 Installing the Sun WBEM SDK
About the Sun WBEM SDK
CIM WorkShop
Client API
Provider API
MOF Compiler
Sample Client Programs
Sample Provider Programs
Documentation
Installation Prerequisites
Shared Packages
Installing the Sun WBEM SDK
Getting Started with Sun WBEM SDK
Uninstalling the Sun WBEM SDK
Chapter 3 MOF Compiler
About the MOF Compiler
MOF Compiler Location
MOF Compiler Parameters
Syntax of the MOF Compiler
Security Advisory for Using Passwords
Compiling a MOF File
Example of MOF Output
Chapter 4 CIM WorkShop
About CIM WorkShop
Starting CIM WorkShop
Navigating in CIM WorkShop
Browsing the Class Inheritance Tree
Finding a Class
Viewing Class Characteristics
Selecting a Class
Viewing Class Properties
Viewing Class Methods
Viewing Qualifiers
Viewing the Scope of a Qualifier
Viewing the Flavor of a Qualifier
Working in Namespaces
Changing Namespaces
Changing Hosts
Refreshing Classes and Namespaces
Working with Classes
Adding a Class
Creating a Class
Adding Qualifiers
Adding New Properties to a Class
Adding Qualifiers to a New Property
Deleting Classes and Their Attributes
Deleting a Class
Deleting a Property of a Class
Deleting Qualifiers
Working with Instances
Displaying Instances
Adding Instances
Deleting Instances
Reference: CIM WorkShop Window and Dialogs
The CIM WorkShop Window
CIM WorkShop Toolbar Icons
The Properties Tab
The Methods Tab
CIM WorkShop Menus
Login Dialog Box
New Class Dialog Box
Add Properties Dialog Box
Qualifiers Dialog Box
Scope Dialog Box
Flavors Dialog Box
Value Type Dialog Boxes
Real Integer Dialog Box
Signed Integer Dialog Box
Unsigned Integer Dialog Box
String Dialog Box
Array Dialog Boxes
Boolean Dialog Box
Instance Window
Frames of the Instances Window
Instances Window Toolbar Icons
Menus of the Instances Window
Add Instances Dialog Box
Chapter 5 Application Programming Interfaces
About the APIs
The API Packages
CIM API Package (com.sun.wbem.cim)
Exception Classes
Client API Package (com.sun.wbem.client)
Provider API Package (com.sun.wbem.provider)
Chapter 6 Writing Client Applications
Overview
Sequence of a Client Application
Example -- Typical Sun WBEM SDK Application
Typical Programming Tasks
Opening and Closing a Client Connection
Using Namespaces
Connecting to the CIM Object Manager
Examples -- Connecting to the CIM Object Manager
Closing a Client Connection
Working with Instances
Creating an Instance
Example -- Creating an Instance
Deleting an Instance
Example -- Deleting an Instance
Getting and Setting Instances
Example -- Getting Instances
Example -- Getting a Property
Example -- Setting Instances
Enumerating Objects
Example -- Enumerating Namespaces
Example -- Enumerating Classes
Calling Methods
Example -- Calling a Method
Retrieving Class Definitions
Example -- Retrieving a Class Definition
Handling Exceptions
Using the Try/Catch Clauses
Syntactic and Semantic Error Checking
Advanced Programming Topics
Creating a Namespace
Example -- Creating a Namespace
Deleting a Namespace
Example -- Deleting a Namespace
Creating a Base Class
Example -- Creating a CIM Class
Deleting a Class
Example -- Deleting a Class
Working with Qualifier Types and Qualifiers
Example -- Getting CIM Qualifiers
Example -- Setting CIM Qualifiers
Sample Programs
Chapter 7 Writing a Provider Program
About Providers
Types of Providers
Implementing a Provider Interface
The Instance Provider Interface (InstanceProvider)
Example -- Implementing an Instance Provider
The Property Provider Interface (PropertyProvider)
Example -- Implementing a Property Provider
The Method Provider Interface (MethodProvider)
Example -- Implementing a Method Provider
Writing a Native Provider
Installing a Provider
Registering a Provider
Example -- Registering a Provider
Modifying a Provider
Provider Examples
Chapter 8 Using Sun WBEM SDK Examples
About Example Programs
Using Client Examples
Client Example Files
Running the Client Examples
Using the Provider Examples
Provider Example Files
Writing a Native Provider
Setting Up the Provider Example
Chapter 9 Error Messages
How Error Messages are Generated
Parts of Error Messages
Error Message Example
For Developers: Error Message Templates
Finding Information About Error Messages
Generated Error Messages
Part III Solaris WBEM Services
Chapter 10 Installing Solaris WBEM Services
About Solaris WBEM Services
CIM Object Manager
Semantic and Syntactic Checking
Sun WBEM User Manager
Solaris Provider
Installation Prerequisites
Shared Packages
Installing Solaris WBEM Services
Configuring After Installing in Solaris 7
Uninstalling Solaris WBEM Services
Chapter 11 CIM Object Manager
About CIM Object Manager
The init.wbem Command
Location of the init.wbem Command
Syntax of the init.wbem Command
The cimom Command
Location of the cimom Command
Syntax of the cimom Command
Stopping the CIM Object Manager
Restarting the CIM Object Manager
Error Messages Generated by the CIM Object Manager
Chapter 12 Administering Security
Overview
Authentication
Authorization
Using the Sun WBEM User Manager to Set Access Control
Using the APIs to Set Access Control
The Solaris_UserAcl Class
The Solaris_NamespaceAcl Class
Error Messages
Chapter 13 Logging Events
About Logging
Log Files
Log File Rules
Log File Format
Log Classes
Solaris_LogRecord
Solaris_LogService
Viewing Log Data
Using the APIs to Enable Logging
Writing Data to a Log File
Reading Data from a Log File
Appendix A Common Information Model (CIM) Terms and Concepts
CIM Concepts
Object-Oriented Modeling
Uniform Modeling Language
CIM Terms
Schema
Class and Instance
Custom Classes: Extensions to CIM
Property
Method
Domain
Qualifier and Flavor
Indication
Association
Reference and Range
Override
Core Model Concepts
System Aspects of the Core Model
System Classes Provided by the Core Model
System Associations Provided by the Core Model
Component Associations
Dependency Associations
Example of an Extension into the Core Model
Common Model Schemas
Systems
Devices
Applications
Networks
Physical
Glossary
Index
A
B
C
D
E
H
I
J
L
M
N
O
P
Q
R
S
T
U
W
© 2010, Oracle Corporation and/or its affiliates