On 30 December 2011 18:09, Suresh kumar <skjaiswa...@hotmail.com> wrote:
> You haven't said which mib2c framework you are using for your table,
>> but a number of them take the option
>>
>> mib2c -Scache=1 .....
>>
>> which will include the basic cache handling code.
>
>
> 1. We are generating table code templates by executing the following
> command:
>   mib2c -c mib2c.create-dataset.conf calientChassis.

OK - that doesn't recognise the -Scache flag, as this whole approach
is essentially one big cache.   It's really designed for a pure-SNMP
table - i.e. one where all updates are done via SNMP SET requests.
It's not really suited to integrating with an external data source.

>   Will it not be possible to handle updates efficiently using dataset APIs?

I haven't done any benchmarking, but I wouldn't expect it to be as efficient
as some of the others - most notably the table_tdata helper.
Remember that the dataset helper uses a generic mechanism for handling
the individual columns, since it needs to work with *any* MIB module
(with no code changes).
   The other helpers, such as table_tdata, will generate a dedicated data
structure to represent a row of this particular table, so can go straight to
the relevant column value.

But I haven't done any timings - your mileage may vary.


>    We do not want to create files as required for implementation using the
> cache option.
>    Are these files cleaned up on agent shutdown?.

The cache mechanism doesn't use any files.
It stores a local copy of the table in memory (updating it as required).
Obviously, this memory is released when the agent shuts down.



> 2 . We also trying integrate net-snmp 5.7 code with our CORBA stub.
> we made our C++ interfaces.
>        and want acess this interfce directely in net-snmp extended MIB agent
> code for geting and seting functiinality.
>       hence   can we compile net-snmp code using g++ compile for acessing
> c++ code in directely in our extended
>                  calient agent code.?

It should be possible to compile the Net-SNMP code using g++, yes.
Certainly all of the files are wrapped in "extern C" blocks, and we have
had reports of this working in the past.
   But the suite is primarily aimed at straight C applications, so there
may have been some code changes that break a C++ compilation.
Give it a go, and let us know how you get on.



Dave

------------------------------------------------------------------------------
Ridiculously easy VDI. With Citrix VDI-in-a-Box, you don't need a complex
infrastructure or vast IT resources to deliver seamless, secure access to
virtual desktops. With this all-in-one solution, easily deploy virtual 
desktops for less than the cost of PCs and save 60% on VDI infrastructure 
costs. Try it free! http://p.sf.net/sfu/Citrix-VDIinabox
_______________________________________________
Net-snmp-coders mailing list
Net-snmp-coders@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/net-snmp-coders

Reply via email to