diff --git a/xCAT-server/lib/perl/xCAT/PPC.pm b/xCAT-server/lib/perl/xCAT/PPC.pm index 386e6deb3..13de70c85 100644 --- a/xCAT-server/lib/perl/xCAT/PPC.pm +++ b/xCAT-server/lib/perl/xCAT/PPC.pm @@ -284,9 +284,14 @@ sub process_command { my $unreachable_nodes; my $noderange = join (',', @$nodes); my @output = xCAT::Utils->runcmd("pping $noderange", -1); + foreach my $line (@output) { my ($hostname, $result) = split ':', $line; - $node->{$hostname}->{reachable} = 1; + my ($token, $status) = split ' ', $result; + chomp($token); + if ($token eq 'ping') { + $node->{$hostname}->{reachable} = 1; + } } foreach ( @$nodes ) {