arp command location is different between redhat and debian/ubuntu

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/branches/2.8@16219 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
xq2005 2013-05-08 09:53:19 +00:00
parent f6e8475fc0
commit 4936c5bf4d

View File

@ -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);