Date Posted: September 16, 2008
Tab navigation
1. Which Java™ libraries should be placed into the lib directory?
It is mandatory to place the two libraries described below in the lib directory:
We use Velocity's own logging mechanism here, so, if you want to log messages in this application, you can refer to Velocity's user guide for further details. As an example, it is optional to place the following library in the lib directory: log4j-<version>.jar2. Which properties should be configured in the velocity.properties file?
There are ten properties in the file; the first two are used by Velocity, so please refer to Velocity's user guide if you want to change them. The remaining eight properties are used by the programming assistant:
- CIM.Agent: the URL info of one specific CIM agent, including the IP and port
- CIM.User: the user name of the CIM agent
- CIM.Password: the password for one user name of the CIM agent
- CIM.Namespace: The target name spaces for mining CIM classes: You can use a semicolon ";" to separate multiple items of input; if you specify nothing, all the name spaces will be mined.
- CIM.ClassName: The class names that will be mined out from the name spaces: You can use a semicolon ";" to separate multiple items of input; if you specify nothing, all the CIM classes will be mined.
- Template.Package: indicates the package information for created Java classes
- Template.Author: defines the author information for created Java classes
- Template.Version: specifies the version information for created Java classes.
3. How do I launch this tool?
- Make sure that the required Java libraries are located in the lib directory.
- Set the correct parameters for this tool in the velocity.properties file.
- Modify the content of the cimassistant.bat file to make sure that all JAR files have been set in the class path.
- In order to launch the programming assistant tool, double-click the cimassistant.bat file. All the generated CIM client-side Java classes will be placed in the java directory, and the log file will be located under the base directory.
4. How do I use these created CIM client-side Java classes?
Move all the created Java classes to the correct package, which is defined by the property Template.Package in the velocity.properties file. Then you can use these object-oriented classes as usual. Please refer to the Java comments in each file for further information.
5. How do I modify the content of output Java classes?
You can modify the template named CIM_ClassTemplate.vm in the base directory to meet your own requirements, but this function is limited. If you have any specific requirements, please e-mail the author for much more help.
