.TH NUTUPSDRV 8 "Sat Dec  7 2002" "" "Network UPS Tools (NUT)" 
.SH NAME  
nutupsdrv \- generic manual for unified NUT drivers
.SH SYNOPSIS
.B nutupsdrv -h
.br
.B nutupsdrv
.BI "[\-a " id ] 
.BI "[\-d " num ]
.B "[\-x " 
.I "var\fR=\fIval\fB]"
.BI "\-k " device
.br
.B nutupsdrv
.BI "[\-a " id ] 
.B "[\-x " 
.I "var\fR=\fIval\fB]"
device

.SH DESCRIPTION
.B nutupsdrv
is not actually a driver.  This is a combined man page for the shared code
that is the core of many drivers within the Network UPS Tools package.

For information on the specific drivers, see their individual man pages.

In general, all UPS drivers provide a communication channel between
the UPS attached on
.I device
and the upsd daemon. The driver's task is to pass to the upsd process 
information about the UPS state and parameters.  

The core has two modes of operation which are determined by the
command line switches.  In the normal mode, the driver will periodically
poll the UPS for its state and parameters.  The results of this command
is presented to upsd.  The driver will also handle setting variables and
instant commands if available.

The driver can also instruct the UPS to shut down the load, possibly
after some delay.  This mode of operation is intended for cases when it is
known that the UPS is running out of battery power and the systems
attached must be turned off to ensure a proper reboot when power returns.

.SH NOTE
You probably don't want to use any of these options directly.  You
should use \fBupsdrvctl\fR(8) to control your drivers, and
\fBups.conf\fR(5) to configure them.  The rest of this manual describes
options and parameters that generally are not needed by normal users.

.SH OPTIONS
.IP -h
display an help message without doing anything else.  This will also list
possible values for \fB-x\fR in that driver, and other help text that the
driver's author may have provided.
.IP "-a \fIid"
autoconfigure this driver using the \fIid\fR section of \fBups.conf\fR(5).

.IP "-d \fInum"
wait additional 
.IR num
seconds after receiving the shutdown command in shutdown mode before
turning off power to the load.  Also configurable via "sddelay" in
\fBups.conf\fR(5).
.IP -k
("kill" power) Force shutdown mode.  The UPS will power off the
attached load if possible.

You should use \fBupsdrvctl shutdown\fR whenever possible instead of
calling this directly.
.IP "-x \fIvar\fR=\fIval\fR"
define a variable called \fIvar\fR with the value of \fIvar\fR in the
driver.  This varies from driver to driver - see the specific man pages
for more information.  

This is like setting \fIvar\fR=\fIval\fR in the \fBups.conf\fR(5), but
-x overrides any settings from that file.
.IP device
The /dev entry corresponding to the TTY the UPS is connected to.  This
is optional if you are using the \fB-a\fR autoconfiguration option,
since the "port" entry in the \fBups.conf\fR(5) will be used when available.

.SH DIAGNOSTICS
Information about the startup process is printed to stdout.  Additional
messages after that point are available in the syslog.  The ups clients
such as \fBupsc\fR(8) can be used to query the status of a UPS.

.SH PROGRAM CONTROL
You should always use \fBupsdrvctl\fR(8) to control the drivers.  While
drivers can be started by hand for testing purposes, it is not
recommended for production use.

.SH FILES
.IP \fBups.conf\fR(5)
Required configuration file.  This contains all details on which drivers
to start and where the hardware is attached.

.SH BUGS
Some of the drivers may have bugs.  See their manuals for more
information.

.SH SEE ALSO

.SS Server:
\fBupsd\fR(8)

.SS Clients:
\fBupsc\fR(8), \fBupscmd\fR(8),
\fBupsrw\fR(8), \fBupslog\fR(8), \fBupsmon\fR(8)

.SS CGI programs:
\fBupsset.cgi\fR(8), \fBupsstats.cgi\fR(8), \fBupsimage.cgi\fR(8)

.SS Drivers:
\fBapcsmart\fR(8), \fBbcmxcp\fR(8), \fBbelkin\fR(8), 
\fBbestferrups801-807\fR(8), \fBbestfortress\fR(8),  
\fBbestuferrups\fR(8), \fBbestups\fR(8), \fBcyberpower\fR(8), 
\fBdummycons\fR(8), \fBdummyups\fR(8), \fBetapro\fR(8),  
\fBeverups\fR(8), \fBfentonups\fR(8), \fBgenericups\fR(8),
\fBhidups\fR(8), \fBhp\fR(8), \fBisbmex\fR(8), \fBliebert\fR(8),
\fBmasterguard\fR(8), \fBmge-ellipse\fR(8), \fBmge-utalk\fR(8),
\fBmicrodowell\fR(8), \fBnewapc\fR(8), \fBoneac\fR(8),  
\fBpowercom\fR(8), \fBpowernet\fR(8), \fBsec\fR(8), \fBsms\fR(8), 
\fBsnmp-ups\fR(8), \fBtripplite\fR(8), \fBvictronups\fR(8)

.SS Internet resources:
The NUT (Network UPS Tools) home page: http://www.exploits.org/nut/

NUT mailing list archives and information: http://lists.exploits.org/