~iheino+ub/+junk/nut-upsconf-docfix

« back to all changes in this revision

Viewing changes to docs/man/nutupsdrv.txt

  • Committer: Tuomas Heino
  • Author(s): Laurent Bigonville
  • Date: 2014-04-22 20:46:12 UTC
  • Revision ID: iheino+ub@cc.hut.fi-20140422204612-1x2gh3nkezfsdao4
Tags: upstream-2.7.2
ImportĀ upstreamĀ versionĀ 2.7.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
NUTUPSDRV(8)
 
2
============
 
3
 
 
4
NAME  
 
5
----
 
6
 
 
7
nutupsdrv - generic manual for unified NUT drivers
 
8
 
 
9
SYNOPSIS
 
10
--------
 
11
 
 
12
*nutupsdrv* '-h'
 
13
 
 
14
*nutupsdrv* [OPTIONS]
 
15
 
 
16
DESCRIPTION
 
17
-----------
 
18
 
 
19
*nutupsdrv* is not actually a driver.  This is a combined man page for the
 
20
shared code that is the core of many drivers within the Network UPS Tools
 
21
package.
 
22
 
 
23
For information on the specific drivers, see their individual man pages.
 
24
 
 
25
UPS drivers provide a communication channel between the physical UPS
 
26
hardware and the linkman:upsd[8] server.  The driver is responsible for
 
27
translating the native protocol of the UPS to the common format used by
 
28
the rest of this package.
 
29
 
 
30
The core has two modes of operation which are determined by the
 
31
command line switches.  In the normal mode, the driver will periodically
 
32
poll the UPS for its state and parameters.  The results of this command
 
33
is presented to upsd.  The driver will also handle setting variables and
 
34
instant commands if available.
 
35
 
 
36
The driver can also instruct the UPS to shut down the load, possibly
 
37
after some delay.  This mode of operation is intended for cases when it is
 
38
known that the UPS is running out of battery power and the systems
 
39
attached must be turned off to ensure a proper reboot when power returns.
 
40
 
 
41
NOTE: You probably don't want to use any of these options directly.  You
 
42
should use linkman:upsdrvctl[8] to control your drivers, and
 
43
linkman:ups.conf[5] to configure them.  The rest of this manual describes
 
44
options and parameters that generally are not needed by normal users.
 
45
 
 
46
OPTIONS
 
47
-------
 
48
*-h*::
 
49
Display a help message without doing anything else.  This will also list
 
50
possible values for '-x' in that driver, and other help text that the
 
51
driver's author may have provided.
 
52
 
 
53
*-a* 'id'::
 
54
Autoconfigure this driver using the 'id' section of linkman:ups.conf[5].
 
55
*This argument is mandatory when calling the driver directly.*
 
56
 
 
57
*-D*::
 
58
Raise the debugging level.  Use this multiple times to see more details.
 
59
Running a driver in debug mode will prevent it from backgrounding after
 
60
startup.  It will keep on logging information to the console until it
 
61
receives a SIGINT (usually Ctrl-C) or SIGTERM signal.
 
62
+
 
63
The level of debugging needed depends both on the driver and the
 
64
problem you're trying to diagnose.  Therefore, first explain the problem you
 
65
have with a driver to a developer/maintainer, before sending them debugging
 
66
output.  More often than not, if you just pick a level, the output may be
 
67
either too limited or too verbose to be of any use.
 
68
 
 
69
*-q*::
 
70
Raise log level threshold.  Use this multiple times to log more details.
 
71
+
 
72
The debugging comment above also applies here.
 
73
 
 
74
*-i* 'interval'::
 
75
Set the poll interval for the device.
 
76
 
 
77
*-V*::
 
78
Print only version information, then exit.
 
79
 
 
80
*-L*::
 
81
Print a parseable list of driver variables. Mostly useful for configuration
 
82
wizard programs.
 
83
 
 
84
*-k*::
 
85
("Kill" power) Forced shutdown mode.  The UPS will power off the
 
86
attached load, if possible.
 
87
+
 
88
You should use +upsdrvctl shutdown+ whenever possible instead of
 
89
calling this directly.
 
90
 
 
91
*-r* 'directory'::
 
92
The driver will chroot(2) to 'directory' during initialization.
 
93
This can be useful when securing systems.
 
94
+
 
95
In addition to the state path, many systems will require /dev/null to
 
96
exist within 'directory' for this to work.  The serial ports are
 
97
opened before the chroot call, so you do not need to create them inside
 
98
the jail.  In fact, it is somewhat safer if you do not.
 
99
 
 
100
*-u* 'username'::
 
101
If started as root, the driver will setuid(2) to the user id
 
102
associated with 'username'.  
 
103
+
 
104
If you do not specify this value and start it as root, the driver will
 
105
switch to the default value that was compiled into the code.  This is
 
106
typically 'nobody', and is far from ideal.
 
107
 
 
108
*-x* 'var'='val'::
 
109
Define a variable called 'var' with the value of 'var' in the
 
110
driver.  This varies from driver to driver - see the specific man pages
 
111
for more information.  
 
112
+
 
113
This is like setting 'var'='val' in linkman:ups.conf[5], but
 
114
*-x* overrides any settings from that file.
 
115
 
 
116
DIAGNOSTICS
 
117
-----------
 
118
 
 
119
Information about the startup process is printed to stdout.  Additional
 
120
messages after that point are available in the syslog.  After linkman:upsd[8]
 
121
starts, the UPS clients such as linkman:upsc[8] can be used to query the status
 
122
of an UPS.
 
123
 
 
124
PROGRAM CONTROL
 
125
---------------
 
126
 
 
127
You should always use linkman:upsdrvctl[8] to control the drivers.  While
 
128
drivers can be started by hand for testing purposes, it is not recommended for
 
129
production use.
 
130
 
 
131
FILES
 
132
-----
 
133
ups.conf::
 
134
Required configuration file.  This contains all details on which drivers
 
135
to start and where the hardware is attached.
 
136
 
 
137
BUGS
 
138
----
 
139
 
 
140
Some of the drivers may have bugs.  See their manuals for more
 
141
information.
 
142
 
 
143
SEE ALSO
 
144
--------
 
145
 
 
146
Server:
 
147
linkman:upsd[8]
 
148
 
 
149
Clients:
 
150
linkman:upsc[8], linkman:upscmd[8],
 
151
linkman:upsrw[8], linkman:upslog[8], linkman:upsmon[8]
 
152
 
 
153
CGI programs:
 
154
linkman:upsset.cgi[8], linkman:upsstats.cgi[8], linkman:upsimage.cgi[8]
 
155
 
 
156
Driver control:
 
157
linkman:upsdrvctl[8]
 
158
 
 
159
Drivers:
 
160
linkman:al175[8]
 
161
linkman:apcsmart[8],
 
162
linkman:bcmxcp[8],
 
163
linkman:bcmxcp_usb[8],
 
164
linkman:belkin[8],
 
165
linkman:belkinunv[8],
 
166
linkman:bestfcom[8],
 
167
linkman:bestuferrups[8],
 
168
linkman:bestups[8],
 
169
linkman:blazer_ser[8],
 
170
linkman:blazer_usb[8],
 
171
linkman:cyberpower[8],
 
172
linkman:dummy-ups[8],
 
173
linkman:etapro[8],
 
174
linkman:everups[8],
 
175
linkman:gamatronic[8],
 
176
linkman:genericups[8],
 
177
linkman:isbmex[8],
 
178
linkman:liebert[8],
 
179
linkman:masterguard[8],
 
180
linkman:metasys[8],
 
181
linkman:mge-shut[8],
 
182
linkman:mge-utalk[8],
 
183
linkman:mge-xml[8],
 
184
linkman:newmge-shut[8],
 
185
linkman:nitram[8],
 
186
linkman:nutdrv_qx[8],
 
187
linkman:oneac[8],
 
188
linkman:optiups[8],
 
189
linkman:powercom[8],
 
190
linkman:powerman-pdu[8],
 
191
linkman:powerpanel[8],
 
192
linkman:rhino[8],
 
193
linkman:richcomm_usb[8],
 
194
linkman:safenet[8],
 
195
linkman:snmp-ups[8],
 
196
linkman:solis[8],
 
197
linkman:tripplite[8],
 
198
linkman:tripplitesu[8],
 
199
linkman:tripplite_usb[8],
 
200
linkman:usbhid-ups[8],
 
201
linkman:upscode2[8],
 
202
linkman:victronups[8]
 
203
 
 
204
Internet resources:
 
205
The NUT (Network UPS Tools) home page: http://www.networkupstools.org/