P(8)                                                         P(8)

     NAME
          P  - activate power switch

     SYNOPSIS
          P system ...
          apc/genpwrdb system ...

     DESCRIPTION
          P power cycles a system attached to a power switch.  Cur-
          rently P only knows how to operate WTI and APC switches with
          telnet (see con(1)) access and Cyberpower switches with C(1)
          access. The systems attached are defined in a series of
          ndb(6) files named consoledb.powersw, where powersw is the
          name of the power switch.  Currently there are no access
          controls.  Power switch entries are of the form Consoles are
          defined by entries of the form:

               type=wti
                    power=shelf428
                    ...

          Each power/type/system association represents a machine
          system on switch power with type type. Currently there is no
          coordination between the instances of P.

          For APC power strips.  apc/genpwrdb maybe used to generate a
          data base from the current power strip configuration.

     FILES
          /lib/ndb/powerdb.sysname  Power databases.

     SOURCE
          /rc/bin/P
          /rc/bin/apc/genpwrdb

     BUGS
          A file server for coordination would be helpful.

     Page 1                       Plan 9             (printed 4/24/24)