1LIBNUTCLIENT_MISC(3) NUT Manual LIBNUTCLIENT_MISC(3)
2
3
4
6 libnutclient_misc, nutclient_authenticate, nutclient_logout,
7 nutclient_device_login, nutclient_get_device_num_logins,
8 nutclient_device_master, nutclient_device_forced_shutdown -
9 Miscelaneous functions in Network UPS Tools high-level client access
10 library
11
13 #include <nutclient.h>
14
15 typedef void* NUTCLIENT_t;
16
17 void nutclient_authenticate(NUTCLIENT_t client, const char* login, const char* passwd);
18 void nutclient_logout(NUTCLIENT_t client);
19 void nutclient_device_login(NUTCLIENT_t client, const char* dev);
20 int nutclient_get_device_num_logins(NUTCLIENT_t client, const char* dev);
21 void nutclient_device_master(NUTCLIENT_t client, const char* dev);
22 void nutclient_device_forced_shutdown(NUTCLIENT_t client, const char* dev);
23
25 The nutclient_authenticate() function authenticate the user.
26
27 login is the user name.
28
29 passwd is the user password.
30
31 The nutclient_logout() function disconnect gracefully from the server.
32
33 The nutclient_device_login() function log the fact that a system is
34 drawing power from this UPS.
35
36 The nutclient_get_device_num_logins() function retrieve the number of
37 clients which have been logged for this device.
38
39 The nutclient_device_master() function make sure that master-level
40 functions like FSD are available if necessary.
41
42 The nutclient_device_forced_shutdown() function sets the "forced
43 shutdown" flag on the device.
44
45 dev is the device name.
46
48 libnutclient(3)
49
50
51
52Network UPS Tools 2.7.3. 03/02/2016 LIBNUTCLIENT_MISC(3)