Hi,<br><br>I tested somany times liebert-esp driver on my ups.<br><br>I found/gave two (bug)/error :<br><br>first,<br><br>I ran /usr/local/ups/bin/upsdrvctl start and driver didnt start<br>I gave this error:<br>ESP-II capable UPS not detected<br>
<br>I know that it is in upsdrv_initinfo function and I think ups didnt gave answer, but I dont know why?<br><br>second,<br>I ran /usr/local/ups/bin/upsdrvctl start and<br>ups shutdown itself and I dont know why?<br>do you have any idea ?<br>
How can I debug this ? <br>I would like use the liebert-esp2 in debug mode and write in a logfile the output of driver, maybe it help for me.<br><br>I know that I need run the driver like this : /path/to/liebert-esp2 -DD -a liebert-esp2 but If I use this liebert-esp -DD -a liebert-esp &gt;&gt; logfile &lt;- it doesnt work<br>
<br>Thanks your advice and time.<br><br><br><br><br><div class="gmail_quote">2010/7/27 Arjen de Korte <span dir="ltr">&lt;<a href="mailto:nut%2Bdevel@de-korte.org">nut+devel@de-korte.org</a>&gt;</span><br><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
<div class="im">Citeren Robert Jobbagy &lt;<a href="mailto:jobbagy.robert@gmail.com" target="_blank">jobbagy.robert@gmail.com</a>&gt;:<br>
<br>
</div><div class="im"><blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
How can I log my driver in debug mode?<br>
</blockquote>
<br></div>
Please be specific in your questions. If you want to know how to log debug messages in a driver, use the upsdebug_* functions (examples are in the driver already). If you want to know how to run a driver in debug mode, try running it with -h on the command line and/or read &#39;man 8 nutupsdrv&#39;.<div class="im">
<br>
<br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204); padding-left: 1ex;">
Because I work on it liebert-esp2 driver shutdown function and<br>
if I put the commands in updateinfo funciton and call it manual that it<br>
works fine.<br>
</blockquote>
<br></div>
I have no idea what you mean to write here. Please be a little more specific (what did you change, which commands did you execute and what was the result).<div><div></div><div class="h5"><br>
<br>
Best regards, Arjen<br>
-- <br>
Please keep list traffic on the list<br>
<br>
<br>
_______________________________________________<br>
Nut-upsdev mailing list<br>
<a href="mailto:Nut-upsdev@lists.alioth.debian.org" target="_blank">Nut-upsdev@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev" target="_blank">http://lists.alioth.debian.org/mailman/listinfo/nut-upsdev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Best Regards,<br><br>Robert <br>