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.
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.
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.
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.