lbcdclient(1)

lbcdclient1

Query a remote lbcd daemon for system load

Usage

lbcdclient [-2] [-p port] [-s service [,service ...]] [-t timeout] host

Overview

lbcdclient sends a query packet to a remote lbcd server and prints the results. The result output will look something like this:

    PROTOCOL 3
    MACHINE STATUS:
    l1           = 16           (0.16)
    l5           = 5            (0.05)
    l15          = 6            (0.06)
    current_time = 1387677198   (2013-12-21 17:53:18)
    boot_time    = 1386357534   (2013-12-06 11:18:54)
    user_mtime   = 1387250916   (2013-12-16 19:28:36)
    tot_users    = 12
    uniq_users   = 1
    on_console   = false
    tmp_full     = 8%
    tmpdir_full  = 8%
    SERVICES (1):
    default (0): weight 368, increment 200

"l1", "l5", and "l15" are the one-minute, five-minute, and fifteen-minute load averages, times 100, as integers. The conventional load averages, as seen with uptime, are shown on the right.

"current_time" is the current system time in seconds since epoch. "boot_time" is the time of the last system boot. "user_mtime" is the time information about logged-in users was last modified. A translation into a date and time is given on the right.

"tot_users" is the total number of logged-in users, and "uniq_users" is the number of unique logged-in users. "on_console" will be "true" if a user is logged into the console and "false" otherwise.

"tmp_full" is the percentage of space used in the system /tmp directory and "tmpdir_full" full is the percentage used in the system /var/tmp directory.

Finally, for protocol version three queries (the default), the last lines give information for each service queried, using the extended service response for the version three packet format. For each service, its name, sequence number in the reply, current weight, and current increment are given.

If the -2 option is used, lbcdclient will send a version two packet instead, and the returned results will not include the extended services output.

Options

--v2, -2

Send a version two protocol packet instead of a version three packet. Version two doesn't support the separate service weights.

-m, --man, --manual

Print out this documentation (which is done simply by feeding the script to "perldoc -t").

--port=port, -p port

Send the query to port instead of the default of 4330.

--service=service, -s service,[service ...]

Request information for the specified service names. This option can be given multiple times to request information about multiple services. The services can also be specified as a comma-separated list, or a combination of multiple options and comma-separated lists.

--timeout=timeout, -t timeout

Use a timeout of timeout seconds instead of the default of 10 seconds.

Examples

Send a version three query to www.example.com and print the results:

    lbcdclient www.example.com

Send a version two query to foo.example.org on port 14330, asking for information about the "smtp" and "http" services in addition to the default service, with a timeout of five seconds.

    lbcdclient -2 -p 14330 -t 5 -s smtp -s http foo.example.org

Releases

9 releases since Debian 5.0 (Lenny); the text changed 3 times.

  1. 5.0
  2. 6.0–7
  3. 8
  4. 9–13

--man since Debian 8 (Jessie); --manual since Debian 8 (Jessie); --port since Debian 8 (Jessie); --timeout since Debian 8 (Jessie); --v2 since Debian 8 (Jessie); -m since Debian 8 (Jessie); -p since Debian 8 (Jessie); -t since Debian 8 (Jessie).

Authors

Written by Russ Allbery <[email protected]> based on an earlier version by Larry Schwimmer.

From lbcd 3.5.2-4 in Debian 13 (Trixie). Parsed by carta from the page's man source.