Re: mib2c best configuration mode to access global functions

Nuno Magalhães <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hi Dave,

But why must it be declared as inline?
Is there any limitation in global variables and function calls?
Otherwise the global function will return always 0 no matter what values 
is returned.
Have you ever experienced the same?

Regards,
Nuno Magalhães.

Em 04-01-2013 21:44, Dave Shield escreveu:
> 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
>
>
> -----
> Não foram detectados vírus nesta  mensagem.
> Verificado por AVG - www.avg.com
> Versão: 2013.0.2805 / Base de dados de Vírus: 2637/6009 - Data de Lançamento: 01/04/13
>
>


------------------------------------------------------------------------------
Master Visual Studio, SharePoint, SQL, ASP.NET, C# 2012, HTML5, CSS,
MVC, Windows 8 Apps, JavaScript and much more. Keep your skills current
with LearnDevNow - 3,200 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_122912
_______________________________________________
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.