> Code: 
> struct variable3 example_variables[] = {
>     {EXAMPLESTRING,       ASN_OCTET_STR, RONLY, var_example, 1, {1}},
>     {EXAMPLETIMETICKS,    ASN_TIMETICKS, RONLY, var_example, 1, {2}},
>     {EXAMPLEIPADDRESS,    ASN_IPADDRESS, RONLY, var_example, 1, {3}},
>     {EXAMPLECOUNTER,      ASN_COUNTER, RONLY,   var_example, 1, {4}},
>     {EXAMPLEGAUGE,        ASN_GAUGE, RONLY,     var_example, 1, {5}},
>     {EXAMPLETRIGGERTRAP,  ASN_INTEGER, RWRITE,  var_example, 1, {6}},
>     {EXAMPLETRIGGERTRAP2, ASN_INTEGER, RWRITE,  var_example, 1, {7}},
>     {LABSTRING,           ASN_OCTET_STR, RONLY, var_example, 1, {8}},
>     {LABCALLSINDEX,       ASN_INTEGER, RONLY,   var_example, 3, {2,1,1}},
>     {EXAMPLETIMETICKS,    ASN_TIMETICKS, RONLY, var_example, 1, {9}} 
> };

No - that's not valid.

>From AGENT.txt:

  The main element of this is a variable structure specifying the details of
the objects implemented.  This takes the form of an unconstrained array of
type struct variableN .....                                             
Each entry corresponds to one object in the MIB tree (or one column in the
case of table entries), and these should be listed in increasing OID order.
                        ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^


Try moving the 'LABCALLSINDEX' entry to immediately after the
'EXAMPLETIMETICKS' entry.

(Though you shouldn't actually have a scalar object and a table with the
same first subidentifier value either - you'll need to change one of these)


Dave



-------------------------------------------------------
This SF.Net email is sponsored by BEA Weblogic Workshop
FREE Java Enterprise J2EE developer tools!
Get your free copy of BEA WebLogic Workshop 8.1 today.
http://ads.osdn.com/?ad_id=5047&alloc_id=10808&op=click
_______________________________________________
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