![]() |
![]() |
[ Bottom of Page | Previous Page | Next Page | Contents | Index ]
The first step consists in writing a MOF file for UNIX providers (in other words a textual definiton of a CIM class) and in loading the MOF file to WMI so that the Workbench can be used to create resource models for UNIX. Note that the MOF file must have DOS style CR/LF newlines, otherwise the classes do not show up in WMI.
The usual namespace in WMI is root\cimv2, but for UNIX, load the MOF files into root\default:
mofcomp -N:root\default Sample01.mof
M12_Instrumentation is a non-standard qualifier which applies to Class, Property and Method. Its format is:
[M12_Instrumentation("Java.<path to ILT>|<mappingstring>|<operation>"].
This qualifier is used to identify which ILT ("path to ILT") is able to perform the specified operation.
<path to ILT> is the Java class that implements the ILT and that must be specified with the complete package (with no .class extension).
<mappingstring> is a string whose meaning is known to the ILT.
The allowed operations are:
It is required that all classes have an M12_Instrumentation qualifier for the Enum operation. It is also required that an M12_Instrumentation qualifier for the Get operation be present for every non-key property. As an alternative, when the instrumentation string is the same for every property, a single M12_Instrumentation qualifier for the Get operation can be set at class level. It is also required that an M12_Instrumentation qualifier for the Invoke operation be present for every method. As an alternative, when the instrumentation string is the same for every method, a single M12_Instrumentation qualifier for the Invoke operation can be set at class level.
The following is an example of MOF file for UNIX:
//************************************************************************** [ Description ("Unix File Systems info"), provider("com.tivoli.dmunix.ep.touchpoint.cimom.ifc.M12JavaProvider"), M12_Instrumentation ("Java.com.tivoli.dmunix.ep.ilts.DMXFileSystemIlt | | ENUM"), M12_Instrumentation ("Java.com.tivoli.dmunix.ep.ilts.DMXFileSystemIlt | | GET") ] class DMXFileSystem { [key]string mountPoint; sint32 usedKBytes; sint32 availKBytes; [ provider("com.tivoli.dmunix.ep.touchpoint.cimom.ifc.M12JavaProvider"), M12_Instrumentation ("Java.com.tivoli.dmunix.ep.ilts.DMXFileSystemIlt || GET")] sint32 totalKBytes; };
Properties not associated with any "provider" or "M12_Instrumentation" qualifier are collected by calling the getMultpleProperties method, while all other properties are collected through a getProperty method.
[ Top of Page | Previous Page | Next Page | Contents | Index ]