From 4936c5bf4d36e645ef5ae94fa40471be38e6659f Mon Sep 17 00:00:00 2001 From: xq2005 Date: Wed, 8 May 2013 09:53:19 +0000 Subject: [PATCH] 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 --- xCAT-server/lib/perl/xCAT/SvrUtils.pm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/xCAT-server/lib/perl/xCAT/SvrUtils.pm b/xCAT-server/lib/perl/xCAT/SvrUtils.pm index 23374b101..959783b44 100644 --- a/xCAT-server/lib/perl/xCAT/SvrUtils.pm +++ b/xCAT-server/lib/perl/xCAT/SvrUtils.pm @@ -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);