Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-15 Thread Dmitri Stepanov
>Четверг, 14 июля 2016, 23:58 +03:00 от Roger Price < ro...@rogerprice.org >: > >On Thu, 14 Jul 2016, Dmitri Stepanov wrote: > >> Some of those hosts haven't NUT including upsmon (and other software >> which is not included by suppliers of the hosts) for a number of >> reasons. I don't need to

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-14 Thread Kris Jordan
Dmitri Stepanov wrote on 7/14/2016 5:18 AM: All the hosts are installed together in one rack and have fed from one UPS (only I am remote from the system :) and I haven't ability to connect to it. Some of hosts haven't NUT for a number of reasons. I don't need to inform not-NUT hosts about any

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-14 Thread Roger Price
On Thu, 14 Jul 2016, Dmitri Stepanov wrote: Some of those hosts haven't NUT including upsmon (and other software which is not included by suppliers of the hosts) for a number of reasons. I don't need to inform not-NUT hosts about any UPS events, etc... but only shutdown all the hosts after

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-14 Thread Dmitri Stepanov
Thank you for answer Stuart >Среда, 13 июля 2016, 17:54 +03:00 от Stuart Gathman : > >On 07/13/2016 10:02 AM, Stuart Gathman wrote: >> On 07/13/2016 04:17 AM, Dmitri Stepanov wrote: >>>I need to shutdown a number of hosts which has not NUT from one which >>> has it. >>

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-14 Thread Dmitri Stepanov
Thank you Roger Среда, 13 июля 2016, 15:22 +03:00 от Roger Price : > >On Wed, 13 Jul 2016, Dmitri Stepanov wrote: >    shutdown-all-hosts.sh contains: # Linux hosts HOSTLIST="sim iogate br" for host in $HOSTLIST do ... ssh $host halt

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-13 Thread Stuart Gathman
On 07/13/2016 10:02 AM, Stuart Gathman wrote: > On 07/13/2016 04:17 AM, Dmitri Stepanov wrote: >>I need to shutdown a number of hosts which has not NUT from one which has >> it. > Let's make sure you are not missing an obvious point. By "has not NUT", > you might mean not running upsd. The

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-13 Thread Stuart Gathman
On 07/13/2016 04:17 AM, Dmitri Stepanov wrote: >I need to shutdown a number of hosts which has not NUT from one which has > it. Let's make sure you are not missing an obvious point. By "has not NUT", you might mean not running upsd. The best practice is to run upsmon on the other hosts.

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-13 Thread Roger Price
On Wed, 13 Jul 2016, Dmitri Stepanov wrote:    shutdown-all-hosts.sh contains: # Linux hosts HOSTLIST="sim iogate br" for host in $HOSTLIST do ... ssh $host halt -p ... done    shutdown-all-hosts.sh works fine if it runned manually.    But it does not work even if I insert sleep 30 sec

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-13 Thread Dmitri Stepanov
Thank you for answer Roger >Среда, 13 июля 2016, 11:49 +03:00 от Roger Price : > >On Wed, 13 Jul 2016, Dmitri Stepanov wrote: > >> Hi >> >>    I need to shutdown a number of hosts which has not NUT from one which has >> it. >> >>    I tried to do it from upssched script

Re: [Nut-upsuser] Best practice to shutdown hosts which has not NUT via upssched

2016-07-13 Thread Roger Price
On Wed, 13 Jul 2016, Dmitri Stepanov wrote: Hi    I need to shutdown a number of hosts which has not NUT from one which has it.    I tried to do it from upssched script (after upssched's timer) like this: case $1 in     earlyshutdown)     logger -t upssched-cmd "Early