APC UPS control system manual Working Example Client Test Program, Then execute it

Models: UPS control system

1 233
Download 233 pages 42.59 Kb
Page 82
Image 82

LASTXFER : U command or Self Test

SELFTEST : NO

STESTI

: 336

DLOWBATT : 02 Minutes

DIPSW

: 0x00 Dip Switch

REG1

: 0x00 Register 1

REG2

: 0x00 Register 2

REG3

: 0x00 Register 3

MANDATE

: 01/11/99

SERIALNO : GS9903001147

BATTDATE : 01/11/99

NOMOUTV

: 230.0

NOMBATTV : 24.0

HUMIDITY : N/A

AMBTEMP

: N/A

EXTBATTS : 0

BADBATTS : N/A

FIRMWARE : 60.11.I

APCMODEL : IWI

END APC : Thu Dec 02 17:27:25 CET 1999

You should get pretty much the same output mixed in with html if you execute upsfstats.cgi directly from a Unix shell in the cgi subdirectory as explained above for upsstats.cgi and multimon.cgi.

Working Example:

To see a working example of the above programs, visit http://www.apcupsd.com/cgi-bin/multimon.cgi.

Client Test Program:

When your Network Information Server is up and running, you can test it using a simple program before attempting to access the server via your Web server. The test program is called client.c and can be found in the examples subdirectory of the source distribution. To build the program, when in the examples directory, use something like the following:

cc client.c ../lib/libapc.a -o client

Then execute it:

./client <host>[:<port>] [<command>]

81

Page 82
Image 82
APC UPS control system manual Working Example Client Test Program, Then execute it