ProLiant Servers (ML,DL,SL)
1819987 Members
3543 Online
109608 Solutions
New Discussion

iLO Redfish API to get SmartStorageBattery status

 
BradV
Esteemed Contributor

iLO Redfish API to get SmartStorageBattery status

I can see the smartstoragebattery discussed in ilo-rest-api-docs/ilo5/ but no concrete examples of how to actually retrieve the data.  Does anyone have an example?

6 REPLIES 6
support_s
System Recommended

Query: iLO Redfish API to get SmartStorageBattery status

BradV
Esteemed Contributor

Re: Query: iLO Redfish API to get SmartStorageBattery status

Neither of those are relevant.

Bunsol
HPE Pro

Re: iLO Redfish API to get SmartStorageBattery status

See if the below link helps:-

https://support.hpe.com/hpesc/public/docDisplay?docId=a00019059en_us&page=GUID-18B36C1E-283C-452B-A532-D5F58A967AB4.html

Configuration>>Redfish.

These are the only options  i see. You can check the model of the controller installed and check under its user guide to verify the commands available.


If you feel this was helpful please click the KUDOS! Thumbs below!

I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
BradV
Esteemed Contributor

Re: iLO Redfish API to get SmartStorageBattery status

@Bunsol 

I have explored all around that area.  Nothing shows anything about the battery.  Not sure why the reference says it is there, but it really isn't?  I have a ticket open for it.  Hopefully we can find an answer. 

I did check the types of array controllers we have with:

 

RAID=$(mktemp)
for SERVER in my-server-r{1..4}-n{1..23}.myorg;do
   ACTV=$(python -c "import urllib, sys; print urllib.quote(sys.argv[1])"'serverName' = '${SERVER}'\"")
   UUID=$(curl --insecure --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" --silent \
      --request GET ${OneView}/rest/server-hardware?filter=${ACTV} | jq -r '.members[] | .uuid'})
   curl --silent --insecure --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" \
      --request GET ${OneView}/rest/server-hardware/${UUID}?expand=all | \
   jq --arg SRV ${SERVER} -r '.subResources.Devices.data[] | select(.Location=="Embedded RAID") | {"Server":$SRV,"Location":.Location,"Name":.Name,"PartNumber":.PartNumber,"ProductVersion":.ProductVersion,"SerialNumber":.SerialNumber,?Status":.Status}' | tee -a ${RAID}
done

 

We have two types:

E208i-a and P408i-a.  So, I'll see if there is anything specific about those two.

Bunsol
HPE Pro

Re: iLO Redfish API to get SmartStorageBattery status

The battery status can be checked via ILO however if the information is very much required over API then request you to please follow the open ticket as guide does not give complete information. This might require testing and answer to if it is an option or not as the controller user guide shared earlier does not show this option. 


If you feel this was helpful please click the KUDOS! Thumbs below!

I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
BradV
Esteemed Contributor

Re: iLO Redfish API to get SmartStorageBattery status

Guys, let's put in a pin in this one for a few months.  I was helping another member of our team that found 20-some servers with bad batteries.  That is when I started trying to investigate how to detect.  However, I did not realize he found those on Apollo servers with no iLO.  I was testing against our DL380 and DL560s.  We do have some DL385s that will have storage batteries that should be installed soon.  So, I can test against those when they get powered on and ip'd.  I'll report back what I find.  Sorry for any confusion.