Fixed bug in getmacs.

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@14484 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2012-11-29 21:20:23 +00:00
parent cc2148cedd
commit da8c8acee0

View File

@ -4728,7 +4728,7 @@ sub getMacs {
xCAT::zvmCPUtils->loadVmcp($node);
# Get xCat MN Lan/VSwitch name
my $out = `vmcp q v nic | egrep -i "VSWITCH|LAN"`;
my $out = `ssh -o ConnectTimeout=5 $hcp "vmcp q v nic" | egrep -i "VSWITCH|LAN"`;
my @lines = split( '\n', $out );
my @words;