Skip to contentSkip to conversation

cluster/fence/agents/ilo fence_ilo.pl

Cluster-devel [email protected] 1 participant 1 message Feb 19, 2007

lore
Share & tools
lore
#0 lore raw

CVSROOT: /cvs/cluster
Module name: cluster
Changes by: rmccabe at sourceware.org 2007-02-19 17:09:00

Modified files:
fence/agents/ilo: fence_ilo.pl

Log message:
Support power on/reboot for iLO2

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/ilo/fence_ilo.pl.diff?cvsroot=cluster&r1=1.6&r2=1.7

fence/agents/ilo/fence_ilo.pl +4 -2
@@ -346,13 +346,15 @@
 	# As of firmware version 1.71 (RIBCL 2.21) The SET_HOST_POWER command
 	# is no longer available.  HOLD_PWR_BTN and PRESS_PWR_BTN are used 
 	# instead now :(
-	if ($ribcl_vers < 2.21 )
+	if ($ribcl_vers < 2.21)
 	{
 		sendsock $socket, "<SET_HOST_POWER HOST_POWER = \"$state\"/>\n";
 	}
 	else
 	{
-		if ($state eq "Y" )
+		if ($ribcl_vers > 2.21) {
+			sendsock $socket, "<HOLD_PWR_BTN/>\n";
+		} elsif ($state eq "Y" )
 		{ 
 			sendsock $socket, "<PRESS_PWR_BTN/>\n";
 		}