search for: numlogin

Displaying 3 results from an estimated 3 matches for "numlogin".

Did you mean: numlogins
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...); vupslog(LOG_DEBUG, fmt, va, 0); va_end(va); diff -rup nut-2.7.4.orig/server/netget.c nut-2.7.4.dev/server/netget.c --- nut-2.7.4.orig/server/netget.c 2016-03-08 13:01:11.000000000 +0100 +++ nut-2.7.4.dev/server/netget.c 2016-06-29 15:36:45.829340912 +0200 @@ -44,6 +44,51 @@ static void get_numlogins(nut_ctype_t *c sendback(client, "NUMLOGINS %s %d\n", upsname, ups->numlogins); } +/* The SIGUSR1 and SIGUSR2 signals to the UPS's are received and remembered + by the server on behalf of the UPS's. RP */ +static void get_sigusr1(nut_ctype_t *client, const char *upsnam...
2012 Jan 25
1
A patch to add a command to get client information
Hello!! I'm a sysadmin at La Laguna University in Spain. We are using NUT to manage our UPS with great success, but we miss a feature and we would like to send this patch to you. If you apply this patch running upsd -c info you'll get information about client connections in syslog. This is very simple and helpfull if you have hundreds of servers connected to the same upsd. Thank you for
2016 Jul 11
0
Proposal for technique to stop a timer at any moment
...GET SIGUSR1" and "GET SIGUSR2" |=============================================================================== NOTE: any new version of the protocol implies an update of NUT_NETVERSION @@ -78,6 +79,29 @@ still connected when starting the shutdo This replaces the old "REQ NUMLOGINS" command. +SIGUSR1 SIGUSR2 +~~~~~~~~~~~~~~~ + +Form: + + GET SIGUSR1 <upsname> + GET SIGUSR2 <upsname> + GET SIGUSR1 cheapo + +Response: + + SIGUSR1 <upsname> <value> + SIGUSR2 <upsname> <value> + SIGUSR2 cheapo 1 + +'<value>' is 0 or 1 and...