dell / iDRAC-Redfish-Scripting

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

ExportTechSupportReportREDFISH.py module doesnot work for iDRAC 9 #78

Closed aizazmak closed 4 years ago

aizazmak commented 4 years ago

Why ExportTechSupportReportREDFISH.py module doesnot work for iDRAC9 ? How can this be achieved for iDRAC9 servers ? Is their any alternative in place ?

texroemer commented 4 years ago

Hi @aizazmak

For ExportTechSupportReport script to work, you must have at minimum iDRAC9 version 3.30 installed. 3.30 iDRAC is the version Dell added support for this feature. Latest current iDRAC 9 version posted on Dell support site is 3.34.

Example below running the script on iDRAC 3.34 version:

C:\Python27>racadm -r 192.168.0.120 -u root -p calvin --nocertwarn getversion Bios Version = 2.2.11

iDRAC Version = 3.34.34.34

Lifecycle Controller Version = 3.34.34.34

IDSDM Version = NA

C:\Python27>ExportTechSupportReportREDFISH.py -ip 192.168.0.120 -u root -p calvin --ipaddress 192.168.0.130 --sharetype NFS --sharename /nfs --dataselectorarrayin 3

ShareType: NFS ShareName: /nfs DataSelectorArrayIn: ['TTYLogs'] IPAddress: 192.168.0.130

--- PASS, Final Detailed Job Status Results ---

JobState: Completed Description: Job Instance CompletionTime: 2019-10-01T11:34:09 PercentComplete: 100 StartTime: TIME_NOW MessageId: SRV088 Message: The SupportAssist Collection and Transmission Operation is completed successfully. EndTime: None Id: JID_699475342139 JobType: SACollectExportHealthData Name: SupportAssist Collection

aizazmak commented 4 years ago

Is it possible to generate & download the TSR logs for iDRACs on lower FW version ? Any REST / Redfish API that would be used for them ?

texroemer commented 4 years ago

If you have iDRAC version older than 3.30 installed, using Redfish to get TSR is not supported. But iDRAC CLI RACADM command does support getting TSR logs on older versions.

C:\Python27>racadm -r 192.168.0.120 -u root -p calvin --nocertwarn help techsupreport

Techsupreport -- Tech Support Report operations.

Techsupreport has multiple subcommands, view the help as shown below.

Usage:

racadm techsupreport help collect racadm techsupreport help export racadm techsupreport help getupdatetime racadm techsupreport help updateosapp


For help on viewing the properties of a group, run the command - racadm help get For help on configuring the properties of a group, run the command - racadm help set