SNMP Subagent Programmer's Guide
Encoding MIBs
3-8 119728—SNMP Subagent Programmer’s Guide
Writing and Compiling MIBs
ACCESS object-access
assigns a standard SNMP access type to the MIB object. The value of object-access
can be one of these.
read-only
lets managers perform only Get or GetNext operations on the object’s value.
read-write
lets managers perform Get, GetNext, and Set operations on the object’s value.
write-only
lets managers perform only Set operations on the object’s value.
not-accessible
makes an object’s value unavailable to managers.
extensions
provide information about each MIB object for the run-time library. The extensions
specify where in the subagent source code the value for each object is maintained.
Use at most one for each MIB object.
C-access-method
specifies how the value of the MIB object can be retrieved and possibly
configured by the run-time library. There are four different forms of C-access-
method.
C_VARIABLE global-name
specifies that the MIB object value is maintained in a C global variable
identified by global-name. If you omit an extension for a MIB variable,
GDMOC operates as if it is implemented by using a C global variable with
the name defined by MIB-variable-name.
read-only | read-write | write-only | not-accessible
C-access-method [C_LOCATOR_FUNC locator-function-name]
C_VARIABLE global-name |
C_ACCESS_FUNC access-function-name |
C_STRUCT struct-name, FIELD field-name |
C_TYPE struct-name, FIELD field-name