Re: bulk register

Dave Shield <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
Alexander A. Danilov wrote:
> I have some problem with register data for oid in snmp table.
> I use agentx (tcp:localhost:705) and 'netsnmp_register_watched_instance' 
> method for oid registration.
>   
You are implementing a table by registering each value individually?
That will work, I suppose - but yes, it will be incredibly inefficient.

> Is there any solution to make it more quickly?
>   
You would do better to use one of the table helpers, which are
designed for implementing (and registering) tables in one step.
My personal preference is to use the 'table_tdata' helper,
but there are several possible alternatives.

See the FAQ section on coding for more details about the
various options.   The tool "mib2c" will help you generate
a suitable starting template, that you can then modify appropriately.

Dave

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
Net-snmp-users mailing list
[email protected]
Please see the following page to unsubscribe or change other options:
https://lists.sourceforge.net/lists/listinfo/net-snmp-users
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.