pmshell

command
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 4, 2021 License: BSD-3-Clause Imports: 6 Imported by: 0

README

pmshell

pmshell is a simple commandline tool to control power through the pkg/powerman bindings. It mostly exists to test libpowerman bindings.

To build:

go build .

To run:

./pmshell

pmshell takes a number of options and can operate as an interactive shell. Optionally, a single command can be passed after options.

Options
$ ./pmshell -h
Usage of ./powerctl
  -base string
        base url of the API on the endpoint (default "/power/v1")
  -https
        use HTTPS instead of HTTP
  -port int
        port that the PowerAPI server is listening on (default 8269)
  -server string
        ip or hostname of the PowerAPI server (default "localhost"
Commands
$ ./pmshell help

commands:
  shell
        Start an interactve shell (default, ignored if already in a shell)
  on|1 <node>
        Turn a node on
  off|0 <node>
        Turn a node off
  [c]ycle <node>
        Power cycle a node
  [q]uery [<node>]
                Get node state.  If <ndoe> is not specified, get the state of all nodes.
  [l]list|ls
                List all known nodes; do not query their statuses.
  quit|exit
        Quit the shell
  help|?
        Print this help

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL