2012-06-01 16:55:19 +03:00
'\" t
. \" Title: nut-recorder
. \" Author: [see the "AUTHOR" section]
2013-11-24 17:00:12 +02:00
. \" Generator: DocBook XSL Stylesheets v1.76.1 <http://docbook.sf.net/>
. \" Date: 11/18/2013
2012-06-01 16:55:19 +03:00
. \" Manual: NUT Manual
2013-11-24 17:00:12 +02:00
. \" Source: Network UPS Tools 2.7.1-pre2
2012-06-01 16:55:19 +03:00
. \" Language: English
. \"
2013-11-24 17:00:12 +02:00
.TH "NUT\-RECORDER" "8" "11/18/2013" "Network UPS Tools 2\&.7\&.1\-p" "NUT Manual"
2012-06-01 16:55:19 +03:00
. \" -----------------------------------------------------------------
. \" * Define some portability stuff
. \" -----------------------------------------------------------------
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
. \" http://bugs.debian.org/507673
. \" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html
. \" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
.ie \n (.g .ds Aq \(aq
.el .ds Aq '
. \" -----------------------------------------------------------------
. \" * set default formatting
. \" -----------------------------------------------------------------
. \" disable hyphenation
.nh
. \" disable justification (adjust text to left margin only)
.ad l
. \" -----------------------------------------------------------------
. \" * MAIN CONTENT STARTS HERE *
. \" -----------------------------------------------------------------
.SH "NAME"
nut-recorder \- utility to record device status and values changes
.SH "SYNOPSIS"
.sp
\fB nut\- recorder\fR \fI device\- name\fR [output\- file] [interval]
.SH "DESCRIPTION"
.sp
2013-11-24 17:00:12 +02:00
\fB nut\- recorder\fR is an utility to record sequences from running devices (such as power failures, or any other value changes) from upsd, and dump it in a \& .seq format\& .
2012-06-01 16:55:19 +03:00
.sp
The \& .seq file can then be used by the \fB dummy-ups\fR (8) driver to replay the sequence\& .
.SH "OPTIONS"
.PP
\fI device\- name\fR
.RS 4
2013-11-24 17:00:12 +02:00
Record the changes of this device\& . The format for this option is
2012-06-01 16:55:19 +03:00
\fI devname[@hostname[:port]]\fR \& . The default hostname is "localhost"\& .
.RE
.PP
\fI output\- file\fR
.RS 4
Optional\& . Data will be saved to this file\& . The default is
\fI dummy\- device\& .seq\fR \& .
.RE
.PP
\fI interval\fR
.RS 4
Optional\& . The status of the device will be checked every
\fI interval\fR \& . The default is 5 seconds\& .
.RE
.SH "EXAMPLES"
.sp
To record data from \fI ups1@host1\fR every 10 seconds:
.sp
.if n \{ \
.RS 4
. \}
.nf
$ nut\- recorder ups1@host1\* (Aq 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
\& . \& . \& .
.fi
.if n \{ \
.RE
. \}
.sp
You can then define a dummy device in \fB ups.conf\fR (5):
.sp
.if n \{ \
.RS 4
. \}
.nf
[ups\- test]
driver = dummy\- ups
port = ups1\- output\& .seq
.fi
.if n \{ \
.RE
. \}
.SH "AUTHOR"
.sp
Arnaud Quette
.SH "SEE ALSO"
.sp
\fB dummy-ups\fR (8)
.SH "INTERNET RESOURCES"
.sp
The NUT (Network UPS Tools) home page: http://www\& .networkupstools\& .org/