close the ping test for the fsp temporarily

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@8753 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
daniceexi 2011-01-27 09:09:18 +00:00
parent 4f1f73c6fd
commit 40bab2334e

View File

@ -236,14 +236,14 @@ sub renergy {
my $hcp_type = xCAT::DBobjUtils->getnodetype($hcphost);
my $user;
my $password;
if ($hcp_type == "hmc") {
if ($hcp_type eq "hmc") {
($user, $password) = xCAT::PPCdb::credentials($hcphost, $hcp_type);
} else {
($user, $password) = xCAT::PPCdb::credentials($hcphost, $hcp_type,'HMC');
}
my $fsps; #The node of fsp that belong to the cec
if ($hw_type == "cec") {
if ($hw_type eq "cec") {
$fsps = xCAT::DBobjUtils->getchildren($node);
if( !defined($fsps) ) {
return ([[$node, "Failed to get the FSPs for the cec $hcphost.", -1]]);
@ -265,7 +265,7 @@ sub renergy {
#my $resp = $request->{subreq}->({command => ['pping'], node => $fsps});
my $hcps = $hcphost;
if ($hw_type == "cec") {
if ($hw_type eq "cec") {
if (!$fsps) {
return ([[$node, "Cannot find fsp for the cec.", -1]]);
} else {
@ -285,6 +285,8 @@ sub renergy {
}
}
}
#just for temp that all hcp will be tried
@pingable_hcp = split(',', $hcps);
if (!@pingable_hcp) {
return ([[$node, "'No hcp can be pinged.", -1]]);
@ -313,8 +315,7 @@ sub renergy {
# Call the xCAT_cim_client to query or set the energy capabilities
$cmd .= " 2>&1";
#my @result = xCAT::Utils->runcmd("$cmd", -1);
my @result = ("a:1");
my @result = xCAT::Utils->runcmd("$cmd", -1);
foreach my $line (@result) {
chomp($line);