manpages.info - online man pages   

SunOS man pages : mofcomp (1)

Maintenance Commands                                  mofcomp(1M)

NAME

mofcomp - compile MOF files into CIM classes

SYNOPSIS

/usr/sadm/bin/mofcomp [ -help ] [ -v ] [ -sc ] [ -si ] [ -sq ] [ -version ] [ -c cimom_hostname ] [ -o dir- name ] [ -p password ] [ -u username ] [ -x ] file

DESCRIPTION

The mofcomp utility is executed during installation to com- pile MOF files that describe the CIM and Solaris Schemas into the CIM Object Manager Repository, a central storage area for management data. The CIM Schema is a collection of class definitions used to represent managed objects that occur in every management environment. The Solaris Schema is a collection of class definitions that extend the CIM Schema and represent managed objects in a typical Solaris operating environment. The mofcomp utility must be run as root or as a user with write access to the namespace in which you are compiling. MOF is a language for defining CIM classes and instances. MOF files are ASCII text files that use the MOF language to describe CIM objects. A CIM object is a computer representa- tion or model of a managed resource, such as a printer, disk drive, or CPU. Many sites store information about managed resources in MOF files. Because MOF can be converted to Java, Java applica- tions that can run on any system with a Java Virtual Machine can interpret and exchange this information. You can also use the mofcomp utility to compile MOF files at any time after installation.

OPTIONS

The following options are supported: -c cimom_hostname Specify a remote system running the CIM Object Manager. -help List the arguments to the mofcomp utility. -o dirname Run compiler in standalone mode, without the CIM Object Manager. Specify dirname as the directory in which the compiler output is to be stored. In this mode, the CIM Object Manager need not be running. -p password Specify a password for connecting to the CIM Object SunOS 5.8 Last change: 14 Nov 2000 1 Maintenance Commands mofcomp(1M) Manager. Use this option for compilations that require privileged access to the CIM Object Manager. If you specify both -p and -u, you must type the password on the command line, which can pose a security risk. A more secure way to specify a password is to specify -u but not -p, so that the compiler will prompt for the password. -sc Run the compiler with the set class option, which updates a class if it exists, and returns an error if the class does not exist. If you do not specify this option, the compiler adds a CIM class to the connected namespace, and returns an error if the class already exists. -si Run the compiler with the set instance option, which updates an instance if it exists, and returns an error if the instance does not exist. If you do not specify this option, the compiler adds a CIM instance to the connected namespace, and returns an error if the instance already exists. -sq Run the compiler with the set qualifier types option, which updates a qualifier type if it exists, and returns an error if the qualifier type does not exist. If you do not specify this option, the compiler adds a CIM qualifier type to the connected namespace, and returns an error if the qualifier type already exists. -u username Specify user name for connecting to the CIM Object Manager. Use this option for compilations that require privileged access to the CIM Object Manager. If you specify both -p and -u, you must type the password on the command line, which can pose a security risk. A more secure way to specify a password is to specify -u but not -p, so that the compiler will prompt for the password. -v Run the compiler in verbose mode, which displays com- piler messages. -version Display the version of the MOF compiler. -x Generate XML documents for the CIM classes defined in the input MOF file.

OPERANDS

The following operands are supported: file The pathname of the file to be compiled. SunOS 5.8 Last change: 14 Nov 2000 2 Maintenance Commands mofcomp(1M)

EXIT STATUS

The mofcomp utility exits with 0 upon success and a positive integer upon failure.

FILES

The MOF files that describe the CIM Version 1 and Version 2 Schema and the Solaris Schema are: /usr/sadm/mof/CIM_Application23.mof /usr/sadm/mof/CIM_Core231.mof /usr/sadm/mof/CIM_Dap23.mof /usr/sadm/mof/CIM_Device23.mof /usr/sadm/mof/CIM_Event1.0.mof /usr/sadm/mof/CIM_Network23.mof /usr/sadm/mof/CIM_Physical23.mof /usr/sadm/mof/CIM_Schema23.mof /usr/sadm/mof/CIM_System23.mof /usr/sadm/mof/CIM_Support23.mof /usr/sadm/mof/CIM_User23.mof /usr/sadm/mof/Solaris_Acl1.0.mof /usr/sadm/mof/Solaris_Application1.0.mof /usr/sadm/mof/Solaris_CIMOM1.0.mof /usr/sadm/mof/Solaris_Core1.0.mof SunOS 5.8 Last change: 14 Nov 2000 3 Maintenance Commands mofcomp(1M) /usr/sadm/mof/Solaris_Device1.0.mof /usr/sadm/mof/Solaris_Event1.0.mof /usr/sadm/mof/Solaris_Network1.0.mof /usr/sadm/mof/Solaris_Schema1.0.mof /usr/sadm/mof/Solaris_SNMP1.0.mof /usr/sadm/mof/Solaris_System1.0.mof /usr/sadm/mof/Solaris_Users1.0.mof

ATTRIBUTES

See attributes(5) for descriptions of the following attri- butes: ____________________________________________________________ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | |_____________________________|_____________________________| | Availability | SUNWwbcor | |_____________________________|_____________________________|

SEE ALSO

wbemadmin(1M), init.wbem(1M), attributes(5) SunOS 5.8 Last change: 14 Nov 2000 4