Imported Upstream version 2.6.4
This commit is contained in:
parent
fad6ced6f6
commit
fefe62b2bd
257 changed files with 6020 additions and 1394 deletions
|
|
@ -2,12 +2,12 @@
|
|||
.\" Title: upsc
|
||||
.\" Author: [FIXME: author] [see http://docbook.sf.net/el/author]
|
||||
.\" Generator: DocBook XSL Stylesheets v1.75.2 <http://docbook.sf.net/>
|
||||
.\" Date: 10/09/2011
|
||||
.\" Date: 05/21/2012
|
||||
.\" Manual: NUT Manual
|
||||
.\" Source: Network UPS Tools
|
||||
.\" Language: English
|
||||
.\"
|
||||
.TH "UPSC" "8" "10/09/2011" "Network UPS Tools" "NUT Manual"
|
||||
.TH "UPSC" "8" "05/21/2012" "Network UPS Tools" "NUT Manual"
|
||||
.\" -----------------------------------------------------------------
|
||||
.\" * Define some portability stuff
|
||||
.\" -----------------------------------------------------------------
|
||||
|
|
@ -34,6 +34,8 @@ upsc \- example lightweight UPS client
|
|||
\fBupsc\fR \-l | \-L [\fIhost\fR]
|
||||
.sp
|
||||
\fBupsc\fR \fIups\fR [\fIvariable\fR]
|
||||
.sp
|
||||
\fBupsc\fR \-c \fIups\fR
|
||||
.SH "DESCRIPTION"
|
||||
.sp
|
||||
\fBupsc\fR is provided as a quick way to poll the status of a UPS server\&. It can be used inside shell scripts and other programs that need UPS data but don\(cqt want to include the full interface\&.
|
||||
|
|
@ -51,6 +53,12 @@ As above, list all UPS names configured at
|
|||
\fIhost\fR, including their description provided by the remote upsd(8) from ups\&.conf(5)\&. The hostname defaults to "localhost"\&. You may optionally add a colon and a port number to override the default port\&.
|
||||
.RE
|
||||
.PP
|
||||
\fB\-c\fR \fIups\fR
|
||||
.RS 4
|
||||
Lists each client connected on
|
||||
\fIups\fR, one name per line\&.
|
||||
.RE
|
||||
.PP
|
||||
\fIups\fR
|
||||
.RS 4
|
||||
Display the status of that UPS\&. The format for this option is
|
||||
|
|
@ -106,6 +114,21 @@ done
|
|||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.sp
|
||||
To list clients connected on "myups":
|
||||
.sp
|
||||
.if n \{\
|
||||
.RS 4
|
||||
.\}
|
||||
.nf
|
||||
$ upsc \-c myups
|
||||
127\&.0\&.0\&.1
|
||||
::1
|
||||
192\&.168\&.1\&.2
|
||||
.fi
|
||||
.if n \{\
|
||||
.RE
|
||||
.\}
|
||||
.SH "DIAGNOSTICS"
|
||||
.sp
|
||||
upsc will either print a list of UPS names, a list of all supported variables and their values on the UPS, or an error message\&. If you receive an error, make sure you have specified a valid UPS on the command line, that \fBupsd\fR(8) is really running on the other host and that no firewalls are blocking you\&.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue