next up previous contents
Next: Interoperabilit"at Up: Common Information Model Previous: Meta Schema

Managed Object Format (MOF)

 

Klassendiagramme sind ein probates Mittel, um Managementinformation f"ur Menschen "ubersichtlich darzustellen. Das Managed Object Format (MOF) dient dagegen prim"ar dem Zweck, die Informationen maschinenlesbar zu formatieren. Es handelt sich dabei um eine Sprache zur textuellen Beschreibung CIM-konformer Information. Die Hauptkomponenten einer MOF-Spezifikation sind Klartextbeschreibungen von Klassen, Assoziationen, Eigenschaften, Referenzen, Methoden, Instanzdeklarationen sowie die zugeh"origen Qualifikatoren. Eine MOF-Textdatei kann mittels eines Compilers verarbeitet werden. Auf diese Weise lassen sich statische Daten wie das CIM Schema in ein Repository einlesen.

Die vollst"andige MOF-Syntax ist in der CIM-Spezifikation ([3]) beschrieben. Zur Veranschaulichung folgen Ausz"uge aus der MOF-Beschreibung der Klasse CIM_PhysicalElement:

[Abstract, ... ][*]

class CIM_PhysicalElement : CIM_ManagedSystemElement[*] {

[Key[*] , MaxLen (256)[*] , Description[*] (

"An arbitrary string that uniquely identifies the Physical"

"Element and serves as the Element's key. ...") ]

string Tag;

...

[MaxLen (256), Description (

"The name of the organization responsible for producing the "

"PhysicalElement. ...") ]

string Manufacturer;

...

[MaxLen (64), Description (

"A manufacturer-allocated number used to identify the Physical"

"Element.") ]

string SerialNumber;

[MaxLen (64), Description (

"A string indicating the version of the PhysicalElement.") ]

string Version;

...

[Description (

"Boolean indicating that the PhysicalElement is powered on "

"(TRUE), or is currently off (FALSE).") ]

boolean PoweredOn;

[Description (

"Date that this PhysicalElement was manufactured.") ]

datetime ManufactureDate;

};



Emanuel Heidinger
2/5/2004