Customized diagnostic attribute object class

The Customized Diagnostic Attribute object class (CDiagAtt) contains customized entries for selected devices found in the current configuration, which is supported by diagnostics.

The CDiagAtt object class indicates specialized diagnostic attribute status of the device. It is used to maintain diagnostic information about devices found in the current configuration across sessions.

The CDiagAtt object class structure is defined as:


class CDiagAtt {
                     char name[16];
                     char attribute[16];
                     vchar value[255];
                     char type[8];
                     char rep[8];
                     };
Parameter Description
name Resource name as specified in CuDv.
attribute 16-byte char field. The attribute value used by the Controller to identify persistent state data for the device. Uses value field.
value 255-byte variable char field.
type 8-byte char field specifying data type.
rep 8-byte char field.

Examples

  • The Diagnostic Controller creates a CDiagAtt entry for each device that is tested periodically by the Diagnostic daemon. The format of the stanza looks like:
    
    CDiagAtt:
        name = "hdisk0"                 Resource to test
        attribute = "p_test_time"     Attribute: periodic-test-time
        value = "0300"                Test time ( 3AM )
        type = "T"                    Data type of 'text'
        rep = "s"                     'String' representation
    
    CDiagAtt:
        name = "ent0"                              Resource name
        attribute = "p_test_time"
        value = "9999"                             Not tested
     indication
            type = "T"
            rep = "s"
    
  • The Diagnostic Controller creates a CDiagAtt entry for each device that has been deleted from the resource list. The format of the stanza looks like:
    
    CDiagAtt:
        name = "mem0"                           Resource name
        attribute = "not_in_tst_list"    Device has been deleted from
        value = "1"                           the Resource List
        type = "T"
        rep = "n"