<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: REST API retrieve iLO thermal data in HPE OneView</title>
    <link>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178361#M7693</link>
    <description>&lt;P&gt;Thanks for that.&amp;nbsp; However, it only gives the inlet ambient temperature.&amp;nbsp; That only tells me how warm the air is going in to the server.&amp;nbsp; Also, there is an error in the documentation: &lt;A href="https://techlibrary.hpe.com/docs/enterprise/servers/oneview7.1/cicf-api/en/index.html#rest/server-hardware" target="_blank" rel="noopener"&gt;OneView REST API Reference 4200&lt;/A&gt; .&amp;nbsp; It shows using serial number:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET  https://{appl}/rest/server-hardware/USE7335NW3/utilization&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It needs to the the UUID.&amp;nbsp; I think the answer appears to be that OneView does not pull this temperature data back.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
    <pubDate>Mon, 28 Nov 2022 11:43:04 GMT</pubDate>
    <dc:creator>BradV</dc:creator>
    <dc:date>2022-11-28T11:43:04Z</dc:date>
    <item>
      <title>REST API retrieve iLO thermal data</title>
      <link>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7177969#M7669</link>
      <description>&lt;P&gt;I'm trying to find the correct REST API call to retrieve the thermal data from iLOs.&amp;nbsp; I can get it via the redfish API, but would rather like to see if I can get it directly from OneView.&amp;nbsp; Using Redfish API:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;i=1
TMP=$(mktemp)
for SERVER in my-server-r{1..2}-n{1..12}.myorg.com; do
   echo "Getting thermal data from ${SERVER}"
   UUID=$(jq -r '.members[] | select(.serverName=="'${SERVER}'") | "\'(.uuid)"' ${HARDW}
   read iLOSSO iLOAuth &amp;lt;&amp;lt;&amp;lt; $(curl --insecure --silent --header "X-API-Version: ${currentVersion}" \
     --header "auth: ${sessionID}" --request GET ${OneView}/rest/server-hardware/${UUID}/remoteConsoleUrl | \
     jq -r '.remoteConsoleUrl' | sed -e 's|hplocons|https' -e 's|addr=||' -e 's|^\(.*\)&amp;amp;sessionkey=\(.*\)$|\1 \2')
   curl --insecure --silent --output thermal${i} --header "X-Auth-Token: ${iLOAuth}" --request GET ${iLOSSO}/redfish/v1/chassis/1/thermal
   jq '. + { "serverName": "'${SERVER}'" }' thermal${i} &amp;gt; ${TMP}
   cat ${TMP} &amp;gt; thermal${i}
   ((i++))
done
#
((i--))
j=${i}
THERMAL=thermal
CMD=""
for (( i=1; i&amp;lt;=${j}; i++ )); do
   CMD="${CMD} ${THERMAL}${i}"
done
cat $(echo "${CMD}") &amp;gt; ${THERMAL}
/bin/rm ${THERMAL}? ${THERMAL}?? ${TMP}
#
jq -r '.serverName as $name | .Temperatures[] | { "serverName": $name,"Name":.name,"PhysicalContext":.PhysicalContext,"ReadingCelsius":.ReadingCelsius }' ${THERMAL}&lt;/LI-CODE&gt;&lt;P&gt;If anyone has insights on how to retrieve from OneView, I'd love to hear it.&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 01:07:36 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7177969#M7669</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-11-28T01:07:36Z</dc:date>
    </item>
    <item>
      <title>Query: REST API retrieve iLO thermal data</title>
      <link>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7177991#M7670</link>
      <description>&lt;P style="margin: 0;"&gt;&lt;STRONG&gt;System recommended content:&lt;/STRONG&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;1. &lt;A href="https://hpe.to/6607MNMM3" target="_blank" rel="noopener"&gt;Advisory: HPE Integrated Lights-Out 5 (iLO 5) - HTTP GET for the iLO REST RedFish API /redfish/v1/systems/1/ethernetinterfaces/&amp;lt; item&amp;gt;/ may Return a 500 HTTP Error&lt;/A&gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Please click on "Thumbs Up/Kudo" icon to give a "Kudo".&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Thank you for being a HPE valuable community member.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 14:07:30 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7177991#M7670</guid>
      <dc:creator>support_s</dc:creator>
      <dc:date>2022-11-21T14:07:30Z</dc:date>
    </item>
    <item>
      <title>Re: Query: REST API retrieve iLO thermal data</title>
      <link>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178007#M7671</link>
      <description>&lt;P&gt;I have no idea whom posted that alert.&amp;nbsp; It had nothing to do with my question.&amp;nbsp; I gave a redfish example of how I retrieve iLO thermal data - not ethernet interfaces.&amp;nbsp; And I asked how to get the information through the OneView REST API and not using iLO Redfish API.&lt;/P&gt;</description>
      <pubDate>Mon, 21 Nov 2022 15:16:06 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178007#M7671</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-11-21T15:16:06Z</dc:date>
    </item>
    <item>
      <title>Re: REST API retrieve iLO thermal data</title>
      <link>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178232#M7685</link>
      <description>&lt;P style="margin: 0;"&gt;Establish a session with oneview using REST client.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Add below headers.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;X-API-Version - 3200 (Based on OV Version)&lt;BR /&gt;Content Type - application/json&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Add below content to Body:&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "userName":"Administrator",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "password":"Password"&lt;BR /&gt;}&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Note: use the correct credentials.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Use the Method as POST and URL : POST: https://&amp;lt;Appliance IP&amp;gt;/rest/login-sessions&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Response should be 200 OK.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;You will get a session ID under response.&amp;nbsp;&lt;BR /&gt;Use the session ID and another header as below.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Auth&lt;BR /&gt;&amp;lt;Session ID&amp;gt;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Then use the below command to retrieve the temperature of the server.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;https:///rest/server-hardware//utilization?fields=AmbientTemperature&amp;amp;view=hour&lt;/P&gt;
&lt;P style="margin: 0;"&gt;This will retrieve the Ambient Temperature of the server per hour.&lt;/P&gt;
&lt;P style="margin: 0;"&gt;You can also change the view=day.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&lt;BR /&gt;The output looks like this.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;{&lt;BR /&gt;&amp;nbsp; "refreshTaskUri": null,&lt;BR /&gt;&amp;nbsp; "uri": "/rest/server-hardware/",&lt;BR /&gt;&amp;nbsp; "resolution": 86400000,&lt;BR /&gt;&amp;nbsp; "sliceStartTime": "2022-11-16T00:00:00.000Z",&lt;BR /&gt;&amp;nbsp; "sliceEndTime": "2022-11-25T00:00:00.000Z",&lt;BR /&gt;&amp;nbsp; "newestSampleTime": "2022-11-24T07:40:00.000Z",&lt;BR /&gt;&amp;nbsp; "oldestSampleTime": "2022-11-16T03:45:00.000Z",&lt;BR /&gt;&amp;nbsp; "isFresh": true,&lt;BR /&gt;&amp;nbsp; "metricList": [{&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "metricName": "AmbientTemperature",&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "metricSamples": [&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1669248000000, 22],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1669161600000, 21],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1669075200000, 21],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1668988800000, 16],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1668902400000, 19],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1668816000000, 22],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1668729600000, 18],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1668643200000, 17],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; [1668556800000, 20]&lt;BR /&gt;&amp;nbsp; &amp;nbsp; ],&lt;BR /&gt;&amp;nbsp; &amp;nbsp; "metricCapacity": 35&lt;BR /&gt;&amp;nbsp; }]&lt;BR /&gt;}&lt;/P&gt;
&lt;P style="margin: 0;"&gt;You can also try : https:///rest/server-hardware//environmentalConfiguration&lt;/P&gt;
&lt;P style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;But this will not give you each and every sensor temperature as we see in ILO REST.&amp;nbsp;&lt;/P&gt;
&lt;P style="margin: 0;"&gt;Hope this helps.&lt;/P&gt;</description>
      <pubDate>Thu, 24 Nov 2022 08:25:14 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178232#M7685</guid>
      <dc:creator>Kashyap02</dc:creator>
      <dc:date>2022-11-24T08:25:14Z</dc:date>
    </item>
    <item>
      <title>Re: REST API retrieve iLO thermal data</title>
      <link>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178361#M7693</link>
      <description>&lt;P&gt;Thanks for that.&amp;nbsp; However, it only gives the inlet ambient temperature.&amp;nbsp; That only tells me how warm the air is going in to the server.&amp;nbsp; Also, there is an error in the documentation: &lt;A href="https://techlibrary.hpe.com/docs/enterprise/servers/oneview7.1/cicf-api/en/index.html#rest/server-hardware" target="_blank" rel="noopener"&gt;OneView REST API Reference 4200&lt;/A&gt; .&amp;nbsp; It shows using serial number:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;GET  https://{appl}/rest/server-hardware/USE7335NW3/utilization&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;It needs to the the UUID.&amp;nbsp; I think the answer appears to be that OneView does not pull this temperature data back.&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Mon, 28 Nov 2022 11:43:04 GMT</pubDate>
      <guid>https://community.hpe.com/t5/hpe-oneview/rest-api-retrieve-ilo-thermal-data/m-p/7178361#M7693</guid>
      <dc:creator>BradV</dc:creator>
      <dc:date>2022-11-28T11:43:04Z</dc:date>
    </item>
  </channel>
</rss>

