httppower(8)

httppower8

Communicate with http based power distribution units

Usage

httppower [--url URL] [--header string] [--cookies] [--verbose]

Overview

httppower is a helper program for powerman which enables it to communicate with HTTP based power distribution units. It is run interactively by the powerman daemon.

Options

-u, --url URL

Set the base URL.

-H, --header string

Set extra HEADER to use.

-c, --cookies

Enable cookies in session.

-v, --verbose

Increase output verbosity.

Interactive commands

The following commands are accepted at the httppower> prompt:

auth user:pass

Authenticate to the base URL with specified user and password, using ``basic'' HTTP authentication which sends the user and password over the network in plain text.

seturl URL

Set the base URL. Overrides the command line option.

setheader [string data]

Set extra HEADER to use. Do not specify data to clear. Overrides the command line option.

cookies <enable|disable>

Enable or disable use of cookies. Overrides the command line option.

get [URL-suffix]

Send an HTTP GET to the base URL with the optional URL-suffix appended.

post [URL-suffix] <string data>

Send an HTTP POST to the base URL with the optional URL-suffix appended, and string data as argument. Typically, the data is key=value pairs (multiple of which can be concatenated with the &-symbol), but there can be exceptions.

put [URL-suffix] <string data>

Send an HTTP PUT to the base URL with the optional URL-suffix appended, and string data as argument.

Files

/usr/sbin/httppower
/etc/powerman/powerman.conf

Origin

PowerMan was originally developed by Andrew Uselton on LLNL's Linux clusters. This software is open source and distributed under the terms of the GNU GPL.

Releases

8 releases since Debian 6.0 (Squeeze); the text changed 2 times.

  1. 6.0–11
  2. 12
  3. 13

--cookies since Debian 12 (Bookworm); --header since Debian 12 (Bookworm); --verbose since Debian 12 (Bookworm); -H since Debian 12 (Bookworm); -c since Debian 12 (Bookworm); -v since Debian 12 (Bookworm).

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