mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-10-31 11:22:27 +00:00 
			
		
		
		
	fixed one getmac issue for linux
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@3775 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		| @@ -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 ) { | ||||
|   | ||||
		Reference in New Issue
	
	Block a user