
UNSOLVED
BM
brian.mcgee
3 Posts
0
1157
October 8th, 2019 07:00
Refresh device status with OME Rest API
I am writing a program that uses the OME Rest API (version 1.01) to get the current device PowerState, and schedule a PowerState control job based upon the current PowerState. I am finding that if the PowerState was last changed using the iDRAC console, that OME does not have the correct current PowerState. As a result, the job will fail if it tries to Power On a device that is already Powered On.
If I refresh status from the OME gui, the PowerState is now correct. Is there a way to use the API to refresh status for a specific device? I can then do this in code before getting current device PowerState so that I know its accurate before scheduling the PowerState control job. Alternatively, is there a way to increase the frequency in which device status is automatically refreshed?
Responses (0)
Solutions (0)
