Re: ask about souce code generated with mib2c .iterate.conf

"Dave Shield" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
On 05/01/07, [email protected] <[email protected]> wrote:
> could I know the detail mechnism about this code or how to modify them for
> us?

That's a somewhat vague question.
Could you perhaps give a bit more detail about exactly what you
are struggling with?

There are basically two bits of the code generated by mib2c.iterate.conf
that you'd need to tweak.   One is the 'get_{first,next}' routines, which
should walk through each row of the table, returning the index information
for each row and a handle on the data for that row.

The second is the handler routine itself, where you take the row handle
(as supplied by the get_{first,next} routines), and return the value of the
relevant column from that row.

Which of these are you having problems with?

Dave

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
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.