Start a Conversation

Solved!

Go to Solution

677

September 8th, 2022 08:00

Updating multiples server iDRACs firmware via Powershell

Hello all,

I want to create a custom script to update our Servers iDRAC FW by calling the following command file:

 

PS C:\Users\Administrator\Desktop> racadm -r 100.100.xx.xx -u root -p calvin --nocertwarn update -f iDRAC-with-Lifecycle-Controller_Firmware_XXXX_WN64_x.xx.00.00_X31.EXE

 

How can I add more than one server? Is there any way to use a text file with the ip of the servers I want to update?

thanks

4 Operator

 • 

1.8K Posts

September 8th, 2022 23:00

try something like

@echo off
setlocal
setlocal EnableDelayedExpansion
setlocal EnableExtensions
set IDRAC_IPS=100.100.1.1 100.100.1.2 100.100.1.3
for %%s in (%IDRAC_IPS%) do (
echo Task: start update on %%s
racadm -r %%s -u root -p calvin --nocertwarn update -f iDRAC-with-Lifecycle-Controller_Firmware_XXXX_WN64_x.xx.00.00_X31.EXE

 

4 Posts

September 8th, 2022 13:00

Hi Chris,

Thanks for replying.  Unfortunately using OpenManage Enterprise to update with is not an option for me as the model of the servers I want to upgrade is Precision 7920. There is no baseline or way to upgrade via OME. 

Moderator

 • 

8.6K Posts

September 8th, 2022 13:00


LizKeen,

 

I am not sure if this is an option to you, but what I would suggest is that you use OpenManage Enterprise to update with, as it allows you to push updates to multiple servers that you are monitoring at once.
You can read more about, and download, OpenManage Enterprise here.

 

If this isn't an option let me know.

 

 

4 Operator

 • 

3K Posts

September 8th, 2022 19:00

racadm does not support providing text file with IP's as input. You need to write a script to parse the file and execute the racadm command

4 Posts

September 9th, 2022 05:00

Thank you. Your solution was useful to me.

4 Operator

 • 

1.8K Posts

September 9th, 2022 05:00

You are welcome.

No Events found!

Top