Changed the way the MAC address is found by using "QUERY VIRTUAL NIC".

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@7973 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
phamt 2010-10-29 12:32:41 +00:00
parent 1dfc9549b1
commit a9f65cdcd2

View File

@ -1653,7 +1653,7 @@ sub makeVM {
# Get HCP MAC address
# The HCP should only have (1) network and (1) MAC address
xCAT::zvmCPUtils->loadVmcp($hcp);
$out = `ssh -o ConnectTimeout=5 $hcp "vmcp q nic" | grep "MAC:"`;
$out = `ssh -o ConnectTimeout=5 $hcp "vmcp q v nic" | grep "MAC:"`;
if ($out) {
@lines = split( "\n", $out );
@words = split( " ", $lines[0] );