On 05/11/2007, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote:
> Dear:
>     I am developting the snmp agent using ..... net-snmp 5.2.3.
> When using the tool of mib2c generate the .c file,Can I
> choose the UCD-SNMP style Code choice?

Yes.

> That is can I developt the agent in UCD-SNMP style with
> the pakage of NET-SNMP5.2.3?

Yes.
Many of the current MIB implementations still use the older
UCD style.


>  Are there some faults?

The main disadvantages of the UCD style over the newer
handler-based APIs are:

   a)  It's slightly less efficient
              (though probably not enough to worry about)
   b)  It doesn't handle as much automatically.

With the newer v5 API, particularly when implementing MIB
tables, the helpers will take care of much of the donkey work
(interpreting indexes, etc).   With the UCD style of MIB, this
was all left to the MIB programmer.
   But if you're happier working with the UCD approach, that's
fine - it should work OK.


One word of warning about the mib2c interface though.
The code generated is not always as accurate as we might
like - particularly when run on anything more than just a
single table.   So do check the OIDs that it's trying to register
carefully.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
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