mirror of
				https://github.com/xcat2/xcat-core.git
				synced 2025-11-03 21:02:34 +00:00 
			
		
		
		
	arp command location is different between redhat and debian/ubuntu
git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16218 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
		@@ -1121,7 +1121,12 @@ sub get_mac_by_arp ()
 | 
			
		||||
            if ( xCAT::Utils->isAIX() ) {
 | 
			
		||||
                $output = `/usr/sbin/arp -a`;
 | 
			
		||||
            } else {
 | 
			
		||||
                $output = `/sbin/arp -n`;
 | 
			
		||||
                if ( -e "/etc/debian_version" ) {
 | 
			
		||||
                    $output = `/usr/sbin/arp -n`;
 | 
			
		||||
                }
 | 
			
		||||
                else {
 | 
			
		||||
                    $output = `/sbin/arp -n`;
 | 
			
		||||
                }
 | 
			
		||||
            }
 | 
			
		||||
 | 
			
		||||
            my ($ip, $mac);
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user