<br><div class="gmail_quote">2012/10/31 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">
Hello,<br>
<br>
On Tue, Oct 30, 2012 at 09:11:16PM +0100, Arnaud Quette wrote:<br>
> 2012/10/30 Ing. Ján <<a href="mailto:jan.ondrej@upjs.sk">jan.ondrej@upjs.sk</a>><br>
<div class="im">> On Mon, Oct 29, 2012 at 08:49:03PM +0100, Arnaud Quette wrote:<br>
> > > 2012/10/25 Ing. Ján <<a href="mailto:jan.ondrej@upjs.sk">jan.ondrej@upjs.sk</a>><br>
> > > On Wed, Oct 24, 2012 at 10:46:32PM +0200, Arnaud Quette wrote:<br>
</div><div class="im">> Can I define multiple MIB files with multiple arguments?<br>
> ><br>
><br>
> this is simply a wrapper around the 'snmpcmd' (i.e works for snmp{walk,get,<br>
> ...}) "-M DIRLIST"<br>
><br>
> I've modified the option for:<br>
> -m DIRLIST -- colon separated list of directories to also search for MIBs<br>
><br>
> the specified DIRLIST is appended to Net SNMP DIRLIST<br>
<br>
</div>Do I need to specify snmp dir parameters if my MIBs are in default paths?<br></blockquote><div><br>no<br>it's more in case you have it in the current dir (which is already handled) or elsewhere, not in Net SNMP search dirs<br>
 </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">
> > Program received signal SIGSEGV, Segmentation fault.<br>
> > 0x00007ffff75d305a in __strchr_sse2 () from /lib64/libc.so.6<br>
><br>
</div><div class="im">> as told previously, it won't work out of the box!<br>
> the mapping (1rst column in the .c file, prefixed with "unmapped...") has<br>
> to be edited to use actual NUT variables name, and possibly value lookup.<br>
> there is a small example in the .c file.<br>
><br>
> that said, I'm still interested in the test results of mode 1<br>
<br>
</div>This .c programming looks to be complicated for me. I have no time to<br>
read all sources, how to write all code to this source.<br></blockquote><div><br>these are only C structures. you don't need much knowledges, but I still have to write the docfile to give directions<br> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

Your script created mostly only empty .c file, so all translations should 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></blockquote><div><br>send the result to the list, in compressed form.<br>remember that I'm firstly validating the new script, and secondly the result, but both for integration.<br>
<br>cheers,<br>Arnaud<br></div></div>-- <br>Network UPS Tools (NUT) 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>