nut-recorder - Utility to record device status and values changes
Contents
Description
nut-recorder is an utility to record sequences from running devices (such as power failures, or any other
value changes) from upsd(8) data server, and dump it in a .seq format.
The .seq file can then be used by the dummy-ups(8) driver to replay the sequence.
Examples
To record data from ups1@host1 every 10 seconds:
:; nut-recorder ups1@host1' ups1-output.seq 10
. . .
battery.charge: 100.0
battery.voltage: 13.9
battery.voltage.nominal: 13.6
ups.status: OL
. . .
battery.charge: 90.0
ups.status: OB
. . .
You can then define a dummy device in ups.conf(5):
[ups-test]
driver = dummy-ups
port = ups1-output.seq
Name
nut-recorder - Utility to record device status and values changes
Options
device-name
Record the changes of this device. The format for this option is devname[@hostname[:port]]. The
default hostname is "localhost".
output-file
Optional. Data will be saved to this file. The default is dummy-device.seq.
interval
Optional. The status of the device will be checked every interval. The default is 5 seconds.
See Also
Thedummy-upsdriver:dummy-ups(8) Theloggingdaemon:upslog(8) Internetresources: The NUT (Network UPS Tools) home page: https://www.networkupstools.org/historic/v2.8.3/ Network UPS Tools 2.8.3 07/08/2025 NUT-RECORDER(8)
Synopsis
nut-recorderdevice-name [output-file] [interval]
