dell / iDRAC-Redfish-Scripting

Python and PowerShell scripting for Dell EMC PowerEdge iDRAC REST API with DMTF Redfish
GNU General Public License v2.0
606 stars 279 forks source link

Dell firmware update using redfish API - for 13G and 14G servers #82

Closed aviv12825 closed 4 years ago

aviv12825 commented 5 years ago

Hi,

I'm trying to find a way to update the servers components firmwares to latest firmware using the redfish api - maybe as a repo with or without catalog.xml file for 13G & 14G servers ?

Maybe somthing like this: https://www.dell.com/support/article/us/en/19/sln309728/dell-poweredge-how-to-update-the-firmware-via-https-connection-to-idrac?lang=en

Thanks Aviv

texroemer commented 5 years ago

Hi @aviv12825

For Redfish performing Repository updates, use OEM script "InstallFromRepositoryREDFISH.py". Example below is executing the script pointing to the Dell downloads HTTPS site which you can also use. Script will check the Dell downloads site and for any device which detects a firmware difference, it will update.

C:\Python27>InstallFromRepositoryREDFISH.py -ip 100.65.242.195 -u root -p calvin -i y --ipaddress 143.166.147.76 --sharetype HTTPS --applyupdate True --rebootneeded True

ShareType: HTTPS RebootNeeded: True ApplyUpdate: True IPAddress: 143.166.147.76

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736759140333 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [u'NA'] PercentComplete: 100 CompletionTime: 2019-11-13T14:24:31 MessageArgs@odata.count: 1 StartTime: TIME_NOW MessageId: RED001 Message: Job completed successfully. EndTime: None Id: JID_736759140333 JobType: RepositoryUpdate Name: Repository Update

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736759279421 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [] PercentComplete: 100 CompletionTime: 2019-11-13T14:24:30 MessageArgs@odata.count: 0 StartTime: TIME_NOW MessageId: PR19 Message: The specified job has completed successfully. EndTime: TIME_NA Id: JID_736759279421 JobType: FirmwareUpdate Name: Firmware Update: BIOS

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736759541406 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [] PercentComplete: 100 CompletionTime: 2019-11-13T14:24:30 MessageArgs@odata.count: 0 StartTime: TIME_NOW MessageId: PR19 Message: Job completed successfully. EndTime: TIME_NA Id: JID_736759541406 JobType: FirmwareUpdate Name: Firmware Update: Serial ATA

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736759753446 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [] PercentComplete: 100 CompletionTime: 2019-11-13T14:24:30 MessageArgs@odata.count: 0 StartTime: TIME_NOW MessageId: PR19 Message: Job completed successfully. EndTime: TIME_NA Id: JID_736759753446 JobType: FirmwareUpdate Name: Firmware Update: Firmware

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736759915255 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [] PercentComplete: 100 CompletionTime: 2019-11-13T14:13:25 MessageArgs@odata.count: 0 StartTime: TIME_NOW MessageId: RED001 Message: Job completed successfully. EndTime: None Id: JID_736759915255 JobType: FirmwareUpdate Name: Firmware Update: Diagnostics

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736760128111 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [] PercentComplete: 100 CompletionTime: 2019-11-13T14:15:24 MessageArgs@odata.count: 0 StartTime: TIME_NOW MessageId: RED001 Message: Job completed successfully. EndTime: None Id: JID_736760128111 JobType: FirmwareUpdate Name: Firmware Update: Drivers for OS Deployment

@odata.type: #DellJob.v1_0_2.DellJob JobState: Completed Description: Job Instance TargetSettingsURI: None @odata.id: /redfish/v1/Managers/iDRAC.Embedded.1/Jobs/JID_736766716864 @odata.context: /redfish/v1/$metadata#DellJob.DellJob MessageArgs: [] PercentComplete: 100 CompletionTime: 2019-11-13T14:27:24 MessageArgs@odata.count: 0 StartTime: TIME_NOW MessageId: RED001 Message: Job completed successfully. EndTime: None Id: JID_736766716864 JobType: FirmwareUpdate Name: Firmware Update: iDRAC with Lifecycle Controller

C:\Python27>