On 12/05/07, Nicholas Ritter <[EMAIL PROTECTED]> wrote:
> When extending the snmp agent using exec and pass statements in SNMP conf,
> is it possible to specify the variable type that the data will be stored as?

The "exec" (and "extend") directives are intended to provide a simple way of
reporting the output of arbitrary commands - which typically know nothing about
SNMP at all.  The structure of this output is described in the
relevant MIB files.
This structure is fixed - it's not possible to change the variable types.

The "pass" directive is intended to provide a way to script arbitrary
MIB objects.
The API for the pass-through script includes specifying the OID, type and value
for the requested value.  See snmpd.conf(5) for details.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users

Reply via email to