Displaying 20 results from an estimated 76 matches for "pipefn".
Did you mean:
pipefd
2008 Sep 17
0
FW: Setup of upssched on opensuse 11 - examined pipefn ad lockfm
...:
> Citeren tarbeite <tarbeite at fit.edu>:
>
>> Running opensuse 11 with two ups that can be seen via web interface and post
>> messages on the console.
>
> Please post the contents of /etc/ups/upssched.conf here. Also make
> sure that the directory mentioned in PIPEFN and LOCKFN exists and is
> writeable by the user running upssched (typically 'upsd' on openSUSE).
>
> Best regards, Arjen
Arjen;
Thanks for the pointers. I looked at the lockfn and pipefn location as shown
in the upssched.conf file. Mine both point to
/var/lib/ups/upssched/upssc...
2012 Sep 13
2
Early shutdowns and 2.6.5-1 package for Windows
...ommunications 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 like to report.
1. NOTIFYCMD parameter is...
2006 Nov 21
1
MGE Nova 1100 AVR + upssched
...G - 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 empty.
# Possible AT commands
AT ONBATT * START-TIMER upsgone 30
Then, I...
2012 Jan 04
3
NUT Windows port questions
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/nut-upsuser/attachments/20120104/34be491b/attachment.html>
2007 Jun 27
1
Using MGE UPS's with NUT and openSUSE
...s to download
the mgeups-psp rpm and install it with the command
rpm --nopost -Uvh mgeups-psp-3.0.2-1.i586.rpm
2. The installation of nut and mgeups-psp sets up a default configuration
which needs further tuning to run correctly. As root, in file
/etc/ups/upssched.conf replace
PIPEFN /var/state/ups/upssched.pipe
LOCKFN /var/state/ups/upssched.lock
with
PIPEFN /var/run/ups/upssched.pipe
LOCKFN /var/run/ups/upssched.lock
and create directory /var/run/ups
3. The MGE front-end to NUT will place yet another power plug in the
system tray, which when clicked pr...
2020 Jan 26
1
Timer doesn't appear to start
...OK)
95.164502 Communications with UPS deltec-PRA1500 at localhost established
160.214327 ups_on_line: deltec-PRA1500 at localhost (first time)
160.214426 do_notify: ntype 0x0000 (ONLINE)
160.214537 UPS deltec-PRA1500 at localhost on line power
I've checked to make sure PIPEFN LOCKFIN directory can be written to by my
nut user. I never see a pid file created after the power is pulled
however.
here is my upssched.conf
CMDSCRIPT /bin/upssched-cmd
PIPEFN /home/nutmon/upssched/upssched.pipe
LOCKFN /home/nutmon/upssched/upssched.lock
AT COMMBAD deltec-PRA1500 at localho...
2006 May 09
4
upssched does not start the script when timer triggers
...t when the scripts si called, it says it
doesn't exist. It worked before without any problem. the path is ok. The
command is ok.
her is my upssched.conf
> # the script to be executed
> CMDSCRIPT /root/scripts/upsalert
>
> # mandatory fields that must be set before AT commands
> PIPEFN /var/run/upssched/upssched.pipe
> LOCKFN /var/run/upssched/upssched.lock
>
> # the timers, here 30 sec after the ONBATT (ups on battery) event
> AT ONBATT * START-TIMER phone_alert 15
> AT ONBATT * START-TIMER onbatt 900
>
> # cancel the countdown if power is back
> AT ONLIN...
2020 Mar 10
2
Fwd: Windows upssched does not work
...OG+EXEC
NOTIFYFLAG COMMBAD SYSLOG+EXEC
NOTIFYFLAG SHUTDOWN SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYFLAG NOCOMM SYSLOG+EXEC
NOTIFYFLAG NOPARENT SYSLOG+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
--- upssched.conf
CMDSCRIPT "cmd.exe /C C:\\NUT\\sched.cmd"
PIPEFN "C:\\NUT\\upssched.pipe"
LOCKFN "C:\\NUT\\upssched.lock"
AT ONBATT * EXECUTE onbattnow
AT ONBATT * START-TIMER onbattwarn 30
AT ONLINE * EXECUTE ups-back-on-line
AT ONLINE * CANCEL-TIMER onbattwarn
--- notify.cmd
@ECHO OFF
For /f "tokens=2-4 delims=/ " %%a in ('da...
2020 Jan 28
0
Timer doesn't appear to start
...alt /home/nutmon
> total 32
> -rw------- 1 nutmon nutmon 172 Jan 26 12:32 .bash_history
> drwxrwx--- 2 nutmon nutmon 4096 Jan 26 12:32 upssched
there is a d in the first position of the upssched permissions showing this
is a directory. This is the directory location for PIPEFN and LOCKFN as
defined in upssched-cmd
PIPEFN /home/nutmon/upssched/upssched.pipe
LOCKFN /home/nutmon/upssched/upssched.lock
You are correct there are no EXECs on the relevant NOTIFYFLAGs. When I get
home I'll add EXEC to the lines, test and update the thread.
On Tue, Jan 28, 2020 at 7:00 AM...
2012 Jun 25
1
upssched script doesn't start on event
...LOWBATT "UPS %s battery is critically low"
NOTIFYFLAG ONLINE SYSLOG+WALL+EXEC
NOTIFYFLAG ONBATT SYSLOG+WALL+EXEC
NOTIFYFLAG FSD SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 20
-------------
upssched.conf:
CMDSCRIPT /usr/local/bin/upssched-cmd
PIPEFN /var/run/nut/upssched/upssched.pipe
LOCKFN /var/run/nut/upssched/upssched.lock
AT ONBATT * EXECUTE onbatt
AT ONBATT * START-TIMER onbatt_timer 120
AT ONLINE * CANCEL-TIMER onbatt_timer
AT ONLINE * EXECUTE online
AT FSD * EXECUTE fsd
---------------
-rwxr-x--- 1 nut nut 665 ??? 25 01:01 /usr/local/b...
2007 Jun 24
1
upssched. Again.
.../etc/ups/ups.conf
[APC750]
driver = apcsmart
port = /dev/ttyS0
# cable = 1234
desc = "Smart-UPS 750"
/etc/ups/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT localhost
REJECT all
/etc/ups/upssched.conf
CMDSCRIPT /usr/sbin/upssched-cmd
PIPEFN /var/run/upssched/upssched.pipe
LOCKFN /var/run/upssched/upssched.lock
#AT ONBATT APC750 at localhost START-TIMER onbattwarn 60
AT ONBATT APC750 at localhost EXCUTE onbattwarn
#AT ONLINE APC750 at localhost CANCEL-TIMER onbattwarn
/usr/sbin/upssched-cmd
#!/bin/sh
echo "Booo" > /t...
2023 Jan 12
1
NUT & UPS, how to shut down client after 2 min on battery?
...NLINE SYSLOG+EXEC
NOTIFYFLAG ONBATT SYSLOG+EXEC
NOTIFYFLAG LOWBATT SYSLOG+EXEC
NOTIFYFLAG REPLBATT SYSLOG+EXEC
NOTIFYCMD /usr/sbin/upssched
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
And in /etc/nut/upssched.conf (changed from 2 min to 4 min)
CMDSCRIPT /etc/nut/upssched-execscript.sh
PIPEFN /etc/nut/upssched.pipe
LOCKFN /etc/nut/upssched.lock
AT ONBATT * START-TIMER shutdown_onbatt 240
AT ONBATT * EXECUTE info_onbatt
AT ONLINE * CANCEL-TIMER shutdown_onbatt
AT ONLINE * EXECUTE ups-back-on-power
AT LOWBATT * EXECUTE shutdown_lowbatt
AT REPLBATT * EXECUTE replace_batt
And in /et...
2013 Jan 04
2
UPSSCHED and FreeBSD 8.3?
...FLAG 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)
echo "The UPS ha...
2017 Jan 11
3
NUT Client shuts down when performing runtime calibration on APC UPS
...TIFYFLAG NOCOMM SYSLOG+WALL+EXEC
NOTIFYFLAG NOPARENT SYSLOG+WALL+EXEC
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
-----------------------------------------------------------------------------------------------------------
nas4free: etc# more upssched.conf
CMDSCRIPT /usr/local/bin/upssched-cmd
PIPEFN /var/run/upssched.pipe
LOCKFN /var/run/upssched.lock
AT COMMOK * EXECUTE notify
AT COMMBAD * EXECUTE notify
AT REPLBATT * EXECUTE notify
AT NOCOMM * EXECUTE notify
AT FSD * EXECUTE forced-shutdown
AT NOPARENT * EXECUTE notify
AT SHUTDOWN * EXECUTE notify
AT ONLINE * CANCEL-TIMER shutdown
AT ONLINE...
2012 Oct 09
1
network-ups-tools won't shutdown my PC
...smon.conf
MONITOR ellipse at localhost 1 ups ups master
MINSUPPLIES 1
FINALDELAY 5
HOSTSYNC 15
SHUTDOWNCMD "usr/bin/systemctl poweroff"
POWERDOWNFLAG /etc/killpower
POLLFREQ 5
POLLFREQALERT 5
DEADTIME 15
NOCOMMWARNTIME 300
RBWARNTIME 43200
upssched.conf :
CMDSCRIPT /opt/bin/upssched-cmd
PIPEFN /var/run/nut/upssched.pipe
LOCKFN /var/run/nut/upssched.lock
AT ONBATT * EXECUTE ups-on-battery
AT ONLINE * EXECUTE ups-back-on-line
When I unplug my UPS from power, I have a broadcast message saying so :
fine.
When I replug my UPS to power, I have a broadcast message saying so : fine
When I let...
2009 Feb 19
1
NUT 2.4.1 crashes on FreeBSD - additional info
...;> #5 0x0804c41d in pconf_file_next (ctx=0xbfbfe8f4) at parseconf.c:499
>> #6 0x0804a9e0 in checkconf () at upssched.c:874
>> #7 0x0804aaa9 in main () at upssched.c:924
>> (gdb)
>>
>> upssched.conf:
>>
>> CMDSCRIPT /usr/local/bin/upssched-cmd
>> PIPEFN /var/run/upssched.pipe
>> LOCKFN /var/run/upssched.lock
>>
>> AT COMMOK * EXECUTE notify
>> AT COMMBAD * EXECUTE notify
>> AT REPLBATT * EXECUTE notify
>> AT NOCOMM * EXECUTE notify
>> AT FSD * EXECUTE forced-shutdown
>> AT NOPARENT * EXECUTE notify
&...
2017 Mar 28
1
Is a timer a file?
...ding pointers to UPS unit names
would require a new C program. This would be a good programming exercise,
but no-one has asked for such a facility in NUT.
I suspect that only a small percentage of NUT users use upssched timers.
> At first sight, I would more see something injecting into the PIPEFN
> fifo, i.e. acting the same way upsmon would when calling upssched with
> the upsname and the triggering event.
> I think that this can be solved more easily with tools like socat or nc,
> sending the command directly to the pipe. For example, to cancel the
> timer "shutdow...
2019 Jun 08
2
How to shutdown macOS / mac OSX from Network UPS Tools client - NUT
...EXEC+SYSLOG
NOTIFYFLAG COMMBAD EXEC+SYSLOG
NOTIFYFLAG SHUTDOWN EXEC+SYSLOG+WALL
NOTIFYFLAG REPLBATT EXEC+SYSLOG+WALL
NOTIFYFLAG NOCOMM EXEC+SYSLOG+WALL
NOTIFYFLAG NOPARENT EXEC+SYSLOG+WALL
RBWARNTIME 43200
NOCOMMWARNTIME 300
FINALDELAY 5
etc/upssched.conf
CMDSCRIPT /opt/local/bin/upssched-cmd
PIPEFN /opt/local/var/db/ups/upssched/upssched.pipe
LOCKFN /opt/local/var/db/ups/upssched/upssched.lock
AT ONBATT ups at xxx.xxx.xxx.xxx EXECUTE on-battery
AT ONLINE ups at xxx.xxx.xxx.xxx EXECUTE ups-back-on-line
AT COMMBAD ups at xxx.xxx.xxx.xxx START-TIMER upsgone 75
AT COMMOK ups at xxx....
2015 Apr 27
3
upssched setup
...ed[2688]: New timer: onbatt (20 seconds)Apr 27 20:50:26 unifi upssched[2688]: Event: onbattApr 27 20:50:26 unifi upssched[2688]: exec_cmd(/sbin/upssched-cmd.sh onbatt) returned 126Apr 27 20:50:41 unifi upssched[2688]: Timer queue empty, exiting
/etc/nut/upssched.conf
CMDSCRIPT /sbin/upssched-cmd.shPIPEFN /etc/nut/upssched/upssched.pipeLOCKFN /etc/nut/upssched/upssched.lockAT ONBATT * START-TIMER onbatt 20AT ONLINE * CANCEL-TIMER onbatt
/sbin/upssched-cmd.sh
#!/bin/sh# Debugging: Log all calls to this scriptlogger -t upssched-cmd.sh Calling upssched-cmd.sh $1 case $1 in onbatt) /sbin/upsmon -c...
2017 Jul 03
2
Help with Elite 800VA usb UPS
...;;
*)
logger -t upssched-cmd "Unrecognized command: $1"
;;
esac
while upssched.conf is
# Network UPS Tools - upssched.conf sample file
#
#
============================================================================
CMDSCRIPT /usr/local/bin/upssched-script
PIPEFN /var/run/nut/upssched/upssched.pipe
LOCKFN /var/run/nut/upssched/upssched.lock
AT ONBATT * EXECUTE onbattwarn
AT ONLINE * EXECUTE ups-back-on-power
Running upson in debug mode I can see the change of the status (I have a
cycle of 30 secs for online/batterry/low battery) but the syslog reports
Ju...