envstat is a utility that handles various aspects of the sensors registered with the
envsys(4) framework. It is capable of displaying sensor values as well as changing parameters and setting critical limits for the sensors.
In display mode, column widths as well as displayed sensors are fully customizable. Critical limits or other properties can be set via the configuration file. If critical limits were set previously, the display mode will show the critical limits in addition to the current values.
The following options are available:
-c
Accepts a file as argument to set properties for sensors in devices registered with the framework. See the
envsys.conf(5) manual page for more information.
-D
Display the names of the drivers that were registered with the
envsys(4) framework, one per line and some properties for the driver: refresh timeout value, for example.
-d device
Display only the sensors for the given device. This is useful when there are multiple devices registered and you want to only see results from a specific device.
-f
Display temperature values in degrees Fahrenheit. The default is to display temperature values in degrees Celsius.
-I
This flag skips the sensors with invalid state, these are normally shown using the “N/A” string by default.
-i interval
Repeat the display every interval seconds. Note that some devices do not provide fresh values on demand. See the individual device's manual page for meaningful values for interval. If not specified, or specified as 0, envstat produces one round of values and exits.
-k
Display temperature values in Kelvin. The default is to display temperature values in degrees Celsius.
-l
List the names of all supported sensors, one per line. Use of this flag causes envstat to ignore all other option flags.
-r
This flag is provided for compatibility reasons and there's no need to use it. In the previous implementation, it was used to enable the row mode; this mode is now the default.
-S
This flag is used to restore defaults to all devices registered with the framework. This will remove all properties that were set in the configuration file to the setting that the drivers use by default.
-s device:sensor,...
Restrict the display to the named sensors. The pair device and sensor description must be supplied as a comma separated list. Device as well as sensor descriptions are case sensitive.
-T
Create and display max, min and average statistics for a sensor. Must be used with an interval, otherwise statistics cannot be collected up. Please note that to get realistic values a lower interval value should be used, but that will also increase overhead.
-w width
Use width as the column width for the output. Each column is additionally separated by a single space. The default is the length of the longest sensor name.
-W
This option has no effect. It is retained for historical reasons.
-x
Shows the property list used by the
sysmon_envsys(9) framework that contains details about all registered drivers and sensors.