APC SU1400XLT User Manual Page 71

  • Download
  • Add to my manuals
  • Print
  • Page
    / 115
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 70
Regardless of which Windows system you are running, apcupsd logs most error messages to
c:\apcupsd\etc\apcupsd\apcupsd.events. This type error messages such as configuration file not
found, etc are written to this file. Note that on some systems (WinXP, possibly others) Apcupsd is unable
to write to this file when running as a service.
Email Notification of Events
It is possible to receive email notification of apcupsd events using some simple Visual Basic scripts
contributed by Ed Dondlinger <[email protected]>. The scripts are automatically installed in
the etc/apcupsd directory of your apcupsd installation but are disabled by default. To enable them, first
open them in a text editor such as Notepad and edit the USER VARIABLES section to set your email
preferences including address, server information, etc. Then rename the script files without the
*.example suffix. Scripts are supplied for onbattery, offbattery, and commfailure events. You can copy
the scripts to other filenames and modify the email body text to respond to other events as described in
Customizing Event Handling.
Killpower under Windows
If your batteries become exhausted during a power failure and you want your machine to automatically
reboot when the power comes back, it is useful to implement the killpower feature of the UPS where
apcupsd sends the UPS the command to shut off the power. In doing so, the power will be cut to your PC
and if your BIOS is properly setup, the machine will automatically reboot when the power comes back.
This is important for servers.
This feature is implemented on Unix systems by first requesting a system shutdown. As a part of the
shutdown, apcupsd is terminated by the system, but the shutdown process executes a script where
apcupsd is recalled after the disks are synced and the machine is idle. Apcupsd then requests the UPS to
shut off the power (killpower).
Unfortunately on Windows, there is no such shutdown script that we are aware of and no way for apcupsd
to get control after the machine is idled. If this feature is important to you, it is possible to do it by telling
apcupsd to immediately issue the killpower command after issuing the shutdown request. The danger in
doing so is that if the machine is not sufficiently idled when the killpower takes place, the disks will need to
be rescanned (and there is a possibility of lost data however small). Generally, UPSes have a shutdown
grace period which gives sufficient time for the OS to shutdown before the power is cut.
To implement this feature, you need to add the -p option to the apcupsd command line that is executed
by the system. Currently the procedure is manual. You do so by editing the registry and changing the line:
c:\apcupsd\apcupsd.exe /service
found under the key:
HKEY_LOCAL_MACHINE Software\Microsoft\Windows\CurrentVersion\RunServices
to
c:\apcupsd\apcupsd.exe /service -p
If you have a Smart UPS, you can configure the kill power grace period, and you might want to set it to 3
minutes. If you have a dumb UPS, there is no grace period and you should not use this procedure. If you
have a Back-UPS CS or ES, these UPSes generally have a fixed grace period of 2 minutes, which is
probably sufficient.
Power Down During Shutdown
Our philosophy is to shutdown a computer but not to power it down itself (as opposed to having the UPS
cut the power as described above). That is we prefer to idle a computer but leave it running. This has the
Page view 70
1 2 ... 66 67 68 69 70 71 72 73 74 75 76 ... 114 115

Comments to this Manuals

No comments