httppower(8)

πŸ“¦
version 2.4.4 Β· 3 versions
, in debian trixie, epel 10, epel 9, opensuse-leap 16.0, ubuntu questing, ubuntu resolute, ubuntu stonking

✨ httppower(8) β€” bestie edition ✨

okay so this is httppower, from the System Manager's Manual. she's an 8th-section admin page, she's been here since 1 December 2008, and she is lowkey the reason your rack power strips do what you tell them. sit down, grab a strawberry πŸ“, we're doing this.


πŸ’– NAME πŸ’–

httppower β€” talk to HTTP-based power distribution units. that's it, that's the whole job. πŸ’…


πŸŽ€ SYNOPSIS πŸŽ€

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

🌸 DESCRIPTION 🌸

so httppower is a little helper program for powerman β€” it's the wingman that lets powerman actually communicate with HTTP based power distribution units. 🫢

and the way it runs is so specific: it's run interactively by the powerman daemon. like, the daemon literally launches it and talks to it at a prompt. it's giving pen pal energy, but the pen pal controls your electricity. πŸ”₯


✨ OPTIONS ✨

  • -u, --url URL β€” set the base URL. that's the whole thing, bestie, she's the address everything else hangs off of.
  • -H, --header string β€” set extra HEADER to use. yes, extra. sprinkle it on. 🧚
  • -c, --cookies β€” enable cookies in session. not the edible kind unfortunately 😭 but she'll keep that session state for you.
  • -v, --verbose β€” increase output verbosity. turn it up, we want the tea. β˜•

πŸ¦‹ INTERACTIVE COMMANDS πŸ¦‹

these are the commands you can type at the httppower> prompt. yes, that's the actual prompt. iconic.

  • auth user:pass β€” authenticate to the base URL with the specified user and password, using ``basic'' HTTP authentication.
⚠️ okay real talk for a sec: basic HTTP auth sends the user and password over the network in plain text. not hashed, not encrypted, just vibes and your password, out in the open. do with that information what you will. πŸ’€
  • seturl URL β€” set the base URL. and she overrides the command line option. the prompt wins, always.
  • setheader [string data] β€” set extra HEADER to use. do not specify data if you want to clear it. also overrides the command line option. she's not asking, she's telling. ✨
  • cookies <enable|disable> β€” enable or disable use of cookies. yep, overrides the command line option too. (pattern spotted? the interactive prompt is the main character here πŸ‘‘)
  • get [URL-suffix] β€” send an HTTP GET to the base URL, with the optional URL-suffix appended. simple. clean. slay.
  • post [URL-suffix] <string data> β€” send an HTTP POST to the base URL with the optional URL-suffix appended, and string data as the argument. typically the data is key=value pairs β€” and you can concatenate multiple of those with the & symbol β€” but there can be exceptions, so don't come for me. πŸ“
  • put [URL-suffix] <string data> β€” send an HTTP PUT to the base URL with the optional URL-suffix appended, and string data as the 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.


⭐ SEE ALSO ⭐

http://github.com/chaos/powerman


and that's the page!! this whole thing is from powerman-2.4.4, dated 1 December 2008 β€” yes bestie, she's vintage, and she still ate. πŸ‘‘βœ¨πŸ«Ά

mwah, go power cycle something responsibly πŸ’