JavaScript is required to for searching.
Skip Navigation Links
Exit Print View
Oracle Solaris WBEM Developer's Guide     Oracle Solaris 11 Express 11/10
search filter icon
search icon

Document Information

Preface

1.  Overview of Solaris Web-Based Enterprise Management

2.  Using the CIM Object Manager

3.  Using the Sample Programs

About the Sample Programs

Sample Applet

How to Run the Sample Applet Using Appletviewer

How to Run the Sample Applet in a Web Browser

Sample Client Programs

Running the Sample Client Programs

How to Set the CLASSPATH

How to Run the Sample Client Programs

Sample Provider Programs

How to Run the Sample Provider Programs

4.  Writing a Client Program

5.  Writing WBEM Queries

6.  Writing a Provider Program

7.  Creating JavaBeans Components Using the MOF Compiler

8.  Administering Security

9.  Troubleshooting

A.  Solaris Schema

Index

Sample Client Programs

The sample client programs are located in subdirectories of /usr/demo/wbem/client, and are described in the following table.

Table 3-1 Sample Client Programs

Directory
Program
Purpose
./batching
./TestBatch host username password classname rmi|http
Perform enumerateInstanceName, getClass, and enumerateInstances in a single batching call
./enumeration
./ClientEnum host username password classname rmi|http
Enumerate classes and instances in the specified class in the default namespace, root\cimv2, on the specified host
./events
./Subscribe host username password classname
Subscribe to lifecycle events for a specified class, print events that occur within one minute of the subscription, and then unsubscribe to the events
./logging
./CreateLog host root-username root-password rmi|http
Create a log record on the specified host
./ReadLog host root-username root-password rmi|http
Read a log record on the specified host
./misc
./DeleteClass host classname root-username root-password rmi|http
Delete the specified class in the default namespace root\cimv2 on the specified host
./DeleteInstances host classname root-username root-password rmi|http
Delete instances of the specified class in the default namespace root\cimv2 on the specified host
./namespace
./CreateNameSpace host parentNS childNS root-username root-password rmi|http
Connect to the CIM Object Manager as the specified user, and create a namespace on the specified host
./DeleteNameSpace host parentNS childNS root-username root-password rmi|http
Delete the specified namespace on the specified host
./query
./ExampleQuery host username password rmi|http WQL-query
Create a test class with sample instances, and perform queries on that class
./TestQuery host username password rmi|httpWQL-query
Perform the specified WQL query
./systeminfo
./SystemInfo host username password rmi|http
Display Solaris processor and system information for the specified host in a separate window

Running the Sample Client Programs

You must first set the CLASSPATH to include the necessary .jar files before you run the client programs.

How to Set the CLASSPATH

How to Run the Sample Client Programs

Most of the sample client programs accept an optional parameter that specifies the protocol to use to connect to the CIM Object Manager. RMI is the default protocol.

Example 3-1 Running the SystemInfo Program

For instance, the following example runs the SystemInfo program by connecting to myhost as the root user with the secret password using the HTTP protocol.

% java SystemInfo myhost root secret http