1
.TH UPSRW 8 "Sat May 10 2003" "" "Network UPS Tools (NUT)"
3
upsrw \- UPS variable administration tool
9
.B upsrw -s \fIvariable\fB [-u \fIusername\fB] [-p \fIpassword\fB]
15
allows you to view and change the read/write variables inside your UPS.
16
It sends commands via the server \fBupsd\fR(8) to your driver, which
17
configures the hardware for you.
19
The list of variables that allow you to change their values is based on
20
the capabilities of your UPS equipment. Not all models support this
21
feature. Typically, cheaper hardware does not support any of them.
22
Run upsrw with a UPS identifier to see what will work for you.
27
Display the help message.
29
.IP "-s \fIvariable\fR"
30
Specify the variable to be changed inside the UPS. For unattended
31
mode such as in shell scripts, use the format VAR=VALUE to specify both
32
the variable and the value, for example:
34
-s input.transfer.high=129
36
Without this argument, upsrw will just display the list of the variables
37
and their possible values.
39
Some variables are strings, and can be set to any value within the
40
length limit. Others are enumerated types and can only be set to one of
41
those values. Refer to the list to know what's available in your
44
.IP "-u \fIusername\fR"
45
Set the username for the connection to the server. This is optional,
46
and you will be prompted for this when using the -s option if you don't
47
specify -u on the command line.
49
.IP "-p \fIpassword\fR"
50
Set the password to authenticate to the server. This is also optional
51
like -u, and you will be prompted for it if necessary.
54
View or change the settings on this UPS. The format for this option is
55
upsname@hostname[:port].
59
If you run this program inside a shell script or similar to set
60
variables, you will need to specify all of the information on the
61
command line. This means using -s VAR=VALUE, -u and -p. Otherwise it
62
will put up a prompt and your program will hang.
64
This is not necessary when displaying the list, as the username and
65
password are not required for read-only mode.
69
upsrw can't set variables on your UPS unless you provide a valid
70
username and password. If you get "access denied" errors, make sure
71
that your \fBupsd.users\fR(5) has an entry for you, and that the
72
username you are using has permissions to SET variables.
76
This program used to be called upsct2, which was ambiguous and
80
\fBupsd\fR(8), \fBupscmd\fR(8)
82
.SS Internet resources:
83
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/