date Mon, Aug 1, 2011 at 5:05 AM
subject Re: SNMPd Agent
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.