This document is very limited in scope as it pertains only to SME Server 7 being used with the included NUT 2.0.5 UPS monitoring software in conjunction with a CyberPower CPS1500AVR UPS.
Reference
CyberPower CPS1500AVR
We use the CPS1500AVR UPS for almost all server installations, whether Linux or Windows is used. This UPS has proven trouble-free, effective and very cost-effective in a very wide range of applications. As shipped, it can be used in a rack mount (2U) or a tower (stand included) configuration.
NUT UPS Monitoring Software
Network UPS Tools is probably the best open-source UPS monitoring tool available for Linux. The software does not run on Windows, but the WinNUT tool allows you to control a Windows box that might be connected to the same UPS.
Configure SME Server and NUT
This may not be the only way to do this, but this way works. We will add info as we learn it.
Connect the serial cable that came with the UPS from the SME server to the UPS. This is a 9-pin female to a 9-pin male. Do not use any other cable.
At the SME console as root:
Update the NUT package to the latest:
yum update e-smith-nutUPS
Configure UPS monitoring:
config setprop nut Model genericups
config setprop nut Device /dev/ttyS0
config setprop nut Type 7
config setprop nut mfr CyberPower
config setprop nut mdl CPS1500AVR
config setprop nut status enabled
You can then view the settings like this:
config show nut
Apply the new settings like this (server will reboot):
signal-event post-upgrade; signal-event reboot
If you don't want to reboot the server, you can do this instead:
expand-template /etc/sysconfig/ups
expand-template /etc/ups/*
/etc/rc7.d/S38nut start
You can confirm the communication with this command:
upsc UPS@localhost
You can view log entries with one or more of these commands:
grep nut /var/log/messages
grep ups /var/log/messages
egrep 'nut|ups' /var/log/messages
Configure a Windows Slave
We often run Windows virtual machines on our beefy SME servers for those clients that can't live without some particular Windows functionality (MS Exchange, MS SQL Server, Terminal Services, etc.). Though VMware Server is supposed to shut down the VMs as part of the normal shutdown procedure, we have not found this feature to be perfect. So, we run WinNUT on the Windows VM in order to be certain of an orderly shutdown of the VM.
Download and install WinNUT on the Windows server as an administrator.
Use these commands at the SME server console to gather the needed configuration information:
cat /etc/ups/upsd.conf
cat /etc/ups/upsd.users
cat /etc/ups/ups.conf
On the Windows machine, click the Edit button to edit the upsmon.conf file. Enter a line similar to this a the top. You can just un-comment a MONITOR line and edit it:
MONITOR UPS@<sme servername or IP> 1 upsslave <password of upsslave> slave
Example:
MONITOR UPS@myserver 1 upsslave 123456789123456 slave
Save the changes and continue configuring WinNUT:
- Install as a Service
- Automatic Startup
- Apply and Start WinNUT
You can then click the View button to check the results.
| < Prev | Next > |
|---|





