dell / iDRAC-Redfish-Scripting

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

Improvement Ideas #162

Closed EugenStelea closed 3 years ago

EugenStelea commented 3 years ago

Greetings! First of all thank you for this great repo! It's really useful, and I use a lot of modules / functions. However, there are some things that can be improved in my opinion.

  1. The structure seems to be overcomplicated. Why having a lot of psm1 files, each one in it's own folder and not a single module with all the functions included? It would be a lot easier to maintain (from a customer perspective). I ended up creating my own module where I copied all the functions I use from this repo. But if a function gets updated, I have download it and update my module as well. I see the same (more or less) modules published individually on PowerShell gallery. A single module with all functions built-in would be a great plus.

  2. I have a little problem with the output of the functions. For example, this is the output of the Get-StorageInventoryRedfish function:

- PASS, statuscode 200 returned successfully to get storage controller(s)

- Server controllers detected -

RAID.Slot.6-1
AHCI.Embedded.1-1
AHCI.Embedded.2-1

The "useful" data is mixed with the REST Status code and some other text. Is it very tricky to:

Of course, I can simply take the code blocks that I need and use them however I want, but it is time consuming and if there will be any change in the API, I would have to start from scratch. This is meant to be constructive feed-back and I hope it is not off-topic. Many thanks again!

texroemer commented 3 years ago

Hi @EugenStelea

Thank you for the feedback, will work on incorporating this to improve Powershell support.

Thanks

texroemer commented 3 years ago

Hi @EugenStelea

Wanted to give you an update on improving the cmdlets, i created IdracRedfishSupport module which will load all cmdlets available on GitHub. This module is also available on Powershell gallery to install.

For each cmdlet loaded, i added Get-Credential and X-auth token session support to execute them besides using iDRAC username and password arguments. The are also multiple new cmdlets uploaded (Few examples: launch remote kvm session, export video log, generate CSR).

Thanks Tex

EugenStelea commented 3 years ago

Hi, @texroemer Looking good! Thank you!