>>>Try doing an "snmpget" request for one OID within your private enterprise.
>>>What does the agent display? (i.e. the debug output with the packet dumps)
>> I tried "snmpget" on a OID from my private enterprise. At the first time I
>> get
>> "Timeout: no Response from localhost"
>> When I try it a second time I get
>> "FERRARI-ELECTRONIC-MIB::Productname = No Such Object available on this
>> agent at this OID"
>You don't specify the exact "snmpget" command that you ran.
>But it looks suspiciously as if you forgot the instance subidentifier.
>Remember that you need to ask for
> snmpget .... FERRARI-ELECTRONIC-MIB::Productname.0
>when retrieving a scalar object.
Oh you're right, thanks for commemorate me of the subidentifier.
>But that's not the main problem here.
>> Here the output from the agent from start to the second "snmpget" call:
> [snip]
>Judging by that output, the GET requests is passed on to the subagent,
>but nothing is ever received back. It's almost as if the subagent has
>crashed.
>(It might be easier to follow if you give the original request using otpions
>such as '-r 0 -t 60'. That would avoid resending the GET request, and
> allow a bit more time for the subagent to respond)
I tried a GET request like that: "snmpget.exe -v 2c -r 0 -m all -t 60 -c public
localhost .1.3.6.1.4.1.17524.1.1.0"
Output:
"Error in packet
Reason: (genError) A general failure occured
Failed object: FERRARI-ELECTRONIC-MIB::Productname.0"
The Master send the request only once but he resend it 5 times with a delay
under a second.
In my Subagent I call sometimes the routine "Sleep()" but only with a value of
between 2 and 5 (Milliseconds).
So this should not be the reason !?
>> I have debug code in my MIB handler but there is nothing like an error.
>What debug code do you have in this routine?
>What is displayed when the GET request gets passed over?
I've get only debug code at these routines:
netsnmp_ds_set_string()
init_agent()
Both return zero.
I've included these SNMP headers:
net-snmp-config.h
net-snmp-includes.h
net-snmp-agent-includes.h
I thought that these headers or the routines in it handles the get request from
the master agent.
Or have I to write a function for that?!
Sorry if I'm to slow or a little bit slow-witted but this is my first project,
I'm programming since one year :)
Thanks
Julian
________________________________
Ferrari electronic AG
Ruhlsdorfer Str. 138
14513 Teltow (bei Berlin)
Handelregister Potsdam: HRB 12091
Vorstand: Johann Deutinger, Ulrich Dziergwa, Dr. Hartmut Fetzer
Aufsichtsrat: Peter Mark Droste (Vorsitzender)
------------------------------------------------------------------------------
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
Net-snmp-users@lists.sourceforge.net
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users