1 .\" $NetBSD: envstat.8,v 1.50 2009/02/15 00:01:19 wiz Exp $
3 .\" Copyright (c) 2000, 2007, 2008, 2009 The NetBSD Foundation, Inc.
4 .\" All rights reserved.
6 .\" This code is derived from software contributed to The NetBSD Foundation
7 .\" by Juan Romero Pardines and Bill Squier.
9 .\" Redistribution and use in source and binary forms, with or without
10 .\" modification, are permitted provided that the following conditions
12 .\" 1. Redistributions of source code must retain the above copyright
13 .\" notice, this list of conditions and the following disclaimer.
14 .\" 2. Redistributions in binary form must reproduce the above copyright
15 .\" notice, this list of conditions and the following disclaimer in the
16 .\" documentation and/or other materials provided with the distribution.
18 .\" THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
19 .\" ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
20 .\" TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
21 .\" PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
22 .\" BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
23 .\" CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
24 .\" SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
25 .\" INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
26 .\" CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
27 .\" ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
28 .\" POSSIBILITY OF SUCH DAMAGE.
35 .Nd utility to handle environmental sensors
42 .Op Fl s Ar "device:sensor,..."
46 is a utility that handles various aspects of the sensors
50 It is capable of displaying sensor values as well as
51 changing parameters and setting critical limits for the sensors.
53 In display mode, column widths as well as displayed sensors
54 are fully customizable.
55 Critical limits or other properties can be set via the configuration file.
56 If critical limits were set previously, the display mode will show
57 the critical limits in addition to the current values.
59 The following options are available:
62 Accepts a file as argument to set properties for sensors in
63 devices registered with the framework.
66 manual page for more information.
68 Display the names of the drivers that were registered with
71 framework, one per line and some properties for the driver: refresh timeout
74 Display only the sensors for the given
76 This is useful when there are multiple devices registered and
77 you want to only see results from a specific device.
79 Display temperature values in degrees Fahrenheit.
80 The default is to display temperature values in degrees Celsius.
82 This flag skips the sensors with invalid state, these are normally
87 Repeat the display every
90 Note that some devices do not provide fresh values on demand.
91 See the individual device's manual page for meaningful values for
93 If not specified, or specified as 0,
95 produces one round of values and exits.
97 Display temperature values in Kelvin.
98 The default is to display temperature values in degrees Celsius.
100 List the names of all supported sensors, one per line.
101 Use of this flag causes
103 to ignore all other option flags.
105 This flag is provided for compatibility reasons and there's no need
107 In the previous implementation, it was used to enable the
108 row mode; this mode is now the default.
110 This flag is used to restore defaults to all devices registered with
112 This will remove all properties that were set in
113 the configuration file to the setting that the drivers use by
115 .It Fl s Ar "device:sensor,..."
116 Restrict the display to the named sensors.
117 The pair device and sensor description must be supplied as a comma separated list.
118 Device as well as sensor descriptions are case sensitive.
120 Create and display max, min and average statistics for a sensor.
123 otherwise statistics cannot be collected up.
124 Please note that to get realistic
125 values a lower interval value should be used, but that will also increase
130 as the column width for the output.
131 Each column is additionally separated by a single space.
132 The default is the length of the longest sensor name.
134 Display the warning alarm minimum and maximum levels instead of the critical
137 Shows the property list used by the
139 framework that contains details about all registered drivers
147 in one line every ten seconds:
149 .Dl $ envstat -s \*qacpibat0:charge\*q -i 10
151 To list the drivers that are currently registered with
156 To display the sensors of the driver
159 .Dl $ envstat -d aiboost0
161 To set all properties specified in the configuration file:
163 .Dl $ envstat -c /etc/envsys.conf
165 To remove all properties that were set previously in the configuration
170 To display statistics for all sensors and ignoring sensors with
171 invalid states every second:
210 It was completely rewritten from scratch for
216 utility that appeared in
219 .An Juan Romero Pardines .
220 The previous version was written by