HewlettPackard / python-redfish-utility

Python-based utility for interacting with devices supporting a Redfish Service
Other
86 stars 41 forks source link

Enhancement: Add a `delete` sub-command to the `ilolicense` iLO macro command #50

Closed donzef closed 1 year ago

donzef commented 2 years ago

Seen a request for deleting a license in Slack.

It could be nice to be able to perform this operation with iLOrest. Something like:

ilorest ilolicense delete 1 where 1 is the Id of the license to delete.

Thanks, François

rajeevkallur commented 2 years ago

we will check this.

donzef commented 2 years ago

Thanks.

I just noticed that using ilolicense with no argument lists the properties of the installed licenses (not formerly mentioned in the doc!). Since the Id property may be different from the {item} of the @data.id property, it would be good to print as well the @data.id of the installed licenses. Something like:

ilorest ilolicense @data.id: /redfish/Managers/1/LicenseService/1 Id: 1 Code: Message: ...

sahanaramavana commented 2 years ago

Hi @donzef ,

iLOlicense has been added with delete command for deletion of the license . This will be part of 3.6 and 4.0 versions of iLOrest .

Thanks & Regards, iLORest Team

donzef commented 2 years ago

Thanks, I'll give it a try when available and close this issue accordingly.