NETGEAR is aware of a growing number of phone and online scams. To learn how to stay safe click here.

Forum Discussion

dbott67's avatar
dbott67
Guide
Mar 03, 2008

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.

Basically, you need to install WinNUT on your PC.

You also need to configure your ReadyNAS to communicate with the PC:

1. Connect the UPS to the NAS via USB.
2. Login to the web interface of your NAS.
3. Click SYSTEM --> POWER.
4. Scroll down to the UPS section.
5. Check the box that says "Enable network sharing of attached UPS"
6. Enter the IP address of the PC or the subnet (i.e. 192.168.1.0/24).



7. Edit the WinNUT configuration file (typically C:\Program Files\WinNUT\upsmon.conf). In my case, my ReadyNAS uses a static IP (192.168.1.2) and my computers use DHCP on the 192.168.1.0/24 subnet). I've edited out most author comments, just leaving the values I used:
# --------------------------------------------------------------------------
# MONITOR <system> <powervalue> <username> <password> ("master"|"slave")

MONITOR UPS@192.168.1.2 1 monuser pass slave

# --------------------------------------------------------------------------
# MINSUPPLIES <num>

MINSUPPLIES 1

# --------------------------------------------------------------------------
# NOTIFYCMD <command>

NOTIFYCMD "c:\\Program Files\\WinNUT\\alertPopup.exe"

# --------------------------------------------------------------------------
# POLLFREQ <n>

POLLFREQ 5

# --------------------------------------------------------------------------
# POLLFREQALERT <n>

POLLFREQALERT 5

# --------------------------------------------------------------------------
# HOSTSYNC - How long upsmon will wait before giving up on another upsmon

HOSTSYNC 15

# --------------------------------------------------------------------------
# DEADTIME - Interval to wait before declaring a stale ups "dead"

DEADTIME 15

# --------------------------------------------------------------------------
# NOTIFYMSG - change messages sent by upsmon when certain events occur

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"

# --------------------------------------------------------------------------
# NOTIFYFLAG - change behavior of upsmon when NOTIFY events occur

NOTIFYFLAG ONLINE EXEC
NOTIFYFLAG ONBATT EXEC
NOTIFYFLAG LOWBATT EXEC
NOTIFYFLAG SHUTDOWN EXEC

# --------------------------------------------------------------------------
# RBWARNTIME - replace battery warning time in seconds

RBWARNTIME 43200

# --------------------------------------------------------------------------
# NOCOMMWARNTIME - no communications warning time in seconds

NOCOMMWARNTIME 300

# --------------------------------------------------------------------------
# FINALDELAY - last sleep interval before shutting down the system

FINALDELAY 5


Here's a couple of screenshots from my PC when the UPS gets disconnected:






Read this thread for more information/background on networking a UPS device:

viewtopic.php?t=16348

-Dave

30 Replies

Replies have been turned off for this discussion

NETGEAR Academy

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

Join Us!

ProSupport for Business

Comprehensive support plans for maximum network uptime and business peace of mind.

 

Learn More