Created
April 17, 2013 20:56
-
-
Save vicenteg/5407710 to your computer and use it in GitHub Desktop.
Complementary hack to this hack: https://gist.github.com/ecnivny/5407346 This little guy goes in /etc/cobbler/power/fence_seamicro.template
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#if $power_mode == "on" | |
#set $power_mode = 1 | |
#else if $power_mode == "off" | |
#set $power_mode = 6 | |
#else if $power_mode == "reboot" | |
#set $power_mode = 2 | |
#end if | |
/usr/bin/ipmitool -H $power_address -I lanplus -U $power_user -P $power_pass raw 0x2E 1 0x00 0x7d 0xab $power_mode 0 $power_id |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment