1UPSC(8)                     Network UPS Tools (NUT)                    UPSC(8)
2
3
4

NAME

6       upsc - example lightweight UPS client
7

SYNOPSIS

9       upsc ups [variable]
10
11

DESCRIPTION

13       upsc is provided as a quick way to poll the status of a UPS server.  It
14       can be used inside shell scripts and other programs that need UPS  data
15       but don't want to include the full interface.
16
17

OPTIONS

19       ups    Display  the  status of that UPS.  The format for this option is
20              upsname@hostname[:port].
21
22              For example, "myups@mybox:1234" would poll a UPS called  "myups"
23              on a host called "mybox", with upsd(8) running on port 1234.
24
25
26       variable
27              Display  the  value  of  this  variable  only.  By default, upsc
28              retrieves the list of variables from the server  and  then  dis‐
29              plays  the  value for each.  This may be useful in shell scripts
30              to save an additional pipe into grep.
31
32

DIAGNOSTICS

34       upsc will either print a list of all supported variables and their val‐
35       ues on the UPS or an error message.  If you receive an error, make sure
36       you have specified a valid UPS on the command  line,  that  upsd(8)  is
37       really  running  on  the  other host and that no firewalls are blocking
38       you.
39
40

HISTORY

42       Earlier versions of this program used  the  upsfetch  library  and  UDP
43       sockets  to  talk to upsd.  This version of upsc uses the new upsclient
44       library, which only talks TCP.  This is why upsct no longer exists.
45
46

SEE ALSO

48       upsd(8)
49
50
51   Internet resources:
52       The NUT (Network UPS Tools) home page: http://www.networkupstools.org/
53
54
55
56                                Fri May  9 2003                        UPSC(8)
Impressum