APC SU1400XLT User Manual Page 33

  • Download
  • Add to my manuals
  • Print
  • Page
    / 115
  • Table of contents
  • BOOKMARKS
  • Rated. / 5. Based on customer reviews
Page view 32
computer will be immediately shutdown. This is an unfortunate consequence of the dumb signaling mode.
To avoid this, first replace /etc/apcupsd/apccontrol with safe.apccontrol found in the examples directory,
then test until everything works correctly. Once you have the correct cable, be sure to remember to
reinstall the correct apccontrol file and test that your computer is correctly shutdown during a power
failure.
## apcupsd.conf v1.1 ##
UPSCABLE (number of cable you have)
UPSTYPE dumb
DEVICE /dev/ttyS0
LOCKFILE /var/lock
UPSCLASS standalone
UPSMODE disable
If your cable does not have low battery detection, as is the case with some older models, you will also
need to define TIMEOUT nnn where you set nn to be the number of seconds on a power failure after
which a shutdown is effected.
Normally you would have many more configuration directives to completely customize your installation,
but this example shows you the minimum required.
NIS Server/Client Configuration Using the Net Driver
NIS (Network Information Server) mode allows for communication between instances of apcupsd running
on different hosts. Only one of those hosts, the server, needs to talk to the UPS directly. The others,
clients, obtain information about the state of the UPS by querying the server. NIS is not related to Sun's
NIS/YP services.
NIS clients and servers require that apcupsd be compiled with the Net Driver --enable-net. This is
typically enabled by default.
The NIS server is connected to the UPS and should be configured exactly as a standalone configuration,
but with NETSERVER on. In all other respects, the server should be configured in standalone mode. You
may also set the NIS server specific options NISIP to restrict which IP address of the server which
apcupsd listens on. The default, 0.0.0.0, means to list on all of the server host's IP addresses; NISPORT
(default 3551) to set which TCP port the server listens on; and EVENTSFILE and EVENTSFILEMAX to
provide information about the last few events to clients. You may also need to modify your firewall rules on
the server's host to allow traffic to the NISPORT.
For the NIS client computer, you will have a configuration that looks something like what follows. What is
important is that you get the information from an UPSCABLE ether with UPSTYPE net over the
network and you must specify the address of a NIS server using DEVICE. The client apcupsd will then poll
the NIS server specified in DEVICE every POLLTIME seconds (formerly NETTIME).
## apcupsd.conf v1.1 ##
UPSCABLE ether
UPSTYPE net
LOCKFILE /var/lock
DEVICE server-network-address:3551
UPSCLASS standalone
UPSMODE disable
POLLTIME 10
The DEVICE is set to server-address:port, where server-address is the fully qualified domain
name or IP address of the apcupsd NIS server, and port is the NISPORT that the server is listening on.
The default is 3551, but older versions of apcupsd used port 7000.
If you set POLLTIME too large, your client may not see the change in state of the NIS server before the
server has shutdown. Normally, you have at least 30 seconds of grace time between the time the NIS
Page view 32
1 2 ... 28 29 30 31 32 33 34 35 36 37 38 ... 114 115

Comments to this Manuals

No comments