FUNCTION can be one of: on, off, cycle, status, ledon, ledoff, or ledstatus
Note: Unambiguous short forms of the functions are also accepted.
NODESPEC can be:
[-h] HOSTNAME | |
![]() |
(any text with one or more RANGEs in brackets) |
a RANGE is of the form ![]() ![]() ![]() ![]() ![]() |
|
ie: cn[1-10,15,20-32] or su[1,4]cn[1-32] or my[1-32]nodes | |
-re REGEXP | (perl-style regular expression matching hostnames) |
-c CLASS | (oneSIS class name) |
Options:
-h, | -host=HOSTNAME | Operate on hostname |
-r, | -range=RANGESPEC | Specify a range of nodes to operate on |
-re, | -regexp=REGEXP | Specify a regular expression of nodes to operate on |
-c, | -class=CLASS | Specify a class of nodes to operate on |
-p, | -parallelism=NUM | Specify the maximum number of parallel commands to run |
(default: no limit) | ||
-d, | -dryrun | Show command(s) that would be executed |
-q, | -quiet | Suppress output |
The pwr script is a convenient wrapper script supplied
to provide a unified interface for handling power management for
cluster nodes. It enables the same command to be used on every
cluster
regardless of the underlying mechanisms for handling node power.
Note: At least one valid SPECFORMAT directive and a
POWERCMD for each FUNCTION must be supplied for the
pwr
command to be able to perform that function.
The pwr script builds commands that it runs (in parallel)
to power on, power off, cycle, or query the power status of a given
set of nodes. It can also turn on, turn off, or query the status of
a chassis LED
(or similar mechanism) if that functionality is available.
To power on nodes named cn1 through cn100:
POWERCMD directives for several power management utilities may be included with each oneSIS distribution. For example, to have pwr use the powerman utility (http://www.llnl.gov/linux/powerman), you could add the following line to /etc/sysimage.conf:
This includes a list of directives used to interface to powerman for power management. The contents of that file look like this: SPECFORMAT powerman_spec ext_range+
It is still necessary to configure powerman or any other power utility.