HP Visualize J282 HP-UX DMI 2.0 Developer's Guide: HP-UX/HP 9000 Computers, H - Page 117
The Example Component
View all HP Visualize J282 manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 117 highlights
An HP-UX DMI 2.0 Example Code The Example Component Figure A-3 The Example Component The component used in HP's System Example, like all components, is created from two types of elements in the Component Interface: the component's MIF file and the various instrumentation files. The systemExample.mif, like all components, contains the Component ID Group. This static group contains the six attributes required to identify a component. They are Manufacturer, Product, Version, Serial Number, Installation, and Verify. The example component MIF also contains two dynamic data groups: the scalar System Group and the tabular Processor Time Group. The System Group contains the attributes Total Physical Memory and Total Processors. The Processor Time Group contains the attributes Processor ID, Sleep Time, Run Time, Zombie Time, and Idle Time. The attributes within these two groups are accessed dynamically and require component instrumentation. Example Component Component instrumentation for the dynamic data in this example is handled in the ci_systemExample.h file. Instrumentation provided by the developer is identified as following between headers and footers like those illustrated below. The corresponding ci_systemExample.c file does not need to be modified. Appendix A 117