Solaris WBEM Services Administrator's Guide

Compiling a MOF File

You can compile a MOF file with or without a .mof extension. The MOF files that describe the CIM and Solaris Schemas are located in /usr/sadm/mof.

How to Compile a MOF File
  1. To run the MOF Compiler with no options, type the following:

    # mofcomp filename

    For example,# mofcomp /usr/sadm/mof/Solaris_Application1.0.mof

    The MOF file is compiled into the CIM Object Manager Repository.

Security Advisory

If you run the mofcomp command with the -p option or -u and -p options, and you include a password on the command line, another user can run the ps command or the history command to see your password.


Note -

If you run a command that requires you to provide your password, immediately change your password after running the command.


The following examples show unsafe (insecure) usage, running the mofcomp command with its -p option and then with its -up options:

% mofcomp -p Log8Rif

% mofcomp -up molly Log8Rif

You should change your password immediately after running the mofcomp command in this way.