Re: how to get table data inside request handler
Alexander Bubnov <[email protected]>
| Newsgroups | gmane.network.net-snmp.user |
|---|---|
| Message-ID | <[email protected]> |
I guess here what I want ./agent/mibgroup/examples/netSnmpHostsTable.c 2009/2/19 Alexander Bubnov <[email protected]> > Thank you very much! > > Does different model from "data_set" one exist where I can change/delete > table data? > > 2009/2/19 Dave Shield <[email protected]> > >> 2009/2/18 Alexander Bubnov <[email protected]>: >> > 4. snmpwalk returns "ROW1" - how is it possible if I deleted all rows in >> Watcher()? >> >> You are using the data_set model, where the agent helper has the basic >> responsibility for deciding what rows are valid, and what results to >> return. >> >> By the time your handler is called, the agent knows what varbind it >> intends >> to return. Your handler is just being given a last chance to amend this. >> >> Deleting the row from the underlying table won't affect the current query, >> since >> the result varbind has already been (provisionally) decided. If you >> don't want >> this varbind returned, then you need to say so explicitly >> >> This isn't my personal preferred handler, so I'm not too familiar with >> the >> precise details. But I suspect that >> netsnmp_set_request_error(reqinfo, request, SNMP_NOSUCHINSTANCE); >> would probably do the trick. >> >> Dave >> > > > > -- > /BR, Alexander > -- /BR, Alexander ------------------------------------------------------------------------------ Open Source Business Conference (OSBC), March 24-25, 2009, San Francisco, CA -OSBC tackles the biggest issue in open source: Open Sourcing the Enterprise -Strategies to boost innovation and cut costs with open source participation -Receive a $600 discount off the registration fee with the source code: SFAD http://p.sf.net/sfu/XcvMzF8H _______________________________________________ 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