Check more directly for location of arp (TODO: stop using arp, use ip neigh)

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@16234 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2013-05-10 13:29:23 +00:00
parent 58dc034d02
commit e1a21649ff
5 changed files with 5 additions and 5 deletions

View File

@ -4297,7 +4297,7 @@ sub process_request {
my $mac;
my $ip = $request->{'_xcat_clientip'};
my $arptable;
if ( -e "/etc/debian_version" ) {
if ( -x "/usr/sbin/arp" ) {
$arptable = `/usr/sbin/arp -n`;
}
else{

View File

@ -690,7 +690,7 @@ sub process_request {
my $mac;
my $ip = $request->{'_xcat_clientip'};
my $arptable;
if ( -e "/etc/debian_version") {
if ( -x "/usr/sbin/arp") {
$arptable = `/usr/sbin/arp -n`;
}
else{

View File

@ -1438,7 +1438,7 @@ sub findme{
xCAT::MsgUtils->message('S', "Profield nodes discover: _xcat_clientip is $ip.\n");
my $mac = '';
my $arptable;
if ( -e "/etc/debian_version" ){
if ( -x "/usr/sbin/arp" ){
$arptable = `/usr/sbin/arp -n`;
}
else {

View File

@ -72,7 +72,7 @@ sub findme {
return;
}
my $arptable;
if ( -e "/etc/debian_version") {
if ( -x "/usr/sbin/arp") {
$arptable = `/usr/sbin/arp -n`;
}
else{

View File

@ -131,7 +131,7 @@ sub process_request {
return;
}
my $arptable;
if ( -e "/etc/debian_version") {
if ( -x "/usr/sbin/arp") {
$arptable = `/usr/sbin/arp -n`;
}
else{