HewlettPackard / python-hpOneView

DEPRECATED - no longer actively maintained. New repository: https://github.com/HewlettPackard/oneview-python
MIT License
87 stars 57 forks source link

Get Info for fan failure, array controller failure, smart storage battery status low or dead #438

Open Imranatnisum opened 5 years ago

Imranatnisum commented 5 years ago

Scenario/Intent

Is it possible to find Fans failure,Array Controller failure,Smart Storage Battery Status low or dead, Hard drive degraded or dead by api calls.

Environment Details

sijeesh commented 5 years ago

@Imranatnisum , Sorry for the late replay. After a quick search, I got the below info from the API doc.

For fan status use enclosure get method - status will be Critical - Needs immediate attention. Disabled - The resource is currently not operational. OK - Indicates normal/informational behavior. Unknown - The health status is not yet known or cannot be determined. Warning - Needs attention soon. Hard drive - refer "drive enclosure" resource

I am not able to see any direct call to get status of Array controller and storage battery but I believe most of the resource status info you can get from the Alert API call.