cimmof (1) - Linux Manuals
cimmof: compile MOF files into the CIM Repository
NAME
cimmof - compile MOF files into the CIM RepositorySYNOPSIS
cimmof -h | --helpcimmof --version
cimmof [ -w ] [ -E ] [ -uc ] [ -aE | -aV | -aEV ] [ -I path ]
Only a superuser or user with write access to the default or specified
namespace can run the
cimmof
command to compile MOFs in the CIM Repository.
Superclasses must be compiled before subclasses, else the compile will fail.
It is strongly recommended that MOF files include all necessary subclasses,
so they can compile properly even if certain classes are not in the CIM
Repository.
The
cimmof
command is the command line interface to the Managed
Object Format (MOF) Compiler. The MOF Compiler is a utility that
compiles MOF files (using the MOF format defined by the DMTF CIM
Specification) into CIM classes and instances that are stored
in the CIM Repository.
The
cimmof
command can be used to compile MOF files at any time after installation.
If no input file is specified, stdin is used as the input.
The MOF Compiler requires that the input MOF files be in the current
directory or that a fully qualified path be given. To simplify the
specification of multiple MOF files in the
cimmof
command line, the MOF Compiler allows compiling from files containing a list of
MOF files using the include pragma (as shown below).
MOF files using the include pragma must be in the current directory
or in a directory specified by the
-I
command line option.
The
-n
option can be used to specify a
R namespace
in which the CIM classes and instances will be compiled. If this option is not
specified, the default
R namespace
is root/cimv2 (with the exception of provider registration schemas).
For provider registration schemas, if the
-n
option is not
specified, the default
R namespace
is root/PG_InterOp. If
-n
option is specified, the
R namespace
specified must be root/PG_InterOp, otherwise, the error message "The
requested operation is not supported." is returned. For provider
MOFs, the
R namespace
specified must match one of the namespaces specified
in the PG_ProviderCapabilities class schema definition.
The
cimmof
command returns one of the following values:
When an error occurs, an error message is written to stderr and an
error value of 1 is returned.
The
cimmof
command requires that the CIM Server is running. If an operation requires
more than two minutes to be processed, the
cimmof
command prints a timeout message and returns an error value.
Error trying to create Repository in path localhost:5988: Cannot connect to: localhost:5988 Failed to set DefaultNamespacePath.
If the MOF Compiler detects an error in the MOF file while parsing the file,
a parsing error is returned with the line number of the MOF file containing
the error.
Operation cannot be carried out since the specified superclass does not exist.
For a list of possible error messages
that may be returned, refer to the Chapter on WBEM messages in
the Administrator's Guide.
Compile a MOF file into the default namespace in the CIM Repository,
issue the
cimmof
command with no options.
Compile the MOF files into the "root/application" namespace.
Compile the MOF file defined in the directory ./MOF with the name
CIMSchema25.mof, and containing include pragmas for other MOF files also
in the ./MOF directory.
Display Usage Info for the
cimmof
command.
Remarks
DESCRIPTION
Options
The
cimmof
command recognizes the following options:
EXIT STATUS
USAGE NOTES
DIAGNOSTICS
EXAMPLES