RE: Request help in Table implementation

This is a discussion on RE: Request help in Table implementation within the SNMP Coders forums, part of the Networking and Network Related category; Hi Dave Appreciate your help in answering my doubts. Thanks for the help. I had made a mistake in setting ...


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

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 09-24-2007
Anuradha A- TLS, Chennai.
 
Posts: n/a
Default RE: Request help in Table implementation


Hi Dave

Appreciate your help in answering my doubts. Thanks for the help.
I had made a mistake in setting the index column. I had corrected it and both GET and GETNEXT works perfectly.

Thanks and Regards
Anuradha.A

-----Original Message-----
From: dave.shield@googlemail.com [mailto:dave.shield@googlemail.com]On
Behalf Of Dave Shield
Sent: Monday, September 24, 2007 3:26 AM
To: Anuradha A- TLS, Chennai.
Cc: net-snmp-coders@lists.sourceforge.net; Wes Hardaker
Subject: Re: Request help in Table implementation


On 20/09/2007, Anuradha A- TLS, Chennai. <aanuradha@hcl.in> wrote:
> I generated the .c and .h files using "mib2c.create-dataset.conf" for a
> table with a integer as index. (only one index for the table)
>
> The GETNEXT on the table works correctly , but the GET fails for some
> reason. (always returns a null).
>
> It doesn't reach my handler method at all for the GET request, but reaches
> my handler method for GETNEXT.
>
> Could you please throw some light on this issue?


How are you populating the contents of the table?
Remember that the 'dataset' helper assumes that it knows all the valid
rows, and will attempt to fulfil the request itself. It only calls your
handler to allow for last-minute amendments of the value that it has
set up internally.

If the handler knows that a particular row doesn't exist, then it won't
call your handler.

Dave

DISCLAIMER:
-----------------------------------------------------------------------------------------------------------------------

The contents of this e-mail and any attachment(s) are confidential and intended for the named recipient(s) only.
It shall not attach any liability on the originator or HCL or its affiliates. Any views or opinions presented in
this email are solely those of the author and may not necessarily reflect the opinions of HCL or its affiliates.
Any form of reproduction, dissemination, copying, disclosure, modification, distribution and / or publication of
this message without the prior written consent of the author of this e-mail is strictly prohibited. If you have
received this email in error please delete it and notify the sender immediately. Before opening any mail and
attachments please check them for viruses and defect.

-----------------------------------------------------------------------------------------------------------------------

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
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 01:20 AM.


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