<HTML><BODY>Thank you for idea Kris. I guess I know now why my scripts doesn't work from upssched... That's because it's running as another user (_ups in my NUT-master OpenBSD box). And I tested it by hand as root. Unfortunately now I haven't ability to connect to and check my theory by practice on the system.<br><br><br><blockquote style="border-left:1px solid #0857A6; margin:10px; padding:0 0 0 10px;">
        Пятница, 15 июля 2016, 1:54 +03:00 от Kris Jordan <nut01.kj@sagebrushnetworks.com>:<br>
        <br>
        <div id="">


















        












<div class="js-helper js-readmsg-msg">
        <style type="text/css"></style>
        <div>
                <base target="_self" href="https://e.mail.ru/">
                
            <div id="style_14685378710000000184_BODY">Dmitri Stepanov wrote on 7/14/2016 5:18 AM:<br>
> All the hosts are installed together in one rack and have fed from one <br>
> UPS (only I am remote from the system :) and I haven't ability to <br>
> connect to it. Some of hosts haven't NUT for a number of reasons. I <br>
> don't need to inform not-NUT hosts about any UPS events, heartbeat, <br>
> etc... but only shutdown all the hosts after upssched timer expired. <br>
> Because script shutdown-all-hosts.sh works fine (there is no ssh <br>
> problem) if it's been run by hand but don't work from CMDSCRIPT - I <br>
> thought that I miss something "at the NUT side".<br>
<br>
I do something similar, I don't want inbound connections (DMZ --> LAN), <br>
so I use SSH.<br>
<br>
SSH environment difference (e.g. SSH agent forwarding)? That could <br>
explain why it works manually, but not when unattended (upssched).<br>
<br>
I specifically set SSH_AUTH_SOCK="" in my shutdown script so it won't <br>
affect my testing when running the script by hand. I use ssh -i <br>
<password-less identity file> for each host to shut down.<br>
<br>
_______________________________________________<br>
Nut-upsuser mailing list<br>
<a href="mailto:Nut-upsuser@lists.alioth.debian.org">Nut-upsuser@lists.alioth.debian.org</a><br>
<a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser</a><br>
</div>
            
        
                <base target="_self" href="https://e.mail.ru/">
        </div>

        
</div>


</div>
</blockquote>
<br></BODY></HTML>