We have changed the netsnmp 5.0.9 config files so that there is no
difference, we are linking against the static libraries of netsnmp (to avoid
dependencies on the target machines where it will be installed) . Now in
that case we observe that out subagent is working fine when it is statically
liked against 5.3.1 libraries and when we link against 5.0.9 we get the same
problem mentioned with the default  snmp daemon running (5.0.9).

when we enabled agentx debug messages we saw the following debug  messages

gentx/master: handle pdu (req=0x31778400,trans=0x0,sess=0x0)
agentx/master: open 0x9673088
agentx/master: opened 0x967dae0 = 7 with flags = a0
agentx/master: send response, stat 0 (req=0x31778400,trans=0x0,sess=0x0)
agentx_build: packet built okay
agentx/master: handle pdu (req=0x31778401,trans=0x0,sess=0x7)
agentx/master: in register_agentx_list
agentx/master: registered ok
agentx/master: send response, stat 0 (req=0x31778401,trans=0x0,sess=0x7)
agentx_build: packet built okay
agentx/master: transport disconnect on session 0x9673088
agentx/master: close 0x9673088, -1
************************************************************************************************

when we dump all the debug message we could see the following but have no
clue what is happening



sess_select: for all sessions: 12 11 9 10 6 4
trace: receive(): snmpd.c, 1098
snmpd/select: select( numfds=13, ..., tvp=(nil))
trace: receive(): snmpd.c, 1100
snmpd/select: returned, count = 1
trace: netsnmp_unix_recv(): snmpUnixDomain.c, 128
netsnmp_unix: recv fd 12 got 0 bytes
trace: _sess_read(): snmp_api.c, 5308
sess_read: perform callback with op=DISCONNECT
trace: handle_master_agentx_packet(): agentx/master_admin.c, 467
agentx/master: transport disconnect on session 0x8f6f060
trace: close_agentx_session(): agentx/master_admin.c, 133
agentx/master: close 0x8f6f060, -1
trace: unregister_mibs_by_session(): agent_registry.c, 1022
register_mib: unregister_mibs_by_session(0x8f6f060) ctxt ""
trace: netsnmp_subtree_unload(): agent_registry.c, 800

*************************************************************************************************************
Utpala, Musti

On 5/9/07, Dave Shield <[EMAIL PROTECTED] > wrote:

On 09/05/07, utpala m <[EMAIL PROTECTED] > wrote:
>     We have a problem querying  the Netsnmp subagent.
>     When a sample subagent is built and used with the NetSnmp5.3.1 the
> queries like snmpwalk go well.
>     but when the same subagent is built and used with the NetSnmp5.0.9
(Comes
> with linux)it gives an error "No more variables left in this MIB View
(It is
> past the end of the MIB
>     tree)" or "NO Such Object available on this agent at this OID" .
>     This may be a configuration issue . please help us in resolving the
> issue.

Things to check:

   -  what *can* you see on the 5.0.9 setup?
           (can you request information from the 'ucdavis' or 'netSnmp'
trees)?

  -  does the subagent receive anything from the master
          (turn on packet dumps, let things settle down, then make a
           GET query for one of the delegated objects).

  -  is there any difference between the two config files?
        (start the agent using -Dread_config, to check exactly what
         is being read in).

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to