Re: snmpwalk snmpbulkwalk problems/bug??

Wes Hardaker via Net-snmp-coders <[email protected]>
Newsgroups gmane.network.net-snmp.devel
Message-ID <[email protected]>
Jose Roberto Fernandez Anahia <[email protected]> writes:

> I observed that my funcion My_Get_Table(struct variable *vp, oid
> *name, size_t *length, int exact, size_t *var_len, WriteMethod
> **write_method)
> is called much more than 5 (five) 5 times!!!

The upper code doesn't know how many entries you have, so it has to call
you until it gets a "nothing more" answer.  And it also has no notion of
whether or not new data was added to a table since the last time the mib
module was queried, so even if it only counted 4 rows in the walk of the
first column, it will continue to ask for more data in all the rest of
the columns too (it never assumes the data hasn't changed between calls).
-- 
Wes Hardaker
Please mail all replies to [email protected]
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.