|
|
This section shows how attributes can be defined as entries in a DMI table, with particular instances of each attribute within a table accessed via a key. It introduces the sample program phonebook and demonstrates some of the more advanced DMI commands and options available using rma2.
./rma2 -x ListAttributes -c 5 -g 2000 -v
You should see the following:
... Content = Attribute List ComponentName=Phone Book GroupName=Phone BookKeyValues StartValue 8336328 EndValue End
Name=Telephone number AttributeID=1 Access=Read-Write Type=Integer StartValue 8336328 EndValue End
Name=User Name AttributeID=2 Access=Read-Write Type=DisplayString(64)
StartValue Bob EndValue End
Name=Area AttributeID=3 Access=Read-Write Type=DisplayString(64)
StartValue NY EndValue End
The output should show the ``Telephone Number'' as ``8311788'', the ``User Name'' as ``John'' and the ``Area'' as ``Chicago''.