All of lore.kernel.org
 help / color / mirror / Atom feed
From: jparsons@sourceware.org <jparsons@sourceware.org>
To: cluster-devel.redhat.com
Subject: [Cluster-devel] cluster/fence/agents/drac fence_drac.pl
Date: 20 Oct 2006 16:21:53 -0000	[thread overview]
Message-ID: <20061020162153.14696.qmail@sourceware.org> (raw)

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL4
Changes by:	jparsons at sourceware.org	2006-10-20 16:21:53

Modified files:
	fence/agents/drac: fence_drac.pl 

Log message:
	Addresses bz175538 by adding 4/I support and increasing the telnet timeout value, and ALSO adds drac 4p support for firmware 1.40 and later

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/cluster/fence/agents/drac/fence_drac.pl.diff?cvsroot=cluster&only_with_tag=RHEL4&r1=1.3.2.5&r2=1.3.2.6

--- cluster/fence/agents/drac/fence_drac.pl	2006/09/06 15:32:36	1.3.2.5
+++ cluster/fence/agents/drac/fence_drac.pl	2006/10/20 16:21:53	1.3.2.6
@@ -32,7 +32,7 @@
 s/.*\///;
 my $pname = $_;
 
-my $telnet_timeout = 5;      # Seconds to wait for matching telent response
+my $telnet_timeout = 10;      # Seconds to wait for matching telent response
 my $power_timeout = 20;      # time to wait in seconds for power state changes
 $action = 'reboot';          # Default fence action.  
 
@@ -45,6 +45,7 @@
 my $DRAC_VERSION_III_XT  = 'DRAC III/XT';
 my $DRAC_VERSION_MC      = 'DRAC/MC';
 my $DRAC_VERSION_4I	 = 'DRAC 4/I';
+my $DRAC_VERSION_4P	 = 'DRAC 4/P';
 
 # WARNING!! Do not add code bewteen "#BEGIN_VERSION_GENERATION" and 
 # "#END_VERSION_GENERATION"  It is generated by the Makefile
@@ -168,6 +169,11 @@
 		$cmd_prompt = "/\\[$login\\]# /" 
 			unless defined $cmd_prompt;
 	}
+  elsif ($drac_version =~ /$DRAC_VERSION_4P/)
+  {
+        $cmd_prompt = "/\\[$login\\]# /"
+          unless defined $cmd_prompt;
+  } 
 	else
 	{
 		print "WARNING: unsupported DRAC version '$drac_version'\n";
@@ -309,7 +315,7 @@
 		my ($group,$arrow,$module,$presence,$pwrstate,$health,
 			$svctag,$junk) = split /\s+/;
 
-		if ($drac_version eq  $DRAC_VERSION_III_XT || $drac_version eq $DRAC_VERSION_4I)
+		if ($drac_version eq  $DRAC_VERSION_III_XT || $drac_version eq $DRAC_VERSION_4I || $drac_version eq $DRAC_VERSION_4P)
 		{
 			fail "failed: extraneous output detected from 'getmodinfo'" if $found_module;
 			$found_module = 1;



             reply	other threads:[~2006-10-20 16:21 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-10-20 16:21 jparsons [this message]
  -- strict thread matches above, loose matches on Subject: below --
2006-11-27 16:47 [Cluster-devel] cluster/fence/agents/drac fence_drac.pl rmccabe
2006-11-27 16:45 rmccabe
2006-11-27 16:40 rmccabe
2006-09-06 15:34 jparsons
2006-09-06 15:32 jparsons
2006-08-16 19:16 jparsons

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20061020162153.14696.qmail@sourceware.org \
    --to=jparsons@sourceware.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.