search for: cmdscript

Displaying 20 results from an estimated 131 matches for "cmdscript".

2016 Jul 13
2
Best practice to shutdown hosts which has not NUT via upssched
...f it runned manually. > ?? But it does not work even if I insert sleep 30 sec before upsmon -c fsd When you say "it does not work", what are the symptoms? Does shutdown-all-hosts.sh get called? > ?? Also I read somewhere that it is not a good idea to shutdown other hosts from the CMDSCRIPT. The User Manual chapter 7.2: << It?s not a good idea to call your system?s shutdown routine directly from the CMDSCRIPT, since there?s no synchronization with the slave systems hooked to the same UPS. FSD is the master?s way of saying "we?re shutting down now like it or not, so you...
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...T SIGUSR1 * CANCEL-TIMER first-warning-timer + AT SIGUSR1 * CANCEL-TIMER last-warning-timer + AT SIGUSR1 * CANCEL-TIMER shutdown-timer ++ +It is not an error to cancel a timer which is not running. *EXECUTE* 'command';; Immediately pass 'command' as an argument to CMDSCRIPT. diff -rup -x '*.html' -x '*.8' -x '*.5' nut-2.7.4.orig/docs/net-protocol.txt nut-2.7.4.dev/docs/net-protocol.txt --- nut-2.7.4.orig/docs/net-protocol.txt 2016-03-08 16:48:26.000000000 +0100 +++ nut-2.7.4.dev/docs/net-protocol.txt 2016-06-19 16:32:53.000000000 +0200 @@ -44,6...
2006 May 16
1
Using upssched under Solaris
Hi, I'm attempting to use the UPS network tools. I'm sure I got the configurations worked out as I get notified when the ups goes on battery and back online. I am having problems with upssched. I have the following in my upssched.conf: CMDSCRIPT /usr/local/ups/sbin/upssched-cmd AT ONBATT * EXECUTE onbatt The problem I have is that is seems like the script in CMDSCRIPT never gets executed. If I replace the script with an executable, the executable never gets executed. While looking in the prstat window, I see the program upssched get exec...
2016 Jul 13
2
Best practice to shutdown hosts which has not NUT via upssched
...weeks. Now I know exactly only that NUTed hosts shutdown via > NUT as expected and no one host listed in shutdown-all-hosts.sh script > don't. > Roger, I would appreciate if you give me a hint how to "reproduce the > NUT protocol ... ". Do you mean getting feedback to CMDSCRIPT about the > "no NUTed" slaves indeed shutting down and/or some timing in NUT config > files...? Without knowing the details of your system architecture, it looks as if your system is very different from the typical case for which NUT is intended. I'm assuming that your wit...
2008 Sep 17
0
FW: Setup of upssched on opensuse 11 - examined pipefn ad lockfm
...e or put them else where. Also how to you make the .pipe and .lock file or does it get generated automatically? Second you here is my upssched.conf as requested: # Network UPS Tools - upssched.conf sample file # # ============================================================================ # # CMDSCRIPT <scriptname> # # This script gets called to invoke commands for timers that trigger. # It is given a single argument - the <timername> in your # AT ... START-TIMER defines. # # *** This must be defined *before* the first AT line. Otherwise the # program will complain and exit wit...
2014 Oct 14
1
upssched not execute triggers - Fedora 20 and nut 2.7.2
...ups.beeper.status: enabled ups.delay.shutdown: 30 ups.delay.start: 180 ups.load: 7 ups.productid: 5161 ups.status: OL ups.temperature: 25.0 ups.type: offline / line interactive ups.vendorid: 0665 perfectly worked all notification from *NOTIFYCOM **/etc/ups/script.sh* but i have big problem with *CMDSCRIPT* *upsmon.conf* *RUN_AS_USER ups* *MONITOR powermust at localhost 1 admin admin master* *MINSUPPLIES 1* *SHUTDOWNCMD "/sbin/shutdown -h now"* *POLLFREQ 5* *POLLFREQALERT 5* *HOSTSYNC 15* *DEADTIME 15* *POWERDOWNFLAG /etc/killpower* *RBWARNTIME 43200* *#NOCOMMWARNTIME 300* *FINALDELAY 5*...
2016 Jul 13
0
Best practice to shutdown hosts which has not NUT via upssched
...e ability to connect and check log files in a few day or weeks. Now I know exactly only that NUTed hosts shutdown via NUT as expected and no one host listed in shutdown-all-hosts.sh script don't. > >> ?? Also I read somewhere that it is not a good idea to shutdown other hosts from the CMDSCRIPT. > >The User Manual chapter 7.2: > ><< It?s not a good idea to call your system?s shutdown routine directly >from the CMDSCRIPT, since there?s no synchronization with the slave >systems hooked to the same UPS. FSD is the master?s way of saying "we?re >shutting dow...
2016 Jul 12
3
Best practice to shutdown hosts which has not NUT via upssched
...t halt -p ... done # Windows hosts ssh shut at com "shutdown -s -t 0" ?? shutdown-all-hosts.sh works fine if it runned manually. ?? But it does not work even if I insert sleep 30 sec before upsmon -c fsd ?? Also I read somewhere that it is not a good idea to shutdown other hosts from the CMDSCRIPT. ?? Does anyone know how to shutdown hosts without NUT from a host with NUT? Thanks in advance Dmitri Stepanov -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20160712/047e9007/attachment.html>
2013 Jan 04
2
UPSSCHED and FreeBSD 8.3?
...IFYCMD /usr/local/sbin/upssched NOTIFYFLAG ONLINE SYSLOG NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC NOTIFYFLAG LOWBATT SYSLOG+WALL+EXEC I want to send an email to my cellphone only for significant UPS events that involve starting the generator and want to ignore short duration events. My upssched.conf: CMDSCRIPT /usr/local/bin/upssched-cmd PIPEFN /var/db/nut/upssched/upssched.pipe LOCKFN /var/db/nut/upssched/upssched.lock AT ONBATT * START-TIMER upsbatt 30 AT ONLINE * CANCEL-TIMER upsbatt AT LOWBATT * EXECUTE ups-low-batt My CMDSCRIPT /usr/local/bin/upssched-cmd: #!/bin/sh case $1 in upsbatt)...
2016 Jul 14
0
Best practice to shutdown hosts which has not NUT via upssched
...xactly only that NUTed hosts shutdown via >> NUT as expected and no one host listed in shutdown-all-hosts.sh script >> don't. > >> Roger, I would appreciate if you give me a hint how to "reproduce the >> NUT protocol ... ". Do you mean getting feedback to CMDSCRIPT about the >> "no NUTed" slaves indeed shutting down and/or some timing in NUT config >> files...? > >Without knowing the details of your system architecture, it looks as if >your system is very different from the typical case for which NUT is >intended. I'...
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
...YCMD <command> NOTIFYCMD /usr/local/ups/bin/notifyme # POWERDOWNFLAG - Flag file for forcing UPS shutdown on the master system POWERDOWNFLAG /etc/killpower # This file is supposed to be created by NUT when a disconnection occurs, but I didn't see it. Am I right? *upssched.conf:* # CMDSCRIPT <scriptname> CMDSCRIPT /usr/local/ups/bin/upssched-cmd # PIPEFN <filename> PIPEFN /var/run/upssched/upssched.pipe # LOCKFN <filename> LOCKFN /var/run/upssched/upssched.lock #The directory /var/run/upssched is world-writable so both files could be created, but it is actually empt...
2012 Sep 13
2
Early shutdowns and 2.6.5-1 package for Windows
...:\\NUT\\killpower" NOTIFYMSG COMMOK "Communications with UPS %s established" NOTIFYMSG COMMBAD "Communications with UPS %s lost" NOTIFYFLAG COMMOK SYSLOG+EXEC+WALL NOTIFYFLAG COMMBAD SYSLOG+EXEC+WALL RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 upssched.conf CMDSCRIPT "cmd.exe -C C:\\NUT\\1.cmd" PIPEFN "C:\\NUT\\pipefn.lock" LOCKFN "C:\\NUT\\lockfn.lock" AT COMMBAD upsa at 192.168.10.200 START-TIMER upslost 10 AT COMMOK upsa at 192.168.10.200 CANCEL-TIMER upslost 1.cmd echo %1 > 1.txt I have found some issues I would...
2012 Aug 27
1
nut setup on ubuntu 10.04
...ike.it/2011/03/28/how-to-install-nut-on-ubuntu-10-10-maverick-meerkat/ one issue i have is the upsmon.conf setting NOTIFYCMD /usr/local/ups/bin/notifyme in web searches it seems like this should be set to NOTIFYCMD /sbin/upssched but still not sure and this gets me into upssched.conf where is CMDSCRIPT sample script upssched-cmd? any help would be appreciated.
2008 Sep 16
2
Setup of upssched on opensuse 11
...post messages on the console. My issue lies in trying to get the upssched and upsmon to work correctly. Currently I have the exec flags denoted in the upsmon and ?NOTIFYCMD /usr/sbin/upssched? is specified as the NOTIFYCMD flag as well since this is where is could fin the file. In upssched I have ?CMDSCRIPT /usr/bin/upssched-cmd? for the script file. Finally upssched-cmd looks like the following. #! /bin/sh # # This script should be called by upssched via the CMDSCRIPT directive. # # Here is a quick example to show how to handle a bunch of possible # timer names with the help of the case structure....
2023 May 16
1
Synthesize low batt (LB) fron SNMP UPS which does not support this?
...ld e the best way forward here? * Try to patch the server to synthesize LB there? If so, any suggestion how to do this? * Try to patch upsmon.c's is_ups_critical method to also include extra criteria, e.g. remaining run time/battery charge? * Keep nut unpatched but use our own NOTIFYCMD or CMDSCRIPT to pull the values from the server and implement our logic there? * Another way, I've overlooked? Cheers and thanks a ton in advance for suggestions. Carsten [1] Message-ID: <f794644f-e3b8-3557-da63-bd19d88a7c03 at aei.mpg.de> from 2022-12-05 -- Dr. Carsten Aulbert, Max Planck Inst...
2005 Sep 20
2
upssched-cmd wrong call
Hi, i am running nut-2.0.0-5 on Fedora core 3. I have the following Problem: In my upssched.conf i have set the Following Parameter: CMDSCRIPT /usr/local/guzman/sbin/upssched-cmd ... AT COMMBAD * START-TIMER upsgone 10 AT COMMOK * CANCEL-TIMER upsgone ... Now if I pull the serial Plug, in my log i see the following error: Event: upsgone Execute command failure: /usr/local/guzman/sbin/upssched-cmd upsgone: No such file or directory The...
2017 Jun 10
1
Apple Mac slave
...te: > ... and also still open is the notification on the Mac. If notify-send is available on the Mac, then perhaps this will work: In upsmon.conf on the Mac you need NOTIFYCMD /usr/sbin/upssched (or wherever this goes on a Mac) NOTIFYFLAG ONBATT SYSLOG+EXEC In upssched.conf you need CMDSCRIPT /usr/sbin/upssched-cmd (or wherever this goes on a Mac) AT ONBATT UPS at NAS EXECUTE on-battery In upssched-cmd you need case $1 in (on-battery) MSG="Power failure. Save your work!" notify-send -a nut -u critical -t 600000 $MSG ;; (*) logger -i -t upssched-cm...
2017 Jul 03
3
Help with Elite 800VA usb UPS
> > > > MONITOR dummy at artu 1 user pass master >> SHUTDOWNCMD "/sbin/shutdown -h +0" >> NOTIFYCMD /usr/local/bin/upssched-script >> > > Hi, As far as I can see, what you are getting in syslog corresponds > correctly to what you have specified. You have specified that upsmon is to > call upssched-script _directly_. This means that the argument
2020 Aug 09
3
Synology NAS is shutting down Ubuntu servers after very brief power outage (fwd)
...er NOTIFYFLAG ONLINE EXEC NOTIFYFLAG ONBATT EXEC NOTIFYFLAG LOWBATT EXEC NOTIFYFLAG NOCOMM EXEC NOTIFYFLAG COMMBAD IGNORE NOTIFYFLAG COMMOK IGNORE NOTIFYFLAG SHUTDOWN IGNORE NOTIFYFLAG FSD EXEC NOTIFYFLAG NOPARENT SYSLOG RBWARNTIME 43200 NOCOMMWARNTIME 300 FINALDELAY 5 upssched.conf (on Synology): CMDSCRIPT /usr/syno/bin/synoups PIPEFN /var/run/upssched.pipe LOCKFN /var/run/upssched.lock AT ONLINE * EXECUTE online AT ONLINE * CANCEL-TIMER fsd AT LOWBATT * EXECUTE lowbatt AT NOCOMM * EXECUTE nocomm AT FSD * EXECUTE fsd AT ONBATT * EXECUTE onbatt upssched-cmd (on Synology): I don’t see this file.  Here...
2019 Jul 14
4
New improved version of nut-report script
Roger, I get 4.3.8(1)-release There was good reason, BTW, for the script to NOT fine the journal script on my machine. I had not downloaded it yet. On 7/14/2019 9:06 AM, Roger Price wrote: > On Sun, 14 Jul 2019, David White wrote: > >> ... I saw nothing that looked like a problem with the report save the >> sections <scriptname> "Cannot access <scriptname>.