next up previous contents
Next: CONSOLECMD syntax Up: Configuring the power and Previous: Configuring the power and   Contents


POWERCMD syntax

POWERCMD $<$function$>$ [-c class[,class]...] [-n node[,node]...] $<$command$>$
| function can be one of: ON,OFF,CYCLE,STATUS,LEDON,LEDOFF,LEDSTATUS
| command is the command to use to perform the given function. Any valid bash command sequence, including pipes/redirects, is acceptable.
| Supplying any -c options limits the directive to apply only to the given classes.
| Supplying any -n options limits the directive to apply only to the given nodes.

Every command must reference the spec_id of a SPECFORMAT directive (see section 5.12) by including `SPEC:spec_id' in the appropriate place in the command sequence. The `SPEC:spec_id' text gets replaced with a hostname, or a range, etc., as defined in the SPECFORMAT corresponding to spec_id.

A simple hostname format may work in most cases, but may not operate as fast as one of the range formats. When using the hostname or ipaddr specformats, command is interpolated to replace any instance of `$NODE' or `$IP' with the hostname or IP address of the node being operated on, respectively.



root 2005-06-19