1 a.dunfey 1.1 // ===================================================================
2 // Title: System_Logs
3 // $State: Exp $
4 // $Date: 2004/12/13 15:16:43 $
5 // $RCSfile: System_Logs.mof,v $
6 // $Revision: 1.7.2.5 $
7 // ===================================================================
8 //#pragma inLine ("Includes/copyright.inc")
9 // Copyright 1998-2005 Distributed Management Task Force, Inc. (DMTF).
10 // All rights reserved.
11 // DMTF is a not-for-profit association of industry members dedicated
12 // to promoting enterprise and systems management and interoperability.
13 // DMTF specifications and documents may be reproduced for uses
14 // consistent with this purpose by members and non-members,
15 // provided that correct attribution is given.
16 // As DMTF specifications may be revised from time to time,
17 // the particular version and release date should always be noted.
18 //
19 // Implementation of certain elements of this standard or proposed
20 // standard may be subject to third party patent rights, including
21 // provisional patent rights (herein "patent rights"). DMTF makes
22 a.dunfey 1.1 // no representations to users of the standard as to the existence
23 // of such rights, and is not responsible to recognize, disclose, or
24 // identify any or all such third party patent right, owners or
25 // claimants, nor for any incomplete or inaccurate identification or
26 // disclosure of such rights, owners or claimants. DMTF shall have no
27 // liability to any party, in any manner or circumstance, under any
28 // legal theory whatsoever, for failure to recognize, disclose, or
29 // identify any such third party patent rights, or for such party's
30 // reliance on the standard or incorporation thereof in its product,
31 // protocols or testing procedures. DMTF shall have no liability to
32 // any party implementing such standard, whether such implementation
33 // is foreseeable or not, nor to any patent owner or claimant, and shall
34 // have no liability or responsibility for costs or losses incurred if
35 // a standard is withdrawn or modified after publication, and shall be
36 // indemnified and held harmless by any party implementing the
37 // standard from any and all claims of infringement by a patent owner
38 // for such implementations.
39 //
40 // For information about patents held by third-parties which have
41 // notified the DMTF that, in their opinion, such patent may relate to
42 // or impact implementations of DMTF standards, visit
43 a.dunfey 1.1 // http://www.dmtf.org/about/policies/disclosures.php.
44 //#pragma inLine
45 // ===================================================================
46 // Description: The System Model defines system related management
47 // concepts. This file defines the specific concepts to
48 // manage message logs and log records.
49 //
50 // The object classes below are listed in an order that
51 // avoids forward references. Required objects, defined
52 // by other working groups, are omitted.
53 // ==================================================================
54 // Change Log for v2.9 Final
55 // CR1549 - Finalize diagnostics model in 2.9
56 // CR1532 - Fix the LogRecord Key Conflict - add Record Class
57 //
58 // Change Log for v2.9 Preliminary
59 // CR1321 - Superclass MessageLog
60 //
61 // Change Log for v2.8 Final
62 // CR1204 - Removal of Experimental qualifier for Preliminary to Final
63 // CR1223 - SysDev Omnibus MOF corrections.
64 a.dunfey 1.1 //
65 // Change Log for v2.8 Preliminary
66 // CR1056 - Addition of OperationLog
67 // CR938 - Add parseable string for LogRecord data
68 //
69 // Change Log for v2.7
70 // CR757 - Change the subclassing of MessageLog from LogicalElement
71 // to EnabledLogicalElement
72 // CR771 - Add the Composition qualifer to RecordInLog
73 // ===================================================================
74
75 #pragma locale ("en_US")
76
77 // ===================================================================
78 // Log
79 // ===================================================================
80 [Abstract, Version ( "2.9.0" ), Description (
81 "Log represents any type of event, error or informational "
82 "register or chronicle. The object describes the existence of "
83 "the log and its characteristics. Log does not dictate the form "
84 "of the data represented or how records/messages are stored in "
85 a.dunfey 1.1 "the log and/or accessed. Subclasses will define the "
86 "appropriate methods and behavior.")]
87 class CIM_Log : CIM_EnabledLogicalElement {
88
89 [Description (
90 "Maximum number of records that can be captured in the Log. "
91 "If undefined, a value of zero should be specified.")]
92 uint64 MaxNumberOfRecords;
93
94 [Description (
95 "Current number of records in the Log."),
96 Gauge]
97 uint64 CurrentNumberOfRecords;
98
99 [Description (
100 "Requests that the Log be cleared of all entries. \n"
101 "The return value should be 0 if the request was "
102 "successfully executed, 1 if the request is not supported, "
103 "and some other value, as indicated by the ValueMap/Values "
104 "qualifiers, if an error occurred."),
105 ValueMap { "0", "1", "2", "3", "4", "5", "6..0x0FFF",
106 a.dunfey 1.1 "0x1000..0x7FFF", "0x8000.." },
107 Values { "Completed with no error", "Not Supported",
108 "Unspecified Error", "Timeout", "Failed",
109 "Invalid Parameter", "DMTF_Reserved", "Method_Reserved",
110 "Vendor_Reserved" }]
111 uint32 ClearLog();
112
113 };
114
115
116 // ===================================================================
117 // MessageLog
118 // ===================================================================
119 [Version ( "2.9.0" ), Description (
120 "MessageLog represents any type of event, error or "
121 "informational register or chronicle. The object describes the "
122 "existence of the log and its characteristics. Several methods "
123 "are defined for retrieving, writing and deleting log entries, "
124 "and maintaining the log. This type of log uses iterators to "
125 "access the log records, whereas its peer class, RecordLog, "
126 "uses more abstracted access mechanisms.")]
127 a.dunfey 1.1 class CIM_MessageLog : CIM_Log {
128
129 [Key, Description (
130 "CreationClassName indicates the name of the class or the "
131 "subclass used in the creation of an instance. When used "
132 "with the other key properties of this class, this property "
133 "allows all instances of this class and its subclasses to be "
134 "uniquely identified."),
135 MaxLen ( 256 )]
136 string CreationClassName;
137
138 [Key, Override ( "Name" ), Description (
139 "The inherited Name serves as part of the key (a unique "
140 "identifier) for the MessageLog instance."),
141 MaxLen ( 256 )]
142 string Name;
143
144 [Description (
145 "An array of integers indicating the Log capabilities. "
146 "Information such as \"Write Record Supported\" (value= 2) "
147 "or \"Variable Length Records Supported\" (8) is specified "
148 a.dunfey 1.1 "in this property."),
149 ValueMap { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
150 "10" },
151 Values { "Unknown", "Other", "Write Record Supported",
152 "Delete Record Supported", "Can Move Backward in Log",
153 "Freeze Log Supported", "Clear Log Supported",
154 "Supports Addressing by Ordinal Record Number",
155 "Variable Length Records Supported",
156 "Variable Formats for Records",
157 "Can Flag Records for Overwrite" }, ArrayType ( "Indexed" ),
158 ModelCorrespondence { "CIM_MessageLog.CapabilitiesDescriptions"
159 }]
160 uint16 Capabilities[];
161
162 [Description (
163 "An array of free-form strings providing more detailed "
164 "explanations for any of the Log features indicated in the "
165 "Capabilities array. Note, each entry of this array is "
166 "related to the entry in the Capabilities array that is "
167 "located at the same index."),
168 ArrayType ( "Indexed" ),
169 a.dunfey 1.1 ModelCorrespondence { "CIM_MessageLog.Capabilities" }]
170 string CapabilitiesDescriptions[];
171
172 [Description (
173 "The maximum size, in bytes, to which the Log can grow. If "
174 "there is no maximum, then MaxLogSize should be set to 0."),
175 Units ( "Bytes" )]
176 uint64 MaxLogSize;
177
178 [Description (
179 "The size of the Log header, in bytes, if one is present. If "
180 "there is no Log header, then this property should be set to "
181 "0. Headers may include general information about the Log "
182 "such as the current number of records, time of last update, "
183 "or a pointer to the location of the first Log entry. Note "
184 "that this property is NOT the size of the header for an "
185 "individual Log entry. The latter is described by the "
186 "property, SizeOfRecordHeader."),
187 Units ( "Bytes" )]
188 uint64 SizeOfHeader;
189
190 a.dunfey 1.1 [Description (
191 "If the SizeOfHeader property is non-zero, this property "
192 "describes the structure and format of the Log header. It is "
193 "a free-form string. If the SizeOfHeader property is 0, then "
194 "the information in this property is undefined.")]
195 string HeaderFormat;
196
197 [Description (
198 "Maximum size, in bytes, to which an individual Log entry "
199 "(record) can grow - if the Capabilities array includes a "
200 "value of 7 (\"Variable Length Records Supported\"). If the "
201 "Capabilities array does not include a 7, then the Log only "
202 "supports fixed length entries. The size of these entries is "
203 "described by this property."),
204 Units ( "Bytes" )]
205 uint64 MaxRecordSize;
206
207 [Description (
208 "The size of the header for the Log's individual entries, in "
209 "bytes, if record headers are defined. If there are no "
210 "record headers, then this property should be set to 0. "
211 a.dunfey 1.1 "Record headers may include information such as the type of "
212 "the Log entry, the date/time that the entry was last "
213 "updated, or a pointer to the start of optional data. Note "
214 "that this property defines the header size for individual "
215 "records in the Log, while the SizeOfHeader property "
216 "describes the Log's overall header, typically located at "
217 "the start of the MessageLog."),
218 Units ( "Bytes" )]
219 uint64 SizeOfRecordHeader;
220
221 [Description (
222 "If the SizeOfRecordHeader property is non-zero, this "
223 "property describes the structure and format of the record "
224 "headers. It is a free-form string. If the "
225 "SizeOfRecordHeader property is 0, then the information in "
226 "this property is undefined.")]
227 string RecordHeaderFormat;
228
229 [Description (
230 "An enumeration describing the behavior of the Log, when it "
231 "becomes full or near full. For example, the Log may wrap "
232 a.dunfey 1.1 "(value=2) or may simply stop recording entries (value =7). "
233 "\n\n"
234 "Some of the property's possible values need further "
235 "explanation: \n"
236 "3=\"Clear When Near Full\" indicates that all of the Log's "
237 "entries will be deleted when a specified record capacity is "
238 "reached. The capacity is specified in percentage, using the "
239 "property, PercentageNearFull. 'Near Full' may be less than "
240 "100% if the Log takes time to clear, and a position should "
241 "always be available for new records. \n"
242 "4=\"Overwrite Outdated When Needed\" describes that Log "
243 "entries (timestamped later than the date/time specified in "
244 "the property, TimeWhenOutdated) can be overwritten. \n"
245 "5=\"Remove Outdated Records\" specifies that records "
246 "(timestamped later than the date/time specified in the "
247 "property, TimeWhenOutdated) are logically and/or physically "
248 "removed from the Log. \n"
249 "6=\"Overwrite Specific Records\" indicates that specially "
250 "flagged records may be overwritten. This property only "
251 "makes sense when the Capabilities array includes a value of "
252 "10, \"Can Flag Records for Overwrite\"."),
253 a.dunfey 1.1 ValueMap { "0", "1", "2", "3", "4", "5", "6", "7" },
254 Values { "Unknown", "Other", "Wraps When Full",
255 "Clear When Near Full", "Overwrite Outdated When Needed",
256 "Remove Outdated Records", "Overwrite Specific Records",
257 "Never Overwrite" },
258 ModelCorrespondence { "CIM_MessageLog.OtherPolicyDescription",
259 "CIM_MessageLog.TimeWhenOutdated",
260 "CIM_MessageLog.PercentageNearFull" }]
261 uint16 OverwritePolicy;
262
263 [Description (
264 "When the OverwritePolicy specifies a value of 1 "
265 "(\"Other\"), the Log's behavior can be explained using this "
266 "property. If OverwritePolicy is not 1, then this property's "
267 "contents are undefined."),
268 ModelCorrespondence { "CIM_MessageLog.OverwritePolicy" }]
269 string OtherPolicyDescription;
270
271 [Description (
272 "If the OverwritePolicy is based on 'outdated' records "
273 "(values 4 or 5), this property defines when a Log entry is "
274 a.dunfey 1.1 "considered to be outdated - either by time interval or at a "
275 "specific date and time."),
276 ModelCorrespondence { "CIM_MessageLog.OverwritePolicy" }]
277 datetime TimeWhenOutdated;
278
279 [Description (
280 "If the OverwritePolicy is based on clearing records when "
281 "the Log is near full (value=3), this property defines the "
282 "record capacity (in percentage) that is considered to be "
283 "'near full'."),
284 Units ( "Percent" ),
285 ModelCorrespondence { "CIM_MessageLog.OverwritePolicy" }]
286 uint8 PercentageNearFull;
287
288 [Description (
289 "An enumeration describing the last change to the "
290 "MessageLog."),
291 ValueMap { "0", "1", "2", "3", "4" },
292 Values { "Unknown", "Add", "Delete", "Modify", "Log Cleared" }]
293 uint16 LastChange;
294
295 a.dunfey 1.1 [Description (
296 "When a change is made to the Log, the date/time of that "
297 "modification is captured. This property could be used to "
298 "event against any update to the MessageLog.")]
299 datetime TimeOfLastChange;
300
301 [Description (
302 "When a change is made to the Log, the record number that "
303 "was modified is captured.")]
304 uint64 RecordLastChanged;
305
306 [Description (
307 "Boolean indicating that the Log is currently frozen and "
308 "modifications are not allowed.")]
309 boolean IsFrozen;
310
311 [Description (
312 "An enumeration describing the character set used to record "
313 "data in the individual Log entries. For example, the Log "
314 "records may contain ASCII data (value=2), or be raw octet "
315 "strings (value=10)."),
316 a.dunfey 1.1 ValueMap { "0", "1", "2", "3", "4", "5", "6", "7", "8", "9",
317 "10", "11" },
318 Values { "Unknown", "Other", "ASCII", "Unicode", "ISO2022",
319 "ISO8859", "Extended UNIX Code", "UTF-8", "UCS-2",
320 "Bitmapped Data", "OctetString",
321 "Defined by Individual Records" }]
322 uint16 CharacterSet;
323
324 [Description (
325 "Requests that an iteration of the MessageLog be established "
326 "and that the iterator be set to the first entry in the Log. "
327 "An identifier for the iterator is returned as an output "
328 "parameter of the method. \n"
329 "\n"
330 "Regarding iteration, you have 2 choices: 1) Embed iteration "
331 "data in the method call, and allow implementations to "
332 "track/ store this data manually; or, 2) Iterate using a "
333 "separate object (for example, class ActiveIterator) as an "
334 "iteration agent. The first approach is used here for "
335 "interoperability. The second requires an instance of the "
336 "Iterator object for EACH iteration in progress. 2's "
337 a.dunfey 1.1 "functionality could be implemented underneath 1. \n"
338 "\n"
339 "The return value from PositionToFirstRecord should be 0 if "
340 "the request was successfully executed, 1 if the request is "
341 "not supported and some other value if an error occurred. In "
342 "a subclass, the set of possible return codes could be "
343 "specified, using a ValueMap qualifier on the method. The "
344 "strings to which the ValueMap contents are 'translated' may "
345 "also be specified in the subclass as a Values array "
346 "qualifier.")]
347 uint32 PositionToFirstRecord (
348 [IN ( false ), OUT, Description (
349 "An identifier for the iterator.")]
350 string IterationIdentifier);
351
352 [Description (
353 "Requests that the Log's iteration identifier be advanced or "
354 "retreated a specific number of records, or set to the entry "
355 "at a specified numeric location. These two different "
356 "behaviors are accomplished using the input parameters of "
357 "the method. Advancing or retreating is achieved by setting "
358 a.dunfey 1.1 "the MoveAbsolute boolean to FALSE, and then specifying the "
359 "number of entries to advance or retreat as positive or "
360 "negative values in the RecordNumber parameter. Moving to a "
361 "specific record number is accomplished by setting the "
362 "MoveAbsolute input parameter to TRUE, and then placing the "
363 "record number into the RecordNumber parameter. This can "
364 "only be done if the Capabilities array includes a value of "
365 "7, \"Supports Addressing by Ordinal Record Number\". \n"
366 "\n"
367 "After the method completes and if ordinal record numbers "
368 "are supported (the Capabilities array includes a 7), the "
369 "current record number is returned in the RecordNumber "
370 "output parameter. Otherwise, the value of the parameter is "
371 "undefined. \n"
372 "\n"
373 "IterationIdentifier is defined as an Input/Output method "
374 "parameter to allow the Log to embed state information in "
375 "the Identifier and potentially let the identifier be "
376 "maintained by the using application. \n"
377 "\n"
378 "The return value from PositionAtRecord should be 0 if the "
379 a.dunfey 1.1 "request was successfully executed, 1 if the request is not "
380 "supported and some other value if an error occurred. If the "
381 "request is not supported, check the Capabilities array "
382 "regarding support for ordinal record number addressing and "
383 "backward movement in the Log (values 7 and 4, "
384 "respectively). \n"
385 "\n"
386 "Note: In a subclass, the set of possible return codes could "
387 "be described using a ValueMap qualifier on the method. The "
388 "strings to which the ValueMap contents are 'translated' may "
389 "also be specified in the subclass as a Values array "
390 "qualifier.")]
391 uint32 PositionAtRecord (
392 [IN, OUT, Description (
393 "An identifier for the iterator.")]
394 string IterationIdentifier,
395 [IN, Description (
396 "Advancing or retreating the IterationIdentifier is "
397 "achieved by setting the MoveAbsolute boolean to FALSE, "
398 "and specifying the number of entries to advance or "
399 "retreat as positive or negative values in the "
400 a.dunfey 1.1 "RecordNumber parameter. Moving to a specific record "
401 "number is accomplished by setting the MoveAbsolute "
402 "parameter to TRUE, and placing the record number into "
403 "the RecordNumber parameter.")]
404 boolean MoveAbsolute,
405 [IN, OUT, Description (
406 "The relative or absolute record number.")]
407 sint64 RecordNumber);
408
409 [Description (
410 "Requests that the record indicated by the "
411 "IterationIdentifier be retrieved from the MessageLog. After "
412 "retrieval, the IterationIdentifier may be advanced to the "
413 "next record by setting the PositionToNext input parameter "
414 "to TRUE. Two output parameters are defined for the method - "
415 "RecordData which holds the contents of the Log entry (as an "
416 "array of bytes that can be recast to an appropriate "
417 "format), and RecordNumber which returns the current record "
418 "number addressed via the Iteration Identifier. The "
419 "RecordNumber parameter is only defined/valid when the "
420 "Capabilities array indicates that ordinal record number "
421 a.dunfey 1.1 "addressing is supported (a value of 7). \n"
422 "\n"
423 "IterationIdentifier is defined as an Input/Output method "
424 "parameter to allow the Log to embed state information in "
425 "the Identifier and potentially let the identifier be "
426 "maintained by the using application. \n"
427 "\n"
428 "The return value from GetRecord should be 0 if the request "
429 "was successfully executed, 1 if the request is not "
430 "supported, and some other value if an error occurred. In a "
431 "subclass, the set of possible return codes could be "
432 "specified, using a ValueMap qualifier on the method. The "
433 "strings to which the ValueMap contents are 'translated' may "
434 "also be specified in the subclass as a Values array "
435 "qualifier.")]
436 uint32 GetRecord (
437 [IN, OUT, Description (
438 "An identifier for the iterator.")]
439 string IterationIdentifier,
440 [IN, Description (
441 "Boolean indicating that the Iteration Identifier should "
442 a.dunfey 1.1 "be advanced to the next record, after retrieving the "
443 "current Log entry.")]
444 boolean PositionToNext,
445 [IN ( false ), OUT, Description (
446 "The record number.")]
447 uint64 RecordNumber,
448 [IN ( false ), OUT, Description (
449 "The record data.")]
450 uint8 RecordData[]);
451
452 [Description (
453 "Requests that the record indicated by the "
454 "IterationIdentifier be deleted from the MessageLog. After "
455 "deletion, the Iteration Identifier may be advanced to the "
456 "next record by setting the PositionToNext input parameter "
457 "to TRUE. If set to FALSE, then the IterationIdentifier will "
458 "be positioned at the previous record. Two output parameters "
459 "are defined for the method - RecordData which holds the "
460 "contents of the deleted Log entry (as an array of bytes "
461 "that can be recast to an appropriate format or discarded), "
462 "and RecordNumber which returns the current record number "
463 a.dunfey 1.1 "addressed via the IterationIdentifier. The RecordNumber "
464 "parameter is only defined/valid when the Capabilities array "
465 "indicates that ordinal record number addressing is "
466 "supported (a value of 7). \n"
467 "\n"
468 "IterationIdentifier is defined as an Input/Output method "
469 "parameter to allow the Log to embed state information in "
470 "the Identifier and potentially let the identifier be "
471 "maintained by the using application. \n"
472 "\n"
473 "The return value from DeleteRecord should be 0 if the "
474 "request was successfully executed, 1 if the request is not "
475 "supported, and some other value if an error occurred. If "
476 "the request is not supported, check the Capabilities array "
477 "that a value of 3 (\"Delete Record Supported\") is "
478 "specified. \n"
479 "\n"
480 "Note: In a subclass, the set of possible return codes could "
481 "be described using a ValueMap qualifier on the method. The "
482 "strings to which the ValueMap contents are 'translated' may "
483 "also be specified in the subclass as a Values array "
484 a.dunfey 1.1 "qualifier.")]
485 uint32 DeleteRecord (
486 [IN, OUT, Description (
487 "An identifier for the iterator.")]
488 string IterationIdentifier,
489 [IN, Description (
490 "Boolean that when set to TRUE requests the "
491 "IterationIdentifier to be advanced to the next record, "
492 "after the current entry is deleted. If set to FALSE, "
493 "IterationIdentifier is set to the previous record.")]
494 boolean PositionToNext,
495 [IN ( false ), OUT, Description (
496 "The record number.")]
497 uint64 RecordNumber,
498 [IN ( false ), OUT, Description (
499 "The record data.")]
500 uint8 RecordData[]);
501
502 [Description (
503 "Requests that a record be inserted at the Log position "
504 "indicated by the IterationIdentifier. The entry's data is "
505 a.dunfey 1.1 "provided in the RecordData input parameter. After "
506 "insertion, the IterationIdentifier may be advanced to the "
507 "next record by setting the PositionToNext input parameter "
508 "to TRUE. The output parameter, RecordNumber, returns the "
509 "current record number addressed via the "
510 "IterationIdentifier. This parameter is only defined/valid "
511 "when the Capabilities array indicates that ordinal record "
512 "number addressing is supported (a value of 7). \n"
513 "\n"
514 "IterationIdentifier is defined as an Input/Output method "
515 "parameter to allow the Log to embed state information in "
516 "the Identifier and potentially let the identifier be "
517 "maintained by the using application. \n"
518 "\n"
519 "The return value from WriteRecord should be 0 if the "
520 "request was successfully executed, 1 if the request is not "
521 "supported, and some other value if an error occurred. If "
522 "the request is not supported, check the Capabilities array "
523 "that a value of 2 (\"Write Record Supported\") is "
524 "specified. \n"
525 "\n"
526 a.dunfey 1.1 "Note: In a subclass, the set of possible return codes could "
527 "be described using a ValueMap qualifier on the method. The "
528 "strings to which the ValueMap contents are 'translated' may "
529 "also be specified in the subclass as a Values array "
530 "qualifier.")]
531 uint32 WriteRecord (
532 [IN, OUT, Description (
533 "An identifier for the iterator.")]
534 string IterationIdentifier,
535 [IN, Description (
536 "Boolean indicating that the Iteration Identifier should "
537 "be advanced to the next record, after writing the Log "
538 "entry.")]
539 boolean PositionToNext,
540 [IN, Description (
541 "The record data.")]
542 uint8 RecordData[],
543 [IN ( false ), OUT, Description (
544 "The record number.")]
545 uint64 RecordNumber);
546
547 a.dunfey 1.1 [Description (
548 "Requests that an iteration of the Log, identified by the "
549 "IterationIdentifier input parameter, be stopped. The return "
550 "value from CancelIteration should be 0 if the request was "
551 "successfully executed, 1 if the request is not supported "
552 "and some other value if an error occurred. In a subclass, "
553 "the set of possible return codes could be specified, using "
554 "a ValueMap qualifier on the method. The strings to which "
555 "the ValueMap contents are 'translated' may also be "
556 "specified in the subclass as a Values array qualifier.")]
557 uint32 CancelIteration (
558 [IN, Description (
559 "An identifier for the iterator.")]
560 string IterationIdentifier);
561
562 [Description (
563 "Requests that the MessageLog be placed in a frozen state "
564 "(\"Freeze\" input parameter = TRUE) or 'unfrozen' (= "
565 "FALSE). If frozen, modifications to the Log will not be "
566 "allowed. If successful, the Log's IsFrozen boolean property "
567 "will be updated to reflect the desired state. \n"
568 a.dunfey 1.1 "\n"
569 "The method's return code should be 0 if the request was "
570 "successfully executed, 1 if the request is not supported "
571 "and some other value if an error occurred. If the request "
572 "is not supported, check the Capabilities array that a value "
573 "of 5 (\"Freeze Log Supported\") is specified. \n"
574 "\n"
575 "Note: In a subclass, the set of possible return codes could "
576 "be described using a ValueMap qualifier on the method. The "
577 "strings to which the ValueMap contents are 'translated' may "
578 "also be specified in the subclass as a Values array "
579 "qualifier.")]
580 uint32 FreezeLog(
581 [IN, Description (
582 "If TRUE then freeze the log, if FALSE 'unfreeze' the "
583 "log.")]
584 boolean Freeze);
585
586 [Description (
587 "Requests that the record indicated by the "
588 "IterationIdentifier be flagged as overwriteable. This "
589 a.dunfey 1.1 "method is only supported when the Capabilities array "
590 "includes a value of 10, \"Can Flag Records for Overwrite\". "
591 "After updating the entry, the IterationIdentifier may be "
592 "advanced to the next record by setting the PositionToNext "
593 "input parameter to TRUE. One output parameter is defined "
594 "for the method RecordNumber. It returns the current record "
595 "number addressed via the Iteration Identifier. This "
596 "parameter is only defined/valid when the Capabilities array "
597 "indicates that ordinal record number addressing is "
598 "supported (a value of 7). \n"
599 "\n"
600 "IterationIdentifier is defined as an Input/Output method "
601 "parameter to allow the Log to embed state information in "
602 "the Identifier and potentially let the identifier be "
603 "maintained by the using application. \n"
604 "\n"
605 "The return value from FlagRecordForOverwrite should be 0 if "
606 "the request was successfully executed, 1 if the request is "
607 "not supported, and some other value if an error occurred. "
608 "In a subclass, the set of possible return codes could be "
609 "specified, using a ValueMap qualifier on the method. The "
610 a.dunfey 1.1 "strings to which the ValueMap contents are 'translated' may "
611 "also be specified in the subclass as a Values array "
612 "qualifier.")]
613 uint32 FlagRecordForOverwrite (
614 [IN, OUT, Description (
615 "An identifier for the iterator.")]
616 string IterationIdentifier,
617 [IN, Description (
618 "Boolean indicating that the Iteration Identifier should "
619 "be advanced to the next record, after updating the "
620 "current Log entry.")]
621 boolean PositionToNext,
622 [IN ( false ), OUT, Description (
623 "The record number.")]
624 uint64 RecordNumber);
625 };
626
627 // ===================================================================
628 // RecordLog
629 // ===================================================================
630 [Version ( "2.9.0" ), Description (
631 a.dunfey 1.1 "RecordLog serves as an aggregation point for LogRecord "
632 "objects. This class presents a higher level view of a log than "
633 "its peer class MessageLog (which uses iterators) and "
634 "introduces a new key structure. Access to records in this log "
635 "is achieved through the use of the standard CIM Operations "
636 "defined as part of WBEM.")]
637 class CIM_RecordLog : CIM_Log {
638
639 [Key, Description (
640 "Within the scope of the instantiating Namespace, InstanceID "
641 "opaquely and uniquely identifies an instance of this class. "
642 "\nIn order to ensure uniqueness within the NameSpace, the "
643 "value of InstanceID SHOULD be constructed using the "
644 "following 'preferred' algorithm: \n"
645 "<OrgID>:<LocalID> \n"
646 "Where <OrgID> and <LocalID> are separated by a colon ':', "
647 "and where <OrgID> MUST include a copyrighted, trademarked "
648 "or otherwise unique name that is owned by the business "
649 "entity creating/defining the InstanceID, or is a registered "
650 "ID that is assigned to the business entity by a recognized "
651 "global authority (This is similar to the <Schema "
652 a.dunfey 1.1 "Name>_<Class Name> structure of Schema class names.) In "
653 "addition, to ensure uniqueness <OrgID> MUST NOT contain a "
654 "colon (':'). When using this algorithm, the first colon to "
655 "appear in InstanceID MUST appear between <OrgID> and "
656 "<LocalID>. \n"
657 "<LocalID> is chosen by the business entity and SHOULD not "
658 "be re-used to identify different underlying (real-world) "
659 "elements. If the above 'preferred' algorithm is not used, "
660 "the defining entity MUST assure that the resultant "
661 "InstanceID is not re-used across any InstanceIDs produced "
662 "by this or other providers for this instance's NameSpace. \n"
663 "For DMTF defined instances, the 'preferred' algorithm MUST "
664 "be used with the <OrgID> set to 'CIM'.")]
665 string InstanceID;
666
667 };
668
669 // ===================================================================
670 // DiagnosticsLog
671 // ===================================================================
672 [Version ( "2.9.0" ), Description (
673 a.dunfey 1.1 "DiagnosticsLog serves as an aggregation point for "
674 "DiagnosticRecord objects. This class exists in order to "
675 "encourage the use of a consolidated record management "
676 "methodology for diagnostics. A common set of providers for "
677 "this log and its associated records SHOULD be used to control "
678 "functions such as record persistence, query support and "
679 "overall data integrity in a consistent manner.")]
680 class CIM_DiagnosticsLog : CIM_RecordLog {
681 };
682
683 // ===================================================================
684 // RecordForLog
685 // ===================================================================
686 [Abstract, Version ( "2.9.0" ), Description (
687 "The RecordForLog class is used to instantiate records to be "
688 "aggregated to a Log.")]
689 class CIM_RecordForLog : CIM_ManagedElement {
690
691 [Description (
692 "A string describing the data structure of the information "
693 "in the property, RecordData. If the RecordFormat string is "
694 a.dunfey 1.1 "<empty>, RecordData should be interpreted as a free-form "
695 "string. \n"
696 "\n"
697 "To describe the data structure of RecordData, the "
698 "RecordFormat string should be constructed as follows: \n"
699 "- The first character is a delimiter character and is used "
700 "to parse the remainder of the string into sub-strings. \n"
701 "- Each sub-string is separated by the delimiter character "
702 "and should be in the form of a CIM property declaration "
703 "(i.e., datatype and property name). This set of "
704 "declarations may be used to interpret the similarly "
705 "delimited RecordData property. \n"
706 "For example, using a '*' delimiter, RecordFormat = "
707 "\"*string ThisDay*uint32 ThisYear*datetime SomeTime\" \n"
708 "may be used to interpret: RecordData = \"*This is "
709 "Friday*2002*20020807141000.000000-300\"."),
710 ModelCorrespondence { "CIM_RecordForLog.RecordData" }]
711 string RecordFormat;
712
713 [Description (
714 "A string containing LogRecord data. \n"
715 a.dunfey 1.1 "If the corresponding RecordFormat property is <empty>, or "
716 "cannot be parsed according to the recommended format, "
717 "RecordData should be interpreted as a free-form string. If "
718 "the RecordFormat property contains parseable format "
719 "information (as recommended in the RecordFormat Description "
720 "qualifier), the RecordData string SHOULD be parsed in "
721 "accordance with this format. In this case, RecordData "
722 "SHOULD begin with the delimiter character and this "
723 "character SHOULD be used to separate substrings in the "
724 "manner described. The RecordData string can then be parsed "
725 "by the data consumer and appropriately typed."),
726 ModelCorrespondence { "CIM_RecordForLog.RecordFormat" }]
727 string RecordData;
728
729 [Description (
730 "A locale indicates a particular geographical, political, or "
731 "cultural region. The Locale specifies the language used in "
732 "creating the RecordForLog data. If the Locale property is "
733 "empty, it is assumed that the default locale is en_US "
734 "(English). \n"
735 "The locale string consists of three sub-strings, separated "
736 a.dunfey 1.1 "by underscores: \n"
737 "- The first sub-string is the language code, as specified "
738 "in ISO639. \n"
739 "- The second sub-string is the country code, as specified "
740 "in ISO3166. \n"
741 "- The third sub-string is a variant, which is vendor "
742 "specific. \n"
743 "For example, US English appears as: \"en_US_WIN\", where "
744 "the \"WIN\" variant would specify a Windows "
745 "browser-specific collation (if one exists). Since the "
746 "variant is not standardized, it is not commonly used and "
747 "generally is limited to easily recognizable values "
748 "(\"WIN\", \"UNIX\", \"EURO\", etc.) used in standard "
749 "environments. The language and country codes are required; "
750 "the variant may be empty.")]
751 string Locale;
752
753 };
754
755
756 // ===================================================================
757 a.dunfey 1.1 // LogRecord
758 // ===================================================================
759 [Version ( "2.9.0" ), Description (
760 "The LogRecord object can describe the definitional format for "
761 "entries in a MessageLog, or can be used to instantiate the "
762 "actual records in the Log. The latter approach provides a "
763 "great deal more semantic definition and management control "
764 "over the individual entries in a MessageLog, than do the "
765 "record manipulation methods of the Log class. It is "
766 "recommended that the data in individual Log entries be modeled "
767 "using subclasses of LogRecord, to avoid the creation of "
768 "LogRecords with one property (such as RecordData) without "
769 "semantics. \n"
770 "Definitional formats for LogRecords could be specified by "
771 "establishing a naming convention for the RecordID and Message "
772 "Timestamp key properties.")]
773 class CIM_LogRecord : CIM_RecordForLog {
774
775 [Key, Propagated ( "CIM_MessageLog.CreationClassName" ),
776 Description (
777 "The scoping Log's CreationClassName."),
778 a.dunfey 1.1 MaxLen ( 256 )]
779 string LogCreationClassName;
780
781 [Key, Propagated ( "CIM_MessageLog.Name" ), Description (
782 "The scoping Log's Name."),
783 MaxLen ( 256 )]
784 string LogName;
785
786 [Key, Description (
787 "CreationClassName indicates the name of the class or the "
788 "subclass used in the creation of an instance. When used "
789 "with the other key properties of this class, this property "
790 "allows all instances of this class and its subclasses to be "
791 "uniquely identified."),
792 MaxLen ( 256 )]
793 string CreationClassName;
794
795 [Key, Description (
796 "RecordID, with the MessageTimestamp property, serve to "
797 "uniquely identify the LogRecord within a MessageLog. Note "
798 "that this property is different than the RecordNumber "
799 a.dunfey 1.1 "parameters of the MessageLog methods. The latter are "
800 "ordinal values only, useful to track position when "
801 "iterating through a Log. On the other hand, RecordID is "
802 "truly an identifier for an instance of LogRecord. It may be "
803 "set to the record's ordinal position, but this is not "
804 "required."),
805 MaxLen ( 256 )]
806 string RecordID;
807
808 [Key, Description (
809 "A LogRecord's key structure includes a timestamp for the "
810 "entry.")]
811 datetime MessageTimestamp;
812
813 [Deprecated { "CIM_LogRecord.RecordFormat" }, Description (
814 "A free-form string describing the LogRecord's data "
815 "structure.")]
816 string DataFormat;
817
818 };
819
820 a.dunfey 1.1
821 // ===================================================================
822 // RecordInLog
823 // ===================================================================
824 [Association, Aggregation, Composition, Version ( "2.7.0" ),
825 Description (
826 "RecordInLog describes the aggregation or location of Log "
827 "entries within a MessageLog.")]
828 class CIM_RecordInLog {
829
830 [Key, Aggregate, Min ( 1 ), Max ( 1 ), Description (
831 "The Message Log.")]
832 CIM_MessageLog REF MessageLog;
833
834 [Key, Weak, Description (
835 "The Log entry contained within the MessageLog.")]
836 CIM_LogRecord REF LogRecord;
837 };
838
839
840 // ===================================================================
841 a.dunfey 1.1 // LogInDeviceFile
842 // ===================================================================
843 [Association, Version ( "2.6.0" ), Description (
844 "MessageLogs can reside in data files, on specially allocated "
845 "storage areas such as disks or memory, or output as raw I/O "
846 "streams. In fact, a single Log may use each of these "
847 "mechanisms to output or capture its contents. The "
848 "LogInDeviceFile association describes a Log outputting to a "
849 "raw I/O stream DeviceFile - for example, a serial port on a "
850 "UNIX system.")]
851 class CIM_LogInDeviceFile : CIM_Dependency {
852
853 [Override ( "Antecedent" ), Description (
854 "The I/O stream DeviceFile.")]
855 CIM_DeviceFile REF Antecedent;
856
857 [Override ( "Dependent" ), Description (
858 "The MessageLog outputting to the DeviceFile.")]
859 CIM_MessageLog REF Dependent;
860 };
861
862 a.dunfey 1.1
863 // ===================================================================
864 // LogInDataFile
865 // ===================================================================
866 [Association, Version ( "2.6.0" ), Description (
867 "MessageLogs can reside in data files, on specially allocated "
868 "storage areas such as disks or memory, or output as raw I/O "
869 "streams. In fact, a single Log may use each of these "
870 "mechanisms to output or capture its contents. The "
871 "LogInDataFile association describes a Log stored as a "
872 "DataFile.")]
873 class CIM_LogInDataFile : CIM_Dependency {
874
875 [Override ( "Antecedent" ), Description (
876 "The DataFile.")]
877 CIM_DataFile REF Antecedent;
878
879 [Override ( "Dependent" ), Description (
880 "The MessageLog residing in the DataFile.")]
881 CIM_MessageLog REF Dependent;
882 };
883 a.dunfey 1.1
884
885 // ===================================================================
886 // LogInStorage
887 // ===================================================================
888 [Association, Version ( "2.6.0" ), Description (
889 "MessageLogs can reside in data files, on specially allocated "
890 "storage areas such as disks or memory, or output as raw I/O "
891 "streams. In fact, a single Log may use each of these "
892 "mechanisms to output or capture its contents. The LogInStorage "
893 "association describes a Log located in a specially allocated "
894 "portion of a StorageExtent. The offset of the Log, within the "
895 "Extent, is defined using a property of the association, "
896 "StartingOffset.")]
897 class CIM_LogInStorage : CIM_Dependency {
898
899 [Override ( "Antecedent" ), Description (
900 "The StorageExtent.")]
901 CIM_StorageExtent REF Antecedent;
902
903 [Override ( "Dependent" ), Description (
904 a.dunfey 1.1 "The MessageLog located within the Extent.")]
905 CIM_MessageLog REF Dependent;
906
907 [Description (
908 "StartingOffset indicates where in the Extent that the Log "
909 "begins.")]
910 uint64 StartingOffset;
911 };
912
913 // ===================================================================
914 // UseOfLog
915 // ===================================================================
916 [Association, Version ( "2.9.0" ), Description (
917 "ManagedSystemElements may record their event, error or "
918 "informational data within Logs. The use of a Log to hold a "
919 "ManagedSystemElement's data is described by this association. "
920 "The type of Element data captured by the Log can be specified "
921 "using the RecordedData string property.")]
922 class CIM_UseOfLog : CIM_Dependency {
923
924 [Override ( "Antecedent" ), Description (
925 a.dunfey 1.1 "The Log.")]
926 CIM_Log REF Antecedent;
927
928 [Override ( "Dependent" ), Description (
929 "The ManagedSystemElement whose information is recorded in "
930 "the Log.")]
931 CIM_ManagedSystemElement REF Dependent;
932
933 [Description (
934 "A free-form string describing the use of the Log by the "
935 "ManagedSystemElement.")]
936 string RecordedData;
937 };
938
939
940 // ===================================================================
941 // UseOfMessageLog
942 // ===================================================================
943 [Association, Version ( "2.9.0" ), Description (
944 "ManagedSystemElements may record their event, error or "
945 "informational data within MessageLogs. The use of a Log to "
946 a.dunfey 1.1 "hold a ManagedSystemElement's data is described by this "
947 "association. \n"
948 "UseOfMessageLog has the same semantics as UseOfLog. Users "
949 "SHOULD reference UseOfLog in lieu of this association.")]
950 class CIM_UseOfMessageLog : CIM_UseOfLog {
951
952 [Override ( "Antecedent" ), Description (
953 "The MessageLog.")]
954 CIM_MessageLog REF Antecedent;
955
956 };
957
958 // ===================================================================
959 // OperationLog
960 // ===================================================================
961 [Association, Version ( "2.8.0" ), Description (
962 "CIM_OperationLog is a specialization of the "
963 "CIM_UseOfMessageLog association that identifies a reproducible "
964 "record of operations for a LogicalElement.")]
965 class CIM_OperationLog : CIM_UseOfMessageLog {
966
967 a.dunfey 1.1 [Override ( "Antecedent" ), Description (
968 "The Log containing reproducible operations for the "
969 "associated LogicalElement.")]
970 CIM_MessageLog REF Antecedent;
971
972 [Override ( "Dependent" ), Min ( 1 ), Max ( 1 ), Description (
973 "The LogicalElement for the associated OperationLog.")]
974 CIM_LogicalElement REF Dependent;
975 };
976
977 // ===================================================================
978 // RecordAppliesToElement
979 // ===================================================================
980 [Association, Version ( "2.9.0" ), Description (
981 "ManagedSystemElements may create RecordForLog objects to "
982 "record their event, error or informational data within Logs. "
983 "The relationship between these managed elements and the "
984 "records they create is described by this association.")]
985 class CIM_RecordAppliesToElement : CIM_Dependency {
986
987 [Override ( "Antecedent" ), Description (
988 a.dunfey 1.1 "The Record.")]
989 CIM_RecordForLog REF Antecedent;
990
991 [Override ( "Dependent" ), Description (
992 "The ManagedSystemElement that participated in the creation "
993 "of the Record.")]
994 CIM_ManagedElement REF Dependent;
995
996 };
997
998 // ===================================================================
999 // LogManagesRecord
1000 // ===================================================================
1001 [Association, Aggregation, Composition, Version ( "2.9.0" ),
1002 Description (
1003 "LogManagesRecord describes the aggregation or location of "
1004 "Records managed by a Log.")]
1005 class CIM_LogManagesRecord {
1006
1007 [Key, Aggregate, Min ( 1 ), Max ( 1 ), Description (
1008 "The Log.")]
1009 a.dunfey 1.1 CIM_Log REF Log;
1010
1011 [Key, Description (
1012 "The record managed by the Log.")]
1013 CIM_RecordForLog REF Record;
1014
1015 };
1016
1017
1018
1019 // ===================================================================
1020 // end of file
1021 // ===================================================================
|