While doing set operation using our application with the simulated
device, the save operation is not successful and I got an information
like "SNMP Error with the agent". So I tried to capture packets during
set operation.
Set operation is done for only one scalar oid and its type is IPAddress.
First SET-REQUEST is shown and next corresponding to that SET-RESPONSE
is displayed and in that SET-RESPONSE it is displayed as [EMAIL PROTECTED]
Will this be a cause for my problem? Could anyone help me in this that
in which case it will happen?
Moreover, I read an explanation for this. Just sending that too.
"An OID to a descriptor attribute which can be used with persistent to
verify that the svrThrVariableName instance is correct. On agent
restarts the value for this oid will be retrieved and compared to the
svrThrComparisonValue. If not equal, then it's possible that the
oid instancing for svrThrVariableName is incorrect.
If this occurs, then the svrThrStatus will be set to rowError and the
svrThrErrorValue will be set to badValue."
Thanks
On 6/24/05, Robert Story <[EMAIL PROTECTED]> wrote:
> On Thu, 23 Jun 2005 10:09:23 +0100 Dave wrote:
> DS> On Thu, 2005-06-23 at 07:38, aakansha rajvi wrote:
> DS> Then you need to check the length of the incoming value, to
> DS> see whether it will fit. Something like:
> DS>
> DS> if (requests->requestvb->val_len >= 10 ) {
> DS> netsnmp_set_request_error(reqinfo, requests,
> DS> SNMP_ERR_WRONGVALUE);
> DS> return SNMP_ERR_NOERROR;
> DS> }
>
> Wouldn't that be SNMP_ERR_WRONGLENGTH?
>
> --
> NOTE: messages sent directly to me, instead of the lists, will be deleted
> unless they are requests for paid consulting services.
>
> Robert Story; NET-SNMP Junkie
> Support: <http://www.net-snmp.org/> <irc://irc.freenode.net/#net-snmp>
> Archive: <http://sourceforge.net/mailarchive/forum.php?forum=net-snmp-coders>
>
> You are lost in a twisty maze of little standards, all different.
>
-------------------------------------------------------
SF.Net email is sponsored by: Discover Easy Linux Migration Strategies
from IBM. Find simple to follow Roadmaps, straightforward articles,
informative Webcasts and more! Get everything you need to get up to
speed, fast. http://ads.osdn.com/?ad_idt77&alloc_id492&op=click
_______________________________________________
Net-snmp-coders mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders