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

redfish python script for setting lifecycle controller to disabled #179

Closed kirthi2468 closed 3 years ago

kirthi2468 commented 3 years ago

Hi,

I was wondering if you could add a python script for setting the lifecycle controller job to disabled in iDRAC

Boot to BIOS setup, select iDRAC settings -> Lifecycle Controller -> (option to toggle between enabled and disabled for lifecycle controller)

iDRAC
texroemer commented 3 years ago

Hi @kirthi2468

Scripts "GetIdracLcSystemAttributesREDFISH.py" and "SetIdracLcSystemAttributesREDFISH.py" can be leveraged to Enable / Disable Lifecycle Controller.

Example:

C:\Python39>GetIdracLcSystemAttributesREDFISH.py -ip 192.168.0.120 -u root -p calvin -g lc -an LCAttributes.1.LifecycleControllerState

Attribute Name: LCAttributes.1.LifecycleControllerState, Current Value: Enabled

C:\Python39>SetIdracLcSystemAttributesREDFISH.py -ip 192.168.0.120 -u root -p calvin -s lc -an LCAttributes.1.LifecycleControllerState -av Disabled

- INFO, configuring "LC" attributes

 Attribute Name: LCAttributes.1.LifecycleControllerState, setting new value to: Disabled

- PASS, PATCH command passed to successfully set "LC" attribute(s), status code 200 returned

- INFO, getting new attribute current values

Attribute Name: LCAttributes.1.LifecycleControllerState, Attribute Value: Disabled

C:\Python39>GetIdracLcSystemAttributesREDFISH.py -ip 192.168.0.120 -u root -p calvin -g lc -an LCAttributes.1.LifecycleControllerState

Attribute Name: LCAttributes.1.LifecycleControllerState, Current Value: Disabled