Contidos dentroLocalizar Mais DocumentaçãoDestaques de Recursos de Suporte | Fazer download desta apostila em PDF (267 KB)
Chapter 2 CIM Object ManagerThe Common Information Model (CIM) Object Manager is software that transfers CIM data between WBEM client applications and managed resources. This chapter includes the following topics: About the CIM Object ManagerThe CIM Object Manager manages CIM objects on a WBEM-enabled system. A CIM object is a representation, or model, of a managed resource, such as a printer, disk drive, or CPU. CIM objects are stored internally as Java classes. When a WBEM client application accesses information about a CIM object, the CIM Object Manager contacts either the appropriate provider for that object or the CIM Object Manager Repository. Providers are classes that communicate with managed objects to access data. When a WBEM client application requests data from a managed resource that is not available from the CIM Object Manager Repository, the CIM Object Manager forwards the request to the provider for that managed resource. The provider dynamically retrieves the information. At startup, the CIM Object Manager performs the following functions:
During normal operations, the CIM Object Manager performs these functions:
A WBEM client application contacts the CIM Object Manager to establish a connection when it needs to perform WBEM operations, such as creating a CIM class or updating a CIM instance. When a WBEM client application connects to the CIM Object Manager, it gets a reference to the CIM Object Manager, which it then uses to request services and operations. The init.wbem Command/etc/init.d/init.wbem start | stop | statusThe init.wbem utility is run automatically during installation and each time the system is rebooted. This utility starts the CIM Object Manager and Solaris Management Console (SMC) server, both of which run combined in a single process. It can be also be used to stop the CIM Object Manager and SMC server, or to retrieve status from the server. Generally, you do not need to stop the CIM Object Manager. However, if you change an existing provider, you must stop and restart the CIM Object Manager before using the updated provider. The init.wbem command has three options:
Solaris Management Console ServerThe Solaris Management Console (SMC) server is the back end to the front-end GUI, smc(1M). The SMC front-end GUI provides Solaris management applications such as a User Manager, Disk Manager, and Log Viewer. The SMC server provides tools for the console to download and performs common services for the console and its tools, such as authentication, authorization, logging, messaging, and persistence. System BootingThe init.wbem script is installed in the /etc/init.d directory. A link to the script exists in /etc/rc2.d/S90wbem, which is run with the start option when init state 2 is entered (normally at boot time). Other links to it exist in /etc/rc0.d/K36wbem, /etc/rc1.d/K36wbem, and /etc/rcS.d/K36wbem, which are run with the stop option when init states 0, 1, and S are entered (normally at system halt, or when entering "system administrator mode" or single-user mode). Stopping and Restarting the CIM Object ManagerIf you change a provider, you must stop and restart the CIM Object Manager before using the updated provider. To Stop the CIM Object Manager
To Restart the CIM Object Manager
Upgrading the CIM Object Manager RepositoryIf you are upgrading from Solaris 8 10/00 (WBEM Services 2.2) or earlier to Solaris 8 1/01 (WBEM Services 2.3) , you must upgrade the CIM Object Manager Repository datastore format.
To upgrade a JavaSpaces datastore to the newer Reliable Log repository format, you use the wbemconfig convert command. This command successfully converts any proprietary custom MOF data, but not any CIM or Solaris MOF data you have modified--these will be destroyed. To recompile any modified CIM or Solaris MOF data into the new repository, run the mofcomp compiler on the MOF files containing the class definitions. The wbemconfig convert command creates a directory named /var/sadm/wbem/logr/ that contains the converted data. To prevent corruption of your data, only use the wbemconfig convert command after stopping the CIM Object Manager with the init.wbem stop command. Note - Because the wbemconfig convert command invokes the JVM (Java Virtual Machine) to perform conversion of the repository, you must be running the same version of the JVM as was used to create the original JavaSpaces datastore. After the wbemconfig convert command is completed, you can change to any version of the JVM you want. Upgrading the CIM Repository datastore format is a two-part process:
Before Installing Your New Version of Solaris
After Installing Your New Version of Solaris
Setting the Solaris Provider CLASSPATHTo set the Solaris provider's CLASSPATH, use the client APIs to create an instance of the Solaris_ProviderPath class and set its pathurl property to the location of your provider class files. The Solaris_ProviderPath class is stored in the \root\system namespace. You can also set the provider CLASSPATH to the location of your provider class files. You can set the class path to the jar file or to any directory that contains the classes. Use the standard URL format that Java uses for CLASSPATHs.
To Set the Provider CLASSPATH
Exception MessagesThe CIM Object Manager generates exception messages to indicate incorrect MOF syntax and semantics. For an explanation of exception messages, see Chapter 6, CIM Exception Messages. |
||||||||||