, This directory contains the following files:  E   TCONTROL.EXE  Alpha executable for tcontrol, a command line program H                 which can be used to control a terminal line attached to                 a UPS *   TCONTROL.C    source code for tcontrol, H   UPS_INFO.TXT  Information on Tripplite UPS lan 2.1 and lan 2.2 control=                 signals.  Others may be added at future time. E   UPS_MONITOR.COM  A procedure designed to be run detached which uses H                 TCONTROL to monitor a UPS attached to a terminal line.  N                 It will shut down the system after N minutes if a powerfail isY                 detected.  If the power comes back before then, the shutdown is canceled. >                 Edit it to fit your system.  Start it up like:+                 $ run sys$system:loginout - *                    /detach /uic=[SYSTEM] -8                    /input= sys$manager:ups_monitor.com -@                    /output= sys$manager:powerfail_shutdown.log -                     /priority=6 -.                    /process_name="UPS_MONITOR"     TCONTROL usage:   " First configure the terminal with:  ) $ set term/perm/nobroadcast/nomodem tta0:    Then to use TCONTROL  " $ tcontrol :== $disk:[dir]tcontrol1 $ tcontrol device bitset waithigh waitlow maxwait 3    device:   tta0: or other serial device (not LAT) A    bitset:   bits to set high from {DTR,RTS,SecTX}, others go low G    waithigh: wait until these bits go high, from {CTS,DSR,CARRIER,RING} F    waitlow:  wait until these bits go low, from {CTS,DSR,CARRIER,RING}5       if more than one in a list separate with spaces 5    maxwait   wait this many seconds before timing out   O    The symbol TCONTROL_HIGH is set on exit, contains the names of the high bits     or TIMED_OUT   G TCONTROL always sets all three of these {DTR,RTS,SecTX}.  For use with  G Tripplite Omnismart UPS's you want to set DTR high, RTS low, and SecTX  I doesn't matter (no pin.)   If RTS goes high it sends the UPS a signal to  I shut down the inverter which will be ignored if line power is present but I accepted if the UPS is running on batteries.  WATCH OUT FOR THIS!  It may H not be possible to boot a DS10 and many other systems attached to one ofJ these UPS boxes if it is running on batteries.  During boot the serial bitC values jump all over the place (determined by watching them with an H external modem) and if RTS ever goes high it instantly kills the UPS andH the DS10 along with it.  Don't write any data bytes through the terminalF as TxD must stay low and the only way to accomplish that is to not use the data line.    F Use at your own risk, caveat emptor, we assume no responsibility, etc.   10-NOV-1999  David Mathog? Manager, sequence analysis facility, biology division, Caltech   mathog@caltech.edu