I should have said specifically that this is Luke Pascoe's work.

Looking through the code, the program expects owfs to be mounted on
/var/1wire and logs to /tmp/1wire_snmp.log
These are easily changed constants in the first few lines.

The code is also very nicely commented.

I might suggest that a version that uses owserver (via the ownet protocol)
would also be a very flexible approach. Then the snmp server wouldn't even
have to run on the same machine.

Paul

On Mon, Aug 1, 2011 at 1:37 PM, Roberto Spadim <[email protected]>wrote:

> very nice!
> have a howto, to put at owfs site?
>
>
>   Luke Pascoe
>> Date: 2011/8/1
>> Subject: Re: SNMPd Agent
>>
>> Script available:
>> http://sourceforge.net/projects/owfs/files/snmp/1w_snmp.py/download
>>
>> It uses the SNMPd "pass" feature which passes control of an entire MIB
>> tree to an external application.
>>
>> I'm pretty sure the output order could be vastly improved, I'm not that
>> familiar with SNMP MIBs but looking at the way some of the system output is
>> done my method is...non standard. I can't think of a better way to handle
>> the fact that the data is itself a tree though.
>>
>> Anyway, every item in the OWFS is exported and should be addressed fairly
>> consistently. I use a cache file to ensure devices keep the same OID
>> regardless of the order they appear on the filesystem, so as devices are
>> added and removed the OIDs remain the same. If the contents of the
>> directories change the OIDs will move about though, but as I understand they
>> way your stuff works this shouldn't happen except perhaps between version
>> releases.
>>
>> This is a first cut, concieved and implemented in a weekend. I'm open to
>> feedback.
>>
>>
------------------------------------------------------------------------------
BlackBerry&reg; DevCon Americas, Oct. 18-20, San Francisco, CA
The must-attend event for mobile developers. Connect with experts. 
Get tools for creating Super Apps. See the latest technologies.
Sessions, hands-on labs, demos & much more. Register early & save!
http://p.sf.net/sfu/rim-blackberry-1
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers

Reply via email to