Unsolved

1 Rookie

 • 

5 Posts

3432

August 20th, 2020 10:00

Updating iDRAC firmware via Powershell

Hello all,

I've created a custom script to update our iDRAC FW by calling the following command file:

"C:\Program Files\Dell\SysMgt\rac5\racadm" -r %1 -u %2 -p %3 --nocertwarn update -f %4 >> %5

The parameters are defined as:

REM %1 IP of DRAC
REM %2 DRAC user
REM %3 DRAC USER password
REM %4 Firmware file name
REM %5 DRAC output

From what I can tell, it connects correctly to the iDRAC and the file gets uploaded, see the message piped out below:

The Copying Operation has begun,
This might take several minutes to complete, depending on the network.
Do not interrupt the operation.

 

Followed by:

 

ERROR: Session is not valid.

but the firmware update never actually completes. Is there some other argument I'm missing as part of this process? 

 

Thanks.

 

 

 

1 Rookie

 • 

30 Posts

August 21st, 2020 11:00

Hi ,

Greetings from Dell.

with the information shared you are trying for idrac firmware update through powershell.
The Arguments you have give is appropriate and exact.

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

The Copying Operation has begun,
This might take several minutes to complete, depending on the network.
Do not interrupt the operation.

This is instant output when we execute this command 
After this we need to wait for almost 5-6 min to get the output

RAC987: Firmware update job for iDRAC-with-Lifecycle-Controller_Firmware_XXX_WN64_X.XX.00.00_X31.EXE is initiated.
This firmware update job may take several minutes to complete depending on the
component or firmware being updated. To view the progress of the job, use the
"racadm jobqueue view" command. If the job is scheduled, the system will require a manual reboot.
To reboot the system manually, use the "racadm serveraction powercycle" command.

firmware version update above can be cross check with the command
PS C:\Users\Administrator\Desktop> racadm -r 100.100.XX.XX -u root -p calvin --nocertwarn getsysinfo
RAC Information:
RAC Date/Time = Wed Aug 12 16:23:35 2020

Firmware Version = XX.XX.00.00
Firmware Build = 31
Last Firmware Update = 08/21/2020 18:29:09
Hardware Version = 0.01
MAC Address = 4c:d9:8f:28:52:f6
SVC Tag = 7XXXX2

This is in cli mode of update.

we have in GUI mode as well. Just FYI
Go to the iDRAC console, Overview > iDRAC Settings > Update and Rollback > Update.
upload the downloaded file and click Install.
to cross check in GUI for the updated firmware version, Overview > Server > Properties > Summary to check the firmware version

In summary, command given is the right syntax, provided you the working output. Need to wait for some time.Meanwhile you can cross check in GUI whether update is happening or not. Maintenance Tab->job queue will give you the information.

JID_980523867772
Firmware Update: iDRAC with Lifecycle Controller
Completed (100%)
Message
RED001: Job completed successfully.

we can update through GUI as well.
pls let me know if this information helps you,

Thanks
Sirisha K
#IWork4Dell

1 Rookie

 • 

30 Posts

August 21st, 2020 19:00

Hi,

with the above information and output, still if you are facing the same issue,
can I get few clarifications

1. can you pls update the server model you are using
2. REM %4 Firmware file name - is it compatible firmware version for the server?
3. Need to check on Existing Firmware version
4. Error: Session is not valid, need to check for server Network connectivity/IP/Credentials

pls check on these points and let me know

Thanks
Sirisha K
#IWork4Dell

 

 

4 Operator

 • 

2.3K Posts

August 23rd, 2020 02:00

Just for the docs..... the "Powershell" is not involved in this and your custom script looks more like simple Batch which is totally fine. We have the same here

 

You should tell us what kind of poweredge server you have and more important which iDRAC version currently is in use. I ask because in some rare cased you cant upgrade an "old" version to the latest and some intermediate steps(versions) are needed.

For example. You cant upgrade an iDRAC 3.32 to something like 4.xx.. You need at minumum 3.34.

 

Regards,
Joerg

 

 

 

1 Rookie

 • 

5 Posts

August 26th, 2020 06:00

Thank you for the reply. This was for Dell XC630 servers.

We were able to successfully run the script against 10 servers as a test, which were running v 2.70 and going to v 2.75.

I'm not sure what the initial problem was, but I suspect the DRAC's were running an older version as mentioned, in this case it was v 2.30. We will trying upgrading in steps on those.

 

 

No Events found!

Top