Skip to content

Instantly share code, notes, and snippets.

@vicenteg
Created April 17, 2013 20:56
Show Gist options
  • Save vicenteg/5407710 to your computer and use it in GitHub Desktop.
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
#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