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:
parent
b13e95a70b
commit
5463dcdfa5
@ -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