-Accomodate disparate AMMs a bit more readily in rvid
-Accomodate a few more AMM firmware revisions git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2535 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
parent
6035f4b0e5
commit
342ac47dd3
@ -1,8 +1,9 @@
|
||||
#!/bin/sh
|
||||
# IBM(c) 2007 EPL license http://www.eclipse.org/legal/epl-v10.html
|
||||
mkdir -p /tmp/xcat
|
||||
if [ ! -f /tmp/xcat/$rvid_server.remotekvm.jar ]; then
|
||||
wget -O /tmp/xcat/$rvid_server.remotekvm.jar http://$rvid_server/private/remotekvm.jar
|
||||
fi
|
||||
|
||||
java -jar /tmp/remotekvm.jar -s $rvid_server -r $rvid_authtoken -b $rvid_slot >& /dev/null
|
||||
java -jar /tmp/xcat/$rvid_server.remotekvm.jar -s $rvid_server -r $rvid_authtoken -b $rvid_slot >& /dev/null
|
||||
rm /tmp/xcat/rvid_server.remotekvm.jar
|
||||
|
@ -1792,6 +1792,20 @@ sub get_kvm_params {
|
||||
}
|
||||
}
|
||||
}
|
||||
unless (defined $destip and defined $rbs) { #Try another way
|
||||
$response = $browser->get("http://$mpa/private/remotecontrol.js.php");
|
||||
foreach (split /\n/,$html) {
|
||||
if (/<param\s+name\s*=\s*"([^"]*)"\s+value\s*=\s*"([^"]*)"/i) {
|
||||
if ($1 eq 'ip') {
|
||||
$destip=$2;
|
||||
} elsif ($1 eq 'rbs') {
|
||||
$rbs = $2;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
return ($destip,$rbs);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user