From f559f74fd3a409294ae43b781ccd8349e4f38501 Mon Sep 17 00:00:00 2001 From: zhanx Date: Fri, 5 Jun 2009 04:15:31 +0000 Subject: [PATCH] Fix rspconfig bug 2801001:rspconfig with spdump does not work on P6 HE fsp git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3518 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd --- perl-xCAT/xCAT/PPCfsp.pm | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/perl-xCAT/xCAT/PPCfsp.pm b/perl-xCAT/xCAT/PPCfsp.pm index 564147eda..77b051004 100644 --- a/perl-xCAT/xCAT/PPCfsp.pm +++ b/perl-xCAT/xCAT/PPCfsp.pm @@ -1513,12 +1513,18 @@ sub spdump { $dump_setting = 0; } if ( $res->content !~ /$button/ ) { - return( [RC_ERROR,"'$button' button not found"] ); + ################################################################# + # For some firmware levels, button is changed to "initiate dump" + ################################################################# + $button = "Initiate dump"; + if ( $res->content !~ /$button/ ) { + return( [RC_ERROR,"'$button' button not found"] ); + } } ###################################### # We will lose conection after dump ###################################### - $ua->timeout(5); + $ua->timeout(10); ###################################### # Send dump command @@ -1526,7 +1532,7 @@ sub spdump { $res = $ua->post( "https://$server/cgi-bin/cgi", [ form => $id, bdmp => $dump_setting, - dump => "Save settings and initiate dump" ] + dump => $button ] ); ###################################### # Will lose connection on success -500