Hi,<br><br>I'm back on your topic, with a "bit" of lag, as usual these times...<br>are you still around for completing these points (helper script + netys subdriver)?<br><br><div class="gmail_quote">2012/11/2 Ing. Ján <span dir="ltr"><<a href="mailto:jan.ondrej@upjs.sk" target="_blank">jan.ondrej@upjs.sk</a>></span><br>


<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On Thu, Nov 01, 2012 at 12:56:48AM +0100, Arnaud Quette wrote:<br>
> 2012/10/31 Ing. Ján <<a href="mailto:jan.ondrej@upjs.sk" target="_blank">jan.ondrej@upjs.sk</a>><br>
<div>> > Your script created mostly only empty .c file, so all translations should<br>
> > be<br>
> > added manually. May be it's simpler to get an already existing *-mib.c file<br>
> > and update it for my UPS, like use your empty file. Or something got wrong?<br>
> ><br>
><br>
> send the result to the list, in compressed form.<br>
> remember that I'm firstly validating the new script, and secondly the<br>
> result, but both for integration.<br>
<br>
</div>OK, here are.<br>
</blockquote></div><br>1) on the gen-snmp-subdriver.sh side:<br><br>things are almost fine, but not completely:<br>the textual (string) walk have not been resolved, so my script may be wrong in using -M or something like that.<br>


<br>I've no SNMP <span lang="en"><span>under the hand, so I'm relying on you! I need the following:<br><br>$ snmpwalk -Os -v1 -M /path/to/Netys/MIB/directory -c $COMMUNITY $HOSTNAME $SYSOID 2>/dev/null 1> snmpwalk-Os-M.log<br>
<br>and another one without -M (again)<br clear="all"></span></span><span lang="en"><span>$ snmpwalk -Os -v1 -c $COMMUNITY $HOSTNAME $SYSOID 2>/dev/null 1> snmpwalk-Os.log<br></span></span><br>BTW, what is the location of your .mib file?<br>
<br>I've just committed the script + some documentation:<br><a href="http://trac.networkupstools.org/projects/nut/changeset/3828">trac.networkupstools.org/projects/nut/changeset/3828</a><br><br>it should help understanding the process.<br>
<br>2) on the <a href="http://netys-mib.ch" target="_blank">netys-mib.ch</a> side<br>

<br>as told the above, the general result is good: SNMP subdrivers are just big C structs + a few hook functions.<br>we have a specific struct for your unit, filed with OIDs so that we just have to map the good nut name to the more possible OIDs.<br>
again, the new doc should clarify a bit things.<br>I'm checking to commit a first version, with essential data.<br><br>cheers,<br>Arnaud<br>-- <br>NUT (Network UPS Tools) Project Leader - <a href="http://www.networkupstools.org" target="_blank">http://www.networkupstools.org</a><br>
Debian Developer - <a href="http://www.debian.org" target="_blank">http://www.debian.org</a><br>


Free Software Developer - <a href="http://arnaud.quette.fr" target="_blank">http://arnaud.quette.fr</a><br><br>