
} while ( $timeout -and $stat -ne "Up" )
if ( $timeout -eq 0) { throw 'DATACENTERTIMEOUT' }
#Approve any rhev hosts that are present
write "Approve any waiting RHEV Hypervisor hosts ..."
foreach ($candidate in select-host | ? {$_.Status -eq "Pending Approval"}) {
if ($candidate.Name -like "rhevh-01*") {
$candidate.PowerManagement.Enabled = $true
$candidate.PowerManagement.Address = "10.16.136.234"
$candidate.PowerManagement.Type = "ilo"
$candidate.PowerManagement.UserName = "Administrator"
$candidate.PowerManagement.Password = "24^goldA"
$updateHost = Update-Host -HostObject $candidate
}
$appHost = Approve-Host -HostObject $candidate -ClusterObject $clus
write-host $appHost.name was approved
}
At the end of this script, any RHEV-H hosts awaiting approval are approved. If a RHEV-H
host was installed prior to the installation of the RHEV Manager software, a reboot of the
RHEV-H communicates with the RHEV-M and marks itself as pending approval.
The script is called from the Start -> All Programs -> Red Hat -> RHEV Manager -> RHEV
Manager Scripting Library. In this PowerShell window, change the working directory to the
C:\saved directory and invoke the script.
cd C:\saved
./RHEVMInitConfig.ps1
www.redhat.com 124
Comentários a estes Manuais