NET SNMP Sub agent And Master Agent Connection

Ashish vashishtha <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Hello Dev and all,


I am getting this crash sometimes from the sub agent code.

i am creating my sub agent as a static library that works with the main
application.
from my application i am initializing this library.

than through the register function from teh main application i am
registering the OIDS with the master agent.

#0  0x0017befd in agentx_check_packet () from /usr/lib/libnetsnmpagent.so.10

#1  0x0057910d in _sess_read () from /usr/lib/libnetsnmp.so.10

#2  0x0057a419 in snmp_sess_read () from /usr/lib/libnetsnmp.so.10

#3  0x0057a46f in snmp_read () from /usr/lib/libnetsnmp.so.10

#4  0x0054c355 in snmp_synch_response_cb () from /usr/lib/libnetsnmp.so.10

#5  0x001863d5 in agentx_synch_response () from
/usr/lib/libnetsnmpagent.so.10

#6  0x00186c31 in agentx_register () from /usr/lib/libnetsnmpagent.so.10

#7  0x0016ce15 in agentx_registration_callback () from
/usr/lib/libnetsnmpagent.so.10

#8  0x0059850c in snmp_call_callbacks () from /usr/lib/libnetsnmp.so.10

#9  0x001631c7 in netsnmp_register_mib () from
/usr/lib/libnetsnmpagent.so.10

#10 0x00168dd6 in netsnmp_register_handler () from
/usr/lib/libnetsnmpagent.so.10

#11 0x004c6fe3 in netsnmp_register_serialize () from
/usr/lib/libnetsnmphelpers.so.10

#12 0x004c25b3 in netsnmp_register_instance () from
/usr/lib/libnetsnmphelpers.so.10

#13 0x004c2619 in netsnmp_register_int_instance () from
/usr/lib/libnetsnmphelpers.so.10

#14 0x08780664 in CSnmpAgent::Register (this=0xb71f3918, Name=0x87e66bb
"TotalNumberOfUser")


Regards
Ashish Vashishtha



On Tue, Mar 16, 2010 at 6:04 PM, Dave Shield <[email protected]>wrote:

> On 16 March 2010 11:43, Ashish vashishtha <[email protected]>
> wrote:
> > in case multiple subagent are running on the same machine can we
> configure
> > different sub agent ports for each subagent to establish connection with
> > master agent ?
>
> Why?
>
> The master agent will be listening on a standard port
> (typically the named socket /var/agentx/master or TCP port 705)
> for connections from the subagents.   That's what the configuration
> settings are concerned with.
>
> The subagents will use a random source port, but connect
> to the same server port - just as for any other client-server setup.
>
> Why would you want to set up distinct listening ports for each
> individual subagent?   That's just introducing unnecessary complexity.
>
> Dave
>



-- 
Regards
Ashish Vashishtha

------------------------------------------------------------------------------
Download Intel&#174; Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev

_______________________________________________
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.