cimmofl usage information

Use this command to compile provider registrations and to compile CIM class descriptions (using the Managed Object Format [MOF] language) into the class schema stored in the repository.

The CIMOM must be stopped before using this command.

Note: Start of changeYou can run this command from /QIBM/UserData/OS400/CIM.End of change
Name
cimmofl - used to compile CIM class descriptions (using the MOF language) into the class schema stored in the repository. The CIMOM must be stopped before using this command.
Synopsis
Start of changeUsage:

cimmofl -h | --help

cimmofl --version

cimmofl [ -w ] [ -E ] [ -uc ] [ -aE | -aV | -aEV ] [ -I path ] [ -n namespace | --namespace namespace ] [ --xml ] [ --tracefile ] [ -q ]

[ -R repositorydir | --CIMRepository repositorydir ] [ -N repositoryname ] [ -M repositorymode] mof_file...

End of change
Description

This command is used to compile provider registrations and to compile CIM class descriptions (using the MOF language) into the class schema stored in the repository. The CIMOM must be stopped before using this command.

The Pegasus MOF compiler is a command-line utility that compiles MOF files (using the MOF format defined by the DMTF CIM Specification) into a Pegasus repository. It allows compiling from structures of MOF files using the include pragma and can either compile into a Pegasus repository or perform a syntax check on the MOF files. The compiler requires that the input MOF files be in the current directory or that a fully qualified path be given. MOF files included using the #pragma include must be in the current directory or in a directory specified by a -I command-line switch.

Options
-h, --help
Print out usage message with command definitions.
Start of change--versionEnd of change
Start of changeDisplays the CIMOM server versionEnd of change
-E
Used to perform a syntax check on the input. This option does not update the repository.
-w
Suppresses warning messages.
-q
Used to suppress all messages except command-line usage errors.
-uc
Used to allow the update of an existing class definition. This option lets you update a leaf class. It does not allow updates of superclasses or classes that have subclasses.
-aE
Used to allow the addition or modification of classes with the experimental qualifier.
-aV
Start of changeUsed to update a class that results in a version change. This option allows the major version of the class to be changed, allows the version to be down leveled, or allows the version to be removed. The version must be specified in a valid format. The format is m.n.u where m is major version, n is minor release and u is update. For example, 2.7.0 is a valid format for CIM schema 2.7.0. If the input class has the same version as the class in the repository, the class is not updated.End of change
-aEV
Allow both Experimental and Version Schema changes.
-R<path>
Start of changeSpecifies the path to the repository to be written. Specify an absolute or relative path. The default is /QIBM/UserData/OS400/CIM.End of change
--CIMRepository<path>
If specified, this overrides the current repository path. Specify an absolute or relative path. The default is /QIBM/UserData/OS400/CIM.
-I<path>
Used to specify a path to the included MOF files.
-n<path>
Used to override the default CIM repository namespace. The default is root/cimv2.
--namespace<path>
Used to override default CIM repository namespace. The default is root/cimv2.
--xml
Used to generate XML to standard output. This option does not update the repository.
--trace
Used to write trace information to a file. The output destination is standard output.
--trace=<tracefile>
Used to write trace information to the specified file.
Start of change-N repositoryname End of change
Start of changeUsed to specify the repository name. This is the relative path to the directory in the -R option. The default is repository.End of change
Start of change-M repositorymodeEnd of change
Start of change Used to specify the Repository mode [XML, BIN].
Note: The default is XML, and this is the only allowed value on i5/OS™.
End of change
Examples
cimmofl -w -Rtestrepository -I./myDir myDir/CIM_Schema.mof
Note: Compile the Managed Object Format (MOF) file located in directory myDir with the name CIM_Schema.mof. CIM_Schema.mof includes pragmas for other mof files that are also in the MOF directory. It will create the repository in directory testrepository using the default namespace root/cimv2. It assumes that the testrepository directory exists. Use the -w option to suppress warning messages.

Start of changecimmofl -w -R/qibm/userdata/os400/cim -I/qibm/proddata/os400/cim/schemas/cim -nroot/cimv2 /qibm/proddata/os400/cim/schemas/cim/CIM_Schema.mofEnd of change

Note: Compile the MOF file located in the directory /qibm/proddata/os400/cim/schemas/cim with the name CIM_Schema.mof. CIM_Schema.mof includes pragmas for other mof files that are also in the /qibm/proddata/os400/cim/schemas/cim directory. It will create the repository in directory /qibm/userdata/os400/cim using namespace root/cimv2. It assumes that the /qibm/userdata/os400/cim directory exists. Use the -w option to suppress warning messages.

iSeries-specific usage: On an iSeries™ server, this command requires the user to have *IOSYSCFG and *ALLOBJ authority.

Related concepts
Pegasus command-line utilities