I think there was mistake in the MIB that I was using which caused the issue. 
GETs work now. But I have another question where someone might be able to throw 
some light. My use case is I want to be able to a create table data set along 
with the index and column defintions initially. But in a request context I want 
to be able to add rows to the table (say a api call to fill the rows of the 
table). As this data is constantly changing I am ok with deleting the previous 
rows in the table and adding new rows everytime the handler is called. How can 
I go about doing it ? I saw in the forum one of the posts suggested holding the 
netsnmp_table_data_set* reference as a global as there is no way of obtaining 
it with in the helper ? So put simply I want to be able to create a table or 
add rows to a table and access it when the handler gets called ... 

mani



-----Original Message-----
From: NetSNMP Mailbox [mailto:net-snmp-m...@freesnmp.com] On Behalf Of Robert 
Story
Sent: Tuesday, July 07, 2015 6:26 PM
To: Mani Pooni
Cc: net-snmp-coders@lists.sourceforge.net
Subject: Re: table handler code when the index is a ASN_OCTET_STR

On Mon, 6 Jul 2015 20:55:58 +0000 Mani wrote:
MP> I am looking at the example here at
MP> http://www.net-snmp.org/dev/agent/data_set_8c-example.html for the 
MP> table data set helper. Using the mib browser, I am able to do get 
MP> bulk and get subtree and this seems to be working fine.
MP> But get next doesn't seem to working properly. Is this because the 
MP> index is a ASN_OCTET_STR  and there needs to be specific code to 
MP> handle this case ?

The code should handle octet strings. Can you post your table's MIB definition 
and init function?

Robert

------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to