-Add another URL used by AMM firmware to present wvid parameters

git-svn-id: https://svn.code.sf.net/p/xcat/code/xcat-core/trunk@2632 8638fb3e-16cb-4fca-ae20-7b5d299a9bcd
This commit is contained in:
jbjohnso 2009-01-21 20:20:44 +00:00
parent c1798eb341
commit 86124e90bd

View File

@ -1814,6 +1814,9 @@ sub get_kvm_params {
my $ba;
unless (defined $destip and defined $rbs) { #Try another way
$response = $browser->get("http://$mpa/private/remotecontrol.js.php");
if ($response->{_rc} == 404) { #In some firmwares, its "shared" instead of private
$response = $browser->get("http://$mpa/shared/remotecontrol.js.php");
}
$html = $response->{_content};
foreach (split /\n/,$html) {
if (/<param\s+name\s*=\s*"?([^"]*)"?\s+value\s*=\s*"?([^"]*)"?/i) {