Paul, I'll have a look on this. I guess in contrast to C-programming I have some understanding of SNMP, working with it for many years now. Its without question something strange ;) But IMHO also, once understood very practical, scalable and good; owfs is rather predestinated for it getting and settings data from/to sensors..
Although it's from a copy'n'paste scripting perspective guy like I am no real big issue to realize this working but very inefficient there is IMHO a much better way. Net-snmp is very widely used today (at least in the scope of snmp-addictives) Let me put together a reasonable presentation of the owfs-data during the next days. I could also take care of the MIB-part if needed. If this will get anything further it might make sense to register an enterprise number for owfs, so that this stuff could be located somewhere meaningful, which is IMHO the place where it should be: (http://pen.iana.org/pen/PenApplication.page) it's AFAIK still free. Although I could live with a "limited hack to just do it", I'd be happy to contribute as far as possible. While playing around further today I already ran into the first problem with floats in the external scripting only being possible by some obscure opaque_xxx - or as integer divided by 10/100/1000 (which was and is braindead, I always wondered until the readings today, why most of the things I know present a temperature as int=float*100 or as string..) But as far as I can see the C-API and docs for (agentX-)Plugins is quite comprehensive and well documented now. The presentation is in this special case where we have not only a few values most likely the biggest thing to consider, owfs is very predestinated and structured for that already. But with a general approach there are a few more things to be considered like I/Os (what I haven't), I'll think about how to present this, I guess I've seen at least enough bad implementations to say this should take more than tonight ;) regards Michael > -----Original Message----- > From: Paul Alfille [mailto:[email protected]] > Sent: Wednesday, April 08, 2009 12:38 AM > To: [email protected] > Subject: Re: [Owfs-developers] OWFS & SNMP > > I can program in C, but SNMP seems rather forbidding. > Specifically, how the readings would be presented. > > I found this example from ora-ltd: > http://www.ora-ltd.com/microweb/mib.html (The MIB is > http://www.ora-ltd.com/microweb/MTECH-DSTEMP-MIB.mib) > > I assume we would used the owfs names (i.e. temperature, > type, id, address) for the lowest level data. > > So can you explain more of how this should work? > > Paul Alfille > > > > On Tue, Apr 7, 2009 at 4:40 PM, Michael Markstaller > <[email protected]> wrote: > > > Hi, > > are there any news on this topic ? > > I'm currently after getting my temperatures available > by SNMP and played around a bit with extending net-snmp by > using a perl agent and "pass" to a shellscript. Works but > still much to do.. > Just wanted to ask wether there are any things going on > in this direction to share. > > I guess "the right way" would be a subagent for > Net-SNMP in C but unfortunately, I have no idea about C-programming.. > > regards Michael > > > -------------------------------------------------------------- > ---------------- > This SF.net email is sponsored by: > High Quality Requirements in a Collaborative Environment. > Download a free trial of Rational Requirements Composer Now! > http://p.sf.net/sfu/www-ibm-com > _______________________________________________ > Owfs-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/owfs-developers > > > > ------------------------------------------------------------------------------ This SF.net email is sponsored by: High Quality Requirements in a Collaborative Environment. Download a free trial of Rational Requirements Composer Now! http://p.sf.net/sfu/www-ibm-com _______________________________________________ Owfs-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/owfs-developers
