Procedure 12

Read Attribute

capability

 

resource name length

 

resource name

 

register name length

 

register name

 

REQUEST

If the register specified is known by the server for the resource specified and the access capability is valid the attribute string associated with the register is returned.

success = 0

attribute value length

 

attribute value

 

RESPONSE - success

Attribute length is a 4 byte field which defines the length of the following attribute data in bytes.

Attribute value contains the data component of the attribute. Data in this field conforms to the XDR standard for the particular data type.

procedure status

RESPONSE - failure

procedure status which is non zero indicates the cause of the failure.

1

invalid resource

3

capability invalid

4

register not known

procedure status

XDR Specification

procedure   ReadAttribute (cap, res, reg)   returns(reply)
            capability    cap;
            resource    res;
            register    reg;

            union switch (stat status)  {
                OK:
                registerattribute    v;
                default:
                struct   {}
            }  reply;

Implementation

This procedure is provided in versions 1 and 2 of the protocol.