Re: Responding to MODE_GET

This is a discussion on Re: Responding to MODE_GET within the SNMP Coders forums, part of the Networking and Network Related category; [Sorry for the delay in responding to this] 2008/4/3 Christer Ekholm <christerekholm@gmail.com>: > I ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 05-04-2008
Dave Shield
 
Posts: n/a
Default Re: Responding to MODE_GET

[Sorry for the delay in responding to this]

2008/4/3 Christer Ekholm <christerekholm@gmail.com>:
> I am learning to coding MIBs. My problem is that my module is not answering
> to MODE_GET message. Here is code


[snip]



> Here is snmp agent output
>


> NET-SNMP version 5.0.9
> nstAgentPluginObject2: Got request, mode = 160:
> nstAgentPluginObject2: Got get, value = 69:
> nstAgentPluginObject2: snmp_set_var_typed_value returned 0
> nstAgentPluginObject2: Got request, mode = 160:
> nstAgentPluginObject2: Got get, value = 69:
> nstAgentPluginObject2: snmp_set_var_typed_value returned 0
> nstAgentPluginObject2: Got request, mode = 160:
> nstAgentPluginObject2: Got get, value = 69:
> nstAgentPluginObject2: snmp_set_var_typed_value returned 0



> Here is snmpget output
>
> -bash-3.00# snmpget -c private localhost
> NET-SNMP-TUTORIAL-MIB::nstAgentPluginObject2.0
> Timeout: No Response from localhost.
> -bash-3.00#



I can't immediately see anything wrong with your code.
And since things are working for the first two objects,
this is unlikely to be access control (which is the usual
cause of request timeouts).

All I can suggest is running with
snmpget -r 0 -d ......

(to turn off retransmissions, and show raw packets in/out).
I presume you only see one (outgoing) packet displayed?
Nothing coming back?

As far as the agent is concerned, it certainly looks as if
the handler is processing the request correctly.
If you run the single command above (including -r 0),
I presume you only see a single set of nstAgentPluginObject2
debug output?)

Try running the agent using 'snmpd -f -Le -d ....'
and make the same request. This will show raw
packet dumps in/out. Check that this matches the
traffic seen by the snmpget command.

It might also be worth running the agent using
-Dhelper:instance
to see what the instance helper is seeing for this
request.

Dave

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757...un.com/javaone
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/...et-snmp-coders
Reply With Quote
Reply


Thread Tools
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

vB 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 08:27 PM.


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