Greetings,
The attached patches add support for power cycling systems controlled by the
/sbin/fence_lpar command (provided by the cman package). Since Hardware
Management Consoles (HMC) typically manage more than one system, the power-id
must be a colon delimited string consisting of: <system>:<partition>. Where
<system> specifies the name of the managed system to control, and <partition>
is the name of the desired logical partition on <system>.
An example execution can be observed below (note that the modules/cli*py patch
must be applied for the --power-pass and --power-id arguments to be properly
parsed).
# cobbler system edit --name ibm-505-lp1 --power-type lpar --power-address
ibm-p5-hmc.test.redhat.com --power-user hscroot --power-pass XXXXXXX
--power-id 505:lp1
# cobbler system reboot --name ibm-505-lp1
cobbler power configuration is:
type : lpar
address: ibm-p5-hmc.test.redhat.com
user : hscroot
id : 505:lp1
- /sbin/fence_lpar -a ibm-p5-hmc.test.redhat.com -l hscroot -p abc1234 -x -s
505 -n lp1 -o off
Success: Powered OFF
cobbler power configuration is:
type : lpar
address: ibm-p5-hmc.test.redhat.com
user : hscroot
id : 505:lp1
- /sbin/fence_lpar -a ibm-p5-hmc.test.redhat.com -l hscroot -p abc1234 -x -s
505 -n lp1 -o on
Success: Powered ON
Comments welcome!
Thanks,
James
_______________________________________________
cobbler mailing list
[email protected]
https://fedorahosted.org/mailman/listinfo/cobbler