1UPSRW(8)                          NUT Manual                          UPSRW(8)
2
3
4

NAME

6       upsrw - UPS variable administration tool
7

SYNOPSIS

9       upsrw ups
10
11       upsrw -h
12
13       upsrw -s variable [-u username] [-p password] ups
14

DESCRIPTION

16       upsrw allows you to view and change the read/write variables inside
17       your UPS. It sends commands via the server upsd(8) to your driver,
18       which configures the hardware for you.
19
20       The list of variables that allow you to change their values is based on
21       the capabilities of your UPS equipment. Not all models support this
22       feature. Typically, cheaper hardware does not support any of them. Run
23       upsrw with a UPS identifier to see what will work for you.
24

OPTIONS

26       -h
27           Display the help message.
28
29       -s variable
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
32           both the variable and the value, for example:
33
34               -s input.transfer.high=129
35
36           Without this argument, upsrw will just display the list of the
37           variables and their possible values.
38
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
41           one of those values. Refer to the list to know what’s available in
42           your hardware.
43
44       -u username
45           Set the NUT username for the connection to the server. This is
46           optional, and you will be prompted for this when using the -s
47           option if you don’t specify -u on the command line. NUT usernames
48           are defined in upsd.users(5), and are not linked to system
49           usernames.
50
51       -p password
52           Set the password to authenticate to the server. This is also
53           optional like -u, and you will be prompted for it if necessary.
54
55       ups
56           View or change the settings on this UPS. The format for this option
57           is upsname[@hostname[:port]]. The default hostname is "localhost".
58

UNATTENDED MODE

60       If you run this program inside a shell script or similar to set
61       variables, you will need to specify all of the information on the
62       command line. This means using -s VAR=VALUE, -u and -p. Otherwise it
63       will put up a prompt and your program will hang.
64
65       This is not necessary when displaying the list, as the username and
66       password are not required for read-only mode.
67

DIAGNOSTICS

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 upsd.users(5) has an entry for you, and that the username you
72       are using has permissions to SET variables.
73

HISTORY

75       This program used to be called upsct2, which was ambiguous and
76       confusing.
77

SEE ALSO

79       upsd(8), upscmd(8)
80
81   Internet resources:
82       The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
83
84
85
86Network UPS Tools                 09/15/2011                          UPSRW(8)
Impressum