NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.
Forum Discussion
dbott67
Mar 03, 2008Guide
Using the ReadyNAS to create a Network UPS for PCs
The ReadyNAS can issue "UPS commands" to other devices, effectively allowing your UPS to be networked and shutdown client PCs. I've got my UPS connected to the NAS and setup using the procedure below...
cruisingdog
Mar 14, 2012Aspirant
So I wanted to add that I've managed to get 2 readyNas units to automatically power down as well as my Windows7 PC. Here's what I did:
Firstly my system is configured thus:
ReadyNas Duo: 192.168.1.8
ReadyNAS Ultra 2: 192.168.1.11 <- UPS is plugged into this NAS via USB.
1) Intalled WinNut 2.0.4 on my PC and did exactly as the forum members here suggested (however I chose to run it as a service [there's a checkbox in the config tool]):
I added the MONITOR line's:
MONITOR UPS@192.168.1.11 1 pcuser mypassword slave
Added NOTIFYMSG stuff:
NOTIFYMSG ONLINE "UPS %s is getting line power"
NOTIFYMSG ONBATT "Someone pulled the plug on %s"
NOTIFYMSG LOWBATT "UPS has a low battery"
NOTIFYMSG SHUTDOWN "The system is being shutdown"
Added NOTIFYFLAG stuff:
NOTIFYFLAG ONLINE EXEC
NOTIFYFLAG ONBATT EXEC
NOTIFYFLAG LOWBATT EXEC
NOTIFYFLAG SHUTDOWN EXEC
2) I then edited the scripts on my ReadyNas Duo.
/etc/nut/ups.conf
[UPS]
driver = hidups
port = /dev/usb/hiddev0
/etc/nut/upsd.users
[monuser]
password = pass
allowfrom = localhost
upsmon master
/etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT monitor localhost
ACCEPT monitor mynetwork
REJECT all all
3) I then edited the scripts on my ReadyNas Ultra2 (This is the NAS that has my UPS plugged into the USB port)
/etc/nut/ups.conf
[UPS]
driver = hidups
port = /dev/usb/hiddev0
/etc/nut/upsd.users
[monuser]
password = pass
allowfrom = localhost
upsmon master
[pcuser]
password = mypassword
allowfrom = mynetwork
upsmon slave
/etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL mynetwork 192.168.1.0/24
ACCEPT monitor localhost mynetwork
ACCEPT monitor mynetwork
REJECT all all
--------------------
The information mynetwork should be replaced with your workgroup name and the password being your domain password. I'm not sure if I've got all the scripts correct. However it all works really well. Power down the AC outlet and my PC shuts itself down and then the NAS's shut down too when the UPS power goes into fail mode. I've set it to 40% threshold in the frontview web portal (as the snapshot shows at the beginning of this forum). BTW thanks for all the other's postings. Very useful stuff.
Firstly my system is configured thus:
ReadyNas Duo: 192.168.1.8
ReadyNAS Ultra 2: 192.168.1.11 <- UPS is plugged into this NAS via USB.
1) Intalled WinNut 2.0.4 on my PC and did exactly as the forum members here suggested (however I chose to run it as a service [there's a checkbox in the config tool]):
I added the MONITOR line's:
MONITOR UPS@192.168.1.11 1 pcuser mypassword slave
Added NOTIFYMSG stuff:
NOTIFYMSG ONLINE "UPS %s is getting line power"
NOTIFYMSG ONBATT "Someone pulled the plug on %s"
NOTIFYMSG LOWBATT "UPS has a low battery"
NOTIFYMSG SHUTDOWN "The system is being shutdown"
Added NOTIFYFLAG stuff:
NOTIFYFLAG ONLINE EXEC
NOTIFYFLAG ONBATT EXEC
NOTIFYFLAG LOWBATT EXEC
NOTIFYFLAG SHUTDOWN EXEC
2) I then edited the scripts on my ReadyNas Duo.
/etc/nut/ups.conf
[UPS]
driver = hidups
port = /dev/usb/hiddev0
/etc/nut/upsd.users
[monuser]
password = pass
allowfrom = localhost
upsmon master
/etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACCEPT monitor localhost
ACCEPT monitor mynetwork
REJECT all all
3) I then edited the scripts on my ReadyNas Ultra2 (This is the NAS that has my UPS plugged into the USB port)
/etc/nut/ups.conf
[UPS]
driver = hidups
port = /dev/usb/hiddev0
/etc/nut/upsd.users
[monuser]
password = pass
allowfrom = localhost
upsmon master
[pcuser]
password = mypassword
allowfrom = mynetwork
upsmon slave
/etc/nut/upsd.conf
ACL all 0.0.0.0/0
ACL localhost 127.0.0.1/32
ACL mynetwork 192.168.1.0/24
ACCEPT monitor localhost mynetwork
ACCEPT monitor mynetwork
REJECT all all
--------------------
The information mynetwork should be replaced with your workgroup name and the password being your domain password. I'm not sure if I've got all the scripts correct. However it all works really well. Power down the AC outlet and my PC shuts itself down and then the NAS's shut down too when the UPS power goes into fail mode. I've set it to 40% threshold in the frontview web portal (as the snapshot shows at the beginning of this forum). BTW thanks for all the other's postings. Very useful stuff.
Related Content
NETGEAR Academy

Boost your skills with the Netgear Academy - Get trained, certified and stay ahead with the latest Netgear technology!
Join Us!