Re: table properties for row manipulation

"Pilt" <[email protected]>
Newsgroups gmane.network.net-snmp.user
Message-ID <[email protected]>
biggest thanx for your reply, Wes

OK, I understood it would be hard to do dynamic row addition in ucd style :)) So I took up creat_dataset.conf template.
I checked out examples/data_set.c, where only init routine is present
and it's said that all requests are handled. I tried making a module with similar structure for a table in my MiB (though I used some system info to fill the table). But I couldn't get any response for get requests (as if the .so didn't load at all) and neither debug nor error messages.
Also I saw some examples where additional <table_name>_handler function was used.
So I'm a bit confused: do I necessarily have to use that handler or I've got mistakes elsewhere?

Best regards


>>>>>> "P" == Pilt  <[email protected]> writes:
>
>P> can you tell me, plz, are there any requirements a table should
>P> meet so that I can add/delete its rows in addition to that all row
>P> columns must be read-create and a rowstatus column must be present?
>
>If the MIB is written in SMIv2, then yes the writable columns should
>be marked as "read-create" and the rowstatus column should be there
>(to allow for deletion at a minimum; in theory you could code the
>agent to accept new rows without it, but that's not the standard way
>to do so).
>
>P> Is it possible to manipulate table rows using old api (ucd style
>P> template)?
>
>Yes.
>
>P> If yes are there any examples?
>
>Err...  the old implementation of the routing table, maybe.  Pulling
>the ucd-snmp specific release and looking through it might help...
>
>Actually, it just dawned on me, the usm user table is still using the
>old api I think (agent/mibgroup/snmpv3/usmUser.c) and supports row creation.

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier.
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
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.