Re: multiple Sub-agents managing the same table

This is a discussion on Re: multiple Sub-agents managing the same table within the SNMP Users forums, part of the Networking and Network Related category; Concerning the problem of index, I resolved it; indeed, the registering of the subagent with the master agent is done ...


Go Back   Usenet Forums > Networking and Network Related > SNMP Users

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-06-2006
Arnaud BODENAN
 
Posts: n/a
Default Re: multiple Sub-agents managing the same table

Concerning the problem of index, I resolved it; indeed, the registering of
the subagent with the master agent is done later so I have to call my
initialization function of my table after the call to init_snmp

So, to resume (for people who could face the same problem):

With net-snmp 5.0.11:

int main(int argc, char** argv)
{
init_agent("App1");
init_mib_modules();

// Initialize my table
initGenServerTable();

init_snmp("App1");

....
}

With net-snmp v5.3.1:

int main(int argc, char** argv)
{
init_agent("App1");
init_mib_modules();

// Connect the subagent to the master agent
init_snmp("App1");

// Initialize my table and get the index from the master agent
initGenServerTable();

....
}

Concerning my error message, I will investigate. At the moment, with
net-snmp 5.3.1, my table is no more registered. I also do a test of 'normal
registering' of my table (no use of range_subid and range_ubound) with the
same error.

I will look first at the samples and the NEWS file to see the changes.

Thanks.

>From: "Dave Shield" <D.T.Shield@csc.liv.ac.uk>
>To: "Arnaud BODENAN" <arnboden@hotmail.com>
>CC: net-snmp-users@lists.sourceforge.net
>Subject: Re: multiple Sub-agents managing the same table
>Date: Tue, 5 Sep 2006 21:59:20 +0100
>
>On 05/09/06, Arnaud BODENAN <arnboden@hotmail.com> wrote:
> > To see if I reproduce the same problem with the latest version of
> > net-snmp, I try my sample with net-snmp v5.3.1 (instead of v.5.0.11).

>
>Very sensible.
>
> > The problems I'm facing now are:
> > - the index retrieved with register_int_index is always -1
> > - I get a long list of error messages 'registering pdu failed: 263!'

>
>Oh! :-(
>
> > Any suggestions?

>
>I think you'll probably need to turn on some debugging output and/or
>run either the master or subagent under a debugger to find out exactly
>what's going on.
> I don't have access to the source just at the moment, but have a
>look at the code file 'agent_registry.c', and turn on some of the
>debug tokens mentioned there. That might reveal why the registration
>and/or index allocation calls are failing.
>
>Dave
>
>-------------------------------------------------------------------------
>Using Tomcat but need to do more? Need to support web services, security?
>Get stuff done quickly with pre-integrated technology to make your job
>easier
>Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
>http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
>_______________________________________________
>Net-snmp-users mailing list
>Net-snmp-users@lists.sourceforge.net
>Please see the following page to unsubscribe or change other options:
>https://lists.sourceforge.net/lists/...net-snmp-users
>


__________________________________________________ _______________
FREE pop-up blocking with the new MSN Toolbar - get it now!
http://toolbar.msn.click-url.com/go/...ave/direct/01/


-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=...057&dat=121642
_______________________________________________
Net-snmp-users mailing list
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/...net-snmp-users
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 03:13 AM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0