|
|
This section demonstrates how you can use the sample programs hellodmi and rma2 to:
To register and manage a single DMI component using the sample programs:
The process registers a DMI component, waits for SP calls, then terminates after 10 minutes.
Both the DMI Service Layer (which always appears when the service provider is running) and the hellodmi components should be listed as follows:
... Content=Component ListStartComponentInfo Name=UnixWare DMI Service Layer ComponentID=1 EndComponentInfo
StartComponentInfo Name=Hello, DMI ComponentID=2 EndComponentInfo ...
You should see the following:
... Content = Group List ComponentName=Hello, DMIEvery component has one group containing the ComponentID, followed by all the groups used to organize the product's manageable attributes. In this example there is one other group, with a GroupID of ``10'' and the name ``Sample Group''.StartGroupInfo Name=ComponentID GroupID=1 Class=DMTF|ComponentID|001 EndGroupInfo
StartGroupInfo Name=Sample group GroupID=10 Class=SCO|Hello, DMI Sample|001 EndGroupInfo
You should see the following:
Content = Attribute List ComponentName=Hello, DMI GroupName=Sample groupName=greetings AttributeID=1 Access=Read-Write Type=DisplayString(64)
StartValue Greetings from CI! EndValue End
./rma2 -x SetAttribute -c 2 -g 10 -a 1 -v "Hello from SCO!"