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:
parent
f6e8475fc0
commit
4936c5bf4d
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user