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.
You can run this command from /QIBM/UserData/OS400/CIM.
- 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
- Usage:
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...
- 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.
- --version
- Displays the CIMOM server version
- -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
- Used 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.
- -aEV
- Allow both Experimental and Version Schema changes.
- -R<path>
- Specifies the path to the repository to be written. Specify an absolute or relative path. The default is /QIBM/UserData/OS400/CIM.
- --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.
- -N repositoryname
- Used to specify the repository name. This is the relative path to the directory in the -R option. The default is repository.
- -M repositorymode
- Used to specify the Repository mode [XML, BIN].
The default is XML, and this is the only allowed value on i5/OS®.
- Examples
- cimmofl -w -Rtestrepository -I./myDir myDir/CIM_Schema.mof