Hi,
I am trying to Make a PS Skript to change the boot order for a C-Server (standalone).
Actually I would like to "press" F6 "automatically", so in fact change the boot order on the rackserver
I have server with usb stick on it with the boot image. Normaly the boot from RAID Controller, but when I have to set up the server newly I press F6 during the boot phase and then I choose the image on the USB Stick. This takes always a long time, waiting for the boot, pressing F6 etc.
I am tring to figure, out if I could automate this using PS IMC. I wrote code to start/stop the Rackserver, opening KVM Console etc.
What I am searing for, is the possibility to change the boot order in the Bios. I even tried a few Set commands but I was not lucky..
Again: I do not have the Rack Server attached to an FI, the are standaloe Rack Servers.
Thanks for any hint!
Best regards
Melika
Take a look at the IMC Power Tool User Guide for some examples and how to make use of the cmdlets. A few examples of setting boot order are seen below:
Get-ImcLsbootDevPrecision -h | convertto-imccmdlet
$mo_1 = Get-ImcRackUnit -ServerId "1" | Get-ImcLsbootDevPrecision | Set-ImcLsbootDevPrecision -ConfiguredBootMode "Legacy" -Reapply "no" -RebootOnUpdate "no" -Force
Start-ImcTransaction
$mo_2 = $mo_1 | Add-ImcLsbootHdd -Name "RAID1_12" -Order 1 -State "Enabled" -Type "LOCALHDD"
$mo_3 = $mo_1 | Add-ImcLsbootVMedia -Name "CIMCDVD" -Order 2 -State "Enabled" -Type "VMEDIA"
Complete-ImcTransaction -Force
Get-ImcLsbootDevPrecision | Add-ImcLsbootHdd -Name "RAID1_12" -Order 1 -State "Enabled" -Type "LOCALHDD"
Get-ImcLsbootDevPrecision | Add-ImcLsbootVMedia -Name "CIMCDVD" -Order 2 -State "Enabled" -Type "VMEDIA" **This will add the first boot device for precision boot as USB.
Please let me know when the problem is solved!