Re: Net-SNMP 5.5 on Windows Server 2008 with own subagent, can"t set scalar

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 2 August 2010 13:37, Julian Cebulla <[email protected]> wrote:
> This is in excerpt of my code at the beginning (in C):

   [snip]

OK - that looks like the code for the main body of the subagent.
But you've got four routines that (presumably) initialise
and register the MIB information that the subagent should report:

>      init_mib_physicalInterfacesTable();
>      init_mib_bChannelTable();
>      init_mib_sessionTable();

>  init_mib_scalar();

What do these init routines look like?

In particular, they'll presumably call some form of 'netsnmp_register_xxx'
routine.   As part of that registration, there should be some
mention of an 'xxx_handler' routine.

It's *that* routine where you need to put the debug statements.



Dave

------------------------------------------------------------------------------
The Palm PDK Hot Apps Program offers developers who use the
Plug-In Development Kit to bring their C/C++ apps to Palm for a share
of $1 Million in cash or HP Products. Visit us here for more details:
http://p.sf.net/sfu/dev2dev-palm
_______________________________________________
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.