.\" manual page [] for apcupsd .\" SH section heading .\" SS subsection heading .\" LP paragraph .\" IP indented paragraph .\" TP hanging label .TH apcupsd 8 "APCC UPS management under Linux and UNIX" .SH NAME apcupsd \- daemon for Most APCC's UPS support under Linux and UNIX .SH SYNOPSIS .B /sbin/apcupsd .br .B /sbin/powersc .br .B /etc/apcupsd.conf .br .B /sbin/apcaccess .SH DESCRIPTION .LP This daemon can be used for controlling the APC SmartUPS. During a power failure, "apcupsd" will inform the users about power status. If the power is restored before valid test return TRUE, "apcupsd" will inform users about this fact. If power is not restored, a system shutdown will follow when the battery is exausted, a timeout (seconds) expires, or runtime minutes based on internal values based on power consumption rates. The whole shutdown is now made by script calls to the "/sbin/powersc" file called by "apcupsd", so no changes in the inittab are necessary. There is now no communication between "apcupsd" and init(1) process. .LP The "apcupsd" daemon now supports the networking mode. In this mode, one machine is configured as a master, with UPS attached to the serial port. Other machines (max. 20) are configured as a slaves. Master has a network connection with slaves and send them information about UPS status. Both Master and Slaves open and close there sockets on a regular basis. If someone gets lost nobody gets to upset. .LP .B Hewlett Packard : HP PowerTrust 2997A UPS has been tested as a "smartups" with cable Hewlett Packard part number 5061-2575 as "CUSTOM-SMART". .LP Slackware, RedHat, S.u.S.E., Debian, and UNIFIX "FLAVORS" of Linux have direct install support. All other "FLAVORS" of Linux will need some fussing with to get the install correct. Please send me all new install methods that are not listed above or corrections to these for future versions before the final release. .SH CONFIGURATION It is necessary to write configuration info to the file "/etc/apcupsd.conf". This file is a plain ASCII file and you can use your favorite editor for configuration. For simple configuration, see enclosed sample file. .LP Configuration commands in .B /etc/apcupsd.conf are: .LP .B CONTROL -- .B /sbin/powersc .br Name of control script called by "apcupsd". .LP .B UPSCABLE -- .br [ simple | 940-0020B | 940-0023A (broken) ] .br [ smart | 940-0024B | 940-0024C | 940-0024G ] .br [ 940-0095A | 940-0095C ] .br [ ether ] .LP .B UPSTYPE -- .br [ backups | sharebasic ] : Simple .br [ netups ] : Network Simple Signals .br [ backupspro | smartvsups ] : Sub(barely)Smart .br [ newbackupspro | backupspropnp ] : Sub(very)Smart .br [ smartups | matrixups | sharesmart ] : Smart .LP [ backups | netups | backupspro | smartvsups ] and .br [ newbackupspro | smartups | matrixups ] are tested. .br [ sharebasic | sharesmart ] models are being tested. .LP .B UPSCLASS -- .br [ standalone | shareslave | sharemaster ] and .br [ netslave | netmaster ] are valid types. .br [ standalone | netslave | netmaster ] are tested classes. .br [ shareslave | sharemaster ] classes are being tested. .LP Default for all machines is "standalone". Change to "shareslave" if and only if you are using a ShareUPS and connected to a BASIC Port with Simple Signal. Change to "sharemaster", if and only if you are using a ShareUPS and connected to the ADVANCED Port Smart Signal control. Change to "netslave" if and only if you are not connected to an UPS other than for power. Change to "netmaster", if and only if you are on a TCP/UDP network and connected to an UPS of any kind with other Linux Boxes. .LP .B UPSMODE -- [ disable | share | net | sharenet ] are valid types. .br .LP [ disable | net ] are the only known and tested classes. .br [ share | sharenet ] classes is being tested. .LP BETA [ share ] For two or seven (2/7) additional simple signal ports on a SmartAccessories(tm) (internal/external box) for SmartUPSes. .LP .B DEVICE -- .br Please specify which device is used for UPS communication. The default is /dev/ttyS[0|1|2|3]. .LP .B LOCKFILE -- .br By supplying this argument, "apcupsd" tries to create a lockfile in the specified directory. .LP .B ACCESS -- [ true | false ] .br This enables the use of "apcaccess" interface, on all machines, but for accessing or changing configurations of a running "apcupsd". .LP .B ANNOY --