Re: mib2c best configuration mode to access global functions

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <CAKoMtGYPVspEkOG68WwMQ+6UoX6mrPstJYNj4ajHxqK5CCfL9A@mail.gmail.com>
On 4 January 2013 19:34, Nuno Magalhães <[email protected]> wrote:
> What's the configuration I should use, with the mib2c tool, to access
> global functions.
> For example for invoking unix shell commands with popen or system and
> retrieving a value.

There's no special configuration required for mib2c - just take the code
template that it generates, and add the necessary #includes yourself.
mib2c is designed to look after generating the SNMP-related aspects
of the required code - writing the code that relates to the underlying system
being monitored (i.e. how you retrieve the actual data) is your responsibility.

Dave

------------------------------------------------------------------------------
Master HTML5, CSS3, ASP.NET, MVC, AJAX, Knockout.js, Web API and
much more. Get web development skills now with LearnDevNow -
350+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only -- learn more at:
http://p.sf.net/sfu/learnmore_122812
_______________________________________________
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.