1
.TH DUMMYCONS 8 "Mon Jul 14 2003" "" "Network UPS Tools (NUT)"
3
dummycons \- Driver for testing UPS software
6
.B dummycons [\fIport\fB]
9
This program looks like a standard UPS driver to \fBupsd\fR(8) and
10
allows you to set any value for testing purposes. It is interactive,
11
and does not enter the background.
14
With no arguments, dummycons will assume a port name of "null".
15
Otherwise, it will use the first argument that you supply as the port
16
name. This port name must match the one given in \fBups.conf\fR(5).
18
You can run multiple instances if needed, as long as they all have
22
By default, you get 5 variables preloaded with information when the
23
program starts. They are:
25
driver.name = dummycons
27
driver.version = (varies)
29
ups.mfr = Console testing
35
To create more variables or change the existing values, use the (s)et
36
command. These variables may be deleted with the (d)elete command. The
37
(l)ist command will show everything that you have created.
39
Variables can contain spaces if you remember to quote them just like
40
in the config files. That is, if you want to register both on battery and
41
low battery, you need to do something like this:
43
Command (? for help): s ups.status "OB LB"
45
Other commands are available, and follow this general pattern. Use ? in
46
the program to see the full list.
50
This driver was written in a bar one afternoon when I realized that I
51
had neither Xdialog to run \fBdummyups\fR(8) (since removed from the
52
tree) nor an actual UPS on hand. It has also been used to debug things
53
like \fBupsmon\fR(8) in places where you could never have a UPS - like
54
on a commercial airliner.
58
Instant commands and SET commands don't do anything useful. You will
59
get a notice on the screen when it is received from upsd, but nothing
62
This will need to change in the future when the infrastructure for
63
confirming these actions has been added.
69
.SS Internet resources:
70
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/