Closed oliverwolfat closed 3 years ago
Hi @lupuscon
I fixed the cmdlet issue and have made multiple updates (see below)
Example of running updated cmdlet.
PS C:\> Set-MultipleBIOSAttributesREDFISH -idrac_ip 192.168.0.120 -idrac_username root -idrac_password calvin -attribute_names "MemTest,EmbSata,PxeDev2EnDis,PxeDev3EnDis,PxeDev4EnDis" -attribute_values "Enabled,RaidMode,Disabled,Disabled,Disabled" -reboot_server y
- INFO, cmdlet will set BIOS attributes:
Name Value
---- -----
MemTest Enabled
EmbSata RaidMode
PxeDev3EnDis Disabled
PxeDev4EnDis Disabled
PxeDev2EnDis Disabled
- PASS, PATCH command passed to set attribute pending values and create job ID
- PASS, JID_238889922045 job ID successfully marked as scheduled
- INFO, server power state ON, performing graceful shutdown
- PASS, statuscode 204 returned to gracefully shutdown the server
- PASS, verified server is in OFF state
- PASS, statuscode 204 returned successfully to power ON the server
- WARNING, cmdlet will now poll job ID every 30 seconds until marked completed
- INFO, current job status is: Task successfully scheduled.
- INFO, current job status is: Task successfully scheduled.
- INFO, current job status is: Task successfully scheduled.
- INFO, current job status is: Task successfully scheduled.
- INFO, current job status is: Job in progress.
- INFO, current job status is: Job in progress.
- INFO, current job status is: Job in progress.
- INFO, current job status is: Job in progress.
- INFO, current job status is: Job in progress.
- INFO, current job status is: Job completed successfully.
- PASS, JID_238889922045 job ID marked as completed!
Job completed in @{Minutes=5; Seconds=17}
Hi @texroemer Excellent work! I was able to verify this with my script. Thank you very much.
Powershell-Module: Set-MultipleBIOSAttributesREDFISH
Script-Snippet:
Expected Result:
WARNING, attribute SysProfile current value is: PerfPerWattOptimizedDapc, setting pending value to: PerfOptimized
WARNING, attribute SecureBoot current value is: Disabled, setting pending value to: Enabled
WARNING, attribute WorkloadProfile current value is: NotAvailable, setting pending value to: VtOptimizedProfile
PASS, statuscode 200 returned to successfully set attributes pending value
Values should be set according to the content of multiple_bios_attributes.txt
Actual Result:
WARNING, attribute SysProfile current value is: PerfPerWattOptimizedDapc, setting pending value to: PerfOptimized
WARNING, attribute SecureBoot current value is: Disabled, setting pending value to: Enabled
WARNING, attribute WorkloadProfile current value is: NotAvailable, setting pending value to: VtOptimizedProfile
PASS, statuscode 200 returned to successfully set attributes pending value
Values are marked as Pending in the GUI