search for: shutdowncmd

Displaying 20 results from an estimated 279 matches for "shutdowncmd".

2017 Apr 14
1
Windows: SHUTDOWNCMD stopped working after Creators Update
Hi all! All was working fine with all my UPSs and Windows 10 machines, NUT will notify events to NOTIFYCMD (which point to a .bat script to show messages) and finally will shutdown the system via SHUTDOWNCMD, that is another .bat file that simply uses shutdown.exe to hibernate the system. Today I upgraded all my machines to the latest Creators Update, and now NOTIFYCMD works as I can see messages, but when a forced shutdown is called via fsd command NUT will shutdown all the processes as usual but it...
2019 Jun 09
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
On Sun, 9 Jun 2019, Joe Gervasio wrote: > This question undermines my reading of the documentation.  I had thought that > these were separate things:  > >     SHUTDOWNCMD "/sbin/shutdown -u -h +1"  >     NOTIFYCMD /opt/local/sbin/upssched > > I had assumed that the SHUTDOWNCMD would be used by the Nut client (upsmon) to > shutdown the slave system,  and that the NOTIFYCMD would be responsible for > notifying users of what is going on.   &...
2013 Apr 11
1
NOTIFYCMD and SHUTDOWNCMD do not work until Nut is restarted
Hi everybody, I installed and configured Nut 2.4.3 on Debian Squeeze, using package. It monitors an MGE Pulsar 1500 UPS in standalone mode. Here are parts of upsmon.conf : SHUTDOWNCMD "/bin/bash /root/extinction.sh >> /var/log/ups/ups.log 2>>&1" NOTIFYCMD "/bin/bash /usr/sbin/alerte.sh" [...] NOTIFYFLAG ONBATT SYSLOG+EXEC At startup, driver, upsd and upsmon start but when I pull off the line, a message is appended to syslog but no script is...
2020 Aug 08
4
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...e mode".  I then > installed NUT on all three servers. In nut.conf I changed MODE to > "MODE=netclient".  I then added my MONITOR line in upsmon.conf. on all three.  > Looks something like this:   > > MONITOR ups at 192.168.1.70 1 monuser secret slave > > My SHUTDOWNCMD looks like this: > SHUTDOWNCMD "getUPSstatus ups at 192.168.1.70 ; logger -t upsmon.conf \"UPS status is $UPSstatus\" ; /sbin/shutdown -h +0"   >From your previous reports it looks as if getUPSstatus does not work in a SHUTDOWNCMD declaration since the shell variable it...
2020 Aug 03
2
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
On Sun, 2 Aug 2020, Todd Benivegna wrote: > How would you write the SHUTDOWNCMD line with multiple commands?  I’ve been > looking at the manual and see that you have to escape the internal “ but am > still a little confused on how to do this exactly. This assumes that you use the Bash shell in your default environment. It will need adaption if you use Dash. In .bash...
2019 Jun 08
3
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...: > > Is your System Shutdown Plan to shut down using upsmon or using the script upsched-cmd? In upssched.conf you do not have a line > > AT LOWBATT ups at ... EXECUTE lowbatt > > and in upssched-cmd there is nothing to shut down the system. Joe, Roger has a good point - the SHUTDOWNCMD should work as long as the master system waits for the "OB LB" state, and doesn't shut down early (say, at 30% battery remaining, but the UPS waits for 20% before declaring LB). I have never used a Synology box, but I vaguely remember them not using the NUT LB state. (That might have...
2020 Mar 24
2
upsmon SHUTDOWNCMD not working
Bonjour Openbsd 6.6 - NUT 2.7.4 from source - Eaton Ellipse Pro Installation OK upsc OK upsmon -c fsd OK (shutdown effective) I suppose mistake in upsmon config : # upsmon.conf MONITOR ellipse at localhost 1 upsmon pass master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -p -h now 'Sylvebarbe killed'" POLLFREQ 60 POLLFREQALERT 60 HOSTSYNC 120 DEADTIME 180 POWERDOWNFLAG /usr/local/ups/etc/killpower NOTIFYFLAG ONLINE SYSLOG #+WALL NOTIFYFLAG ONBATT SYSLOG #+WALL NOTIFYFLAG LOWBATT SYSLOG #+WALL NOTIFYFLAG FSD SY...
2020 Aug 07
4
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...6 19:19:45 proton upsmon[1552]: Auto logout and shutdown proceeding > Aug  6 19:19:50 proton upsmon.conf: UPS status is  The variable USPstatus set by getUPSstatus was not in the environment for the echo command. To get this to work, you'll have to put the upsc commands directly in SHUTDOWNCMD, or create a short script and call the script in SHUTDOWNCMD. > Aug  6 19:19:59 proton upsmon[1545]: UPS: ups at 192.168.1.70 (slave) (power value 1) Could you tell us your topology? Which system is master and which is slave? Do you have multiple slaves? The decision to shutdown is t...
2019 Jun 10
0
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
> On 9 Jun 2019, at 21:19, Roger Price <roger at rogerprice.org> wrote: > Using upssched and a upssched-cmd script to shut down the system is an alternative to using the builtin upsmon SHUTDOWNCMD on status [OB LB]. A upssched-cmd script can provide a managed shutdown well before [OB LB] is reached, but should the UPS reach that status upsmon's SHUTDOWNCMD will take over and enforce an emergency shutdown. > > <SNIP> > > Your current setup in which upsmon performs the...
2017 Jun 08
3
Apple Mac slave
...user would need at least "actions = SET". You will need to reload upsd after changing upsd.users. If the UPS is not turning itself off after the NAS goes into safe mode, it might be possible to do this from the Mac. You probably have something like this in the Mac's upsmon.conf: SHUTDOWNCMD "/sbin/shutdown -h +0" You could add an UPS shutdown command before the Mac shutdown command: upscmd -u upsmaster -s sekret UPS at synology shutdown.stayoff but you would need to be sure that the UPS shutdown delay is long enough to allow the NAS to go into safe mode. (This is why i...
2018 Jul 29
2
Can Not Get UPS to Turn Off After System Shutdown
Denny: Thank you. Problem solved. I switched SHUTDOWNCMD back to the default and added nut.powerfail to the shutdown runlevel. Now the UPS turns off after the system shutdown, if the shutdown is caused by lack of power going to the UPS. I checked and found the file sys-power:nut-2.7.4-r1:2018...log in /var/log/portage/elog/*. It did contain the messag...
2020 Mar 24
0
upsmon SHUTDOWNCMD not working
*** solved *** Using http://rogerprice.org/NUT/ConfigExamples.A5.pdf and upsrw, my BSD shutdown at low power of 80% Bye
2018 Jul 28
3
Can Not Get UPS to Turn Off After System Shutdown
...things work, (notification after 10 seconds on battery, notification and system shutdown after 100 seconds on battery.) However I can't seem to get the UPS (an Eaton 5SC1500) to turn itself off after the Gentoo system shutdown. This is the shutdown command I am using in /etc/nut/upsmon.conf: SHUTDOWNCMD "/usr/sbin/upsdrvctl shutdown Eaton5SC1500 ; /sbin/shutdown -h +0" The /etc/shutdown part works. The UPS name, Eaton5SC1500, is correct because the command 'upsc Eaton5SC1500' lists the current parameters of the ups. Here is part of /var/log/messages during my last test "p...
2015 Apr 03
2
I'm new to NUT in Windows, having problems with blazer_usb doing an UPS shutdown
...l the preserve battery life as much as possible (via shutdown.return). My set up uses the blazer_usb driver and the Megatec protocol. I'm using latest NUT port for Windows; 2.6.5-3. I've successfully configured UPSMON to monitor the UPS status, and do the shutdown procedure by calling the SHUTDOWNCMD on a simple bat file I've made. This bat file is as follows: cd C:\Program Files (x86)\NUT\bin blazer_usb -a HAMUPS -k pause So this should send the shutdown command to the UPS and start the shutdown timer (I've not added the Windows shutdown part to the bat file yet). The problem is that...
2020 Aug 08
0
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...#39;s? No, the Synology and the three servers are all on the one UPS (also my switch and spare monitor). All these are super low power devices (two Intel NUCs and a Raspberry Pi) so at idle the draw like 50-75w and at max load it’s like 100-150w tops.  UPS is rated for 300w. > Better: > >  SHUTDOWNCMD "logger -t upsmon.conf \"UPS status [$( upsc ups at 192.168.1.70 ups.status )]:$( upsc ups at 192.168.1.70 battery.charge )\" ; /sbin/shutdown -h +0" > > I forgot the battery.charge. Roger I changed it to this, thanks. So does everything look good with my config files?  A...
2011 Jun 08
2
Misconfiguration of Windows MSI installer 2.6.0-1 with my Powerware 5115 connected via USB port
...ver = bcmxcp_usb port = notUsed desc = "PowerWare 5115" *upsd.conf:* LISTEN 192.168.1.12 3493 *upsd.users:* [monuser] password = xxxxxxxx upsmon master *upsmon.conf:* MONITOR PW5115 at 192.168.1.12 1 monuser xxxxxxxx master MINSUPPLIES 1 SHUTDOWNCMD "/sbin/shutdown -h +0" NOTIFYCMD /sbin/upssched POLLFREQ 5 POLLFREQALERT 5 HOSTSYNC 15 DEADTIME 15 POWERDOWNFLAG /etc/killpower NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 *ups...
2020 Aug 04
2
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...ersion for use in Dash with Ubuntu, correct? Yes, you replace <myups> with the address of your UPS, for example "ups at 192.168.x.y". Are you using Dash or Bash? If it's Dash, the function getUPSstatus probably goes into .profile . Test on the command line before modifying SHUTDOWNCMD by typing the commands getUPSstatus <myups> echo "UPS status is $UPSstatus" You should see "UPS status is [OL]:100". Roger
2020 Aug 03
1
Synology NAS is shutting down Ubuntu servers after very brief power outage
Roger, How would you write the SHUTDOWNCMD line with multiple commands?  I’ve been looking at the manual and see that you have to escape the internal “ but am still a little confused on how to do this exactly. -- Todd Benivegna // todd at benivegna.com On Aug 2, 2020, 9:38 AM -0400, Roger Price <roger at rogerprice.org>, wrote: >...
2018 Feb 01
3
testing shutdown: pc not restarting; and "ups unavailable" messages
> It actually occurred to me that I could try this with another (any other) computer here at work, so I did. I set the BIOS to "always on" after power cut. I booted ubuntu. I did "sudo shutdown -h now" from the console. The pc switched off as expected. Then I removed the power cable and then plugged it back in. According to the theory above, this should have caused the
2007 Feb 06
9
Shutdown problem with Geek Squad GS1285U
...en the power is restored. If I switch the UPS off , restore power and switch the UPS on the system will restart. I have not been able to get nut to switch the UPS off after it brings the system down. I can get the UPS to switch off with upscmd load.off. So the UPS can be controlled. Here is my SHUTDOWNCMD: SHUTDOWNCMD "/sbin/shutdown now -P" I also tried: SHUTDOWNCMD "/sbin/shutdown now -h" I found this script in /etc/init.d/nut and changed the paths to upsd and upsmon and used it. #! /bin/sh # # nut - Script to start and stop Network UPS Tools daemons PATH=/sbin:/usr/sbin:/bin...