<?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 Extracting Infosight Nimble performance statistics in InfoSight Predictive Analytics</title>
    <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7225855#M186</link>
    <description>&lt;P&gt;Greetings of the day&lt;BR /&gt;Is it possible to extract a list of Recommended Actions as reported in the Infosight Nimble Operational Dashboard web interface using a REST query ( Powershell sorry, not cURL ), PowerShell commandlets or GUI export option ?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 1099px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144475iF339B96CBCBEDB48/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Can I access these array- and volume-level performance statistics myself using REST or PowerShell commandlets ?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.png" style="width: 737px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144473i046770B0D4199206/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Picture2.png" alt="Picture2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture3.png" style="width: 737px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144476iD3D4825CE8C269B1/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Picture3.png" alt="Picture3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Sat, 28 Sep 2024 16:24:54 GMT</pubDate>
    <dc:creator>JockHowie</dc:creator>
    <dc:date>2024-09-28T16:24:54Z</dc:date>
    <item>
      <title>Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7225855#M186</link>
      <description>&lt;P&gt;Greetings of the day&lt;BR /&gt;Is it possible to extract a list of Recommended Actions as reported in the Infosight Nimble Operational Dashboard web interface using a REST query ( Powershell sorry, not cURL ), PowerShell commandlets or GUI export option ?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture1.png" style="width: 1099px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144475iF339B96CBCBEDB48/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Picture1.png" alt="Picture1.png" /&gt;&lt;/span&gt;&lt;BR /&gt;Can I access these array- and volume-level performance statistics myself using REST or PowerShell commandlets ?&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture2.png" style="width: 737px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144473i046770B0D4199206/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Picture2.png" alt="Picture2.png" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Picture3.png" style="width: 737px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144476iD3D4825CE8C269B1/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Picture3.png" alt="Picture3.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 16:24:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7225855#M186</guid>
      <dc:creator>JockHowie</dc:creator>
      <dc:date>2024-09-28T16:24:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226034#M187</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am afraid we do not have an option to export recommended actions from infosight.&lt;/P&gt;&lt;P&gt;As of now, only infosight wellness is supported. Please refer &lt;A href="https://infosight.hpe.com/InfoSight/media/cms/active/public/pubs_HPE_infosight_wellness_spec.pdf" target="_blank" rel="noopener"&gt;https://infosight.hpe.com/InfoSight/media/cms/active/public/pubs_HPE_infosight_wellness_spec.pdf&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 02:14:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226034#M187</guid>
      <dc:creator>buzzsubash</dc:creator>
      <dc:date>2024-09-25T02:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226037#M188</link>
      <description>&lt;P&gt;Thanks Subash, I'd appreciate some guidance to accessing the Wellness API&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Wellness API app.png" style="width: 541px;"&gt;&lt;img src="https://community.hpe.com/t5/image/serverpage/image-id/144518i421D127CA3E4069D/image-size/large?v=v2&amp;amp;px=2000" role="button" title="Wellness API app.png" alt="Wellness API app.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;I set up the app access and generated a client key and secret which seemed to work OK for generating the session token - but I must have missed a key detail because I get this error message&lt;/P&gt;&lt;P&gt;Invoke-RestMethod : {"fault":{"faultstring":"Invalid access token","detail":{"errorcode":"oauth.v2.InvalidAccessToken"}}}&lt;/P&gt;&lt;P&gt;from running :&lt;BR /&gt;$wellnessUrl = '&lt;A href="https://infosight.hpe.com/apis/wellness/v1/issues" target="_blank"&gt;https://infosight.hpe.com/apis/wellness/v1/issues&lt;/A&gt;'&lt;BR /&gt;$header = @{ 'Accept' = 'application/json' ; 'authorization' = "bearer $accessToken" }&lt;BR /&gt;$response = Invoke-RestMethod -Uri $wellnessUrl -Method Get -Headers @{ 'Authentication' = 'Bearer $accessToken' }&lt;/P&gt;&lt;P&gt;Any thoughts would be much appreciated&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 03:45:11 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226037#M188</guid>
      <dc:creator>JockHowie</dc:creator>
      <dc:date>2024-09-25T03:45:11Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226051#M189</link>
      <description>&lt;P&gt;I am not quite sure about powershell, however, I just did test in python. I am pasting 2 scripts for your reference&lt;BR /&gt;1. To generate access token&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests

# Your credentials
client_id = '&amp;lt;xxx&amp;gt;'
client_secret = '&amp;lt;xxx&amp;gt;'

url = 'https://infosight.hpe.com/apis/oauth/token'

payload = {
    'grant_type': 'client_credentials',
    'client_id': client_id,
    'client_secret': client_secret
}

headers = {
    'Content-Type': 'application/x-www-form-urlencoded'
}

response = requests.post(url, headers=headers, data=payload)

if response.status_code == 200:
    token_info = response.json()
    access_token = token_info.get('access_token')

    with open('access_token.txt', 'w') as file:
        file.write(access_token)

    print(f"Access Token saved to 'access_token.txt'")
else:
    print(f"Failed to get access token. Status Code: {response.status_code}")
    print(response.text)&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;Then used the generated access token to poll the endpoint&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="python"&gt;import requests


wellness_url = 'https://infosight.hpe.com/apis/wellness/v1/issues'


with open('access_token.txt', 'r') as file:
    access_token = file.read().strip()


headers = {
    'Accept': 'application/json',
    'Authorization': f'Bearer {access_token}'  
}


response = requests.get(wellness_url, headers=headers)


if response.status_code == 200:

    issues = response.json()
    print("Wellness Issues Data:")
    print(issues)
else:

    print(f"Failed to get wellness issues. Status Code: {response.status_code}")
    print(response.text)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let know if it helps&lt;/P&gt;</description>
      <pubDate>Wed, 25 Sep 2024 05:39:38 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226051#M189</guid>
      <dc:creator>buzzsubash</dc:creator>
      <dc:date>2024-09-25T05:39:38Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226107#M190</link>
      <description>&lt;P&gt;Yes, thanks heaps Subash, when I spotted that the command is&amp;nbsp;case-sensisitve from your Python code and this worked great &lt;LI-EMOJI id="lia_slightly-smiling-face" title=":slightly_smiling_face:"&gt;&lt;/LI-EMOJI&gt;&lt;/P&gt;&lt;P&gt;$header = @{ 'Accept' = 'application/json' ; 'Authorization' = "Bearer $accessToken" }&lt;/P&gt;</description>
      <pubDate>Thu, 26 Sep 2024 02:43:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226107#M190</guid>
      <dc:creator>JockHowie</dc:creator>
      <dc:date>2024-09-26T02:43:37Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226159#M191</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://community.hpe.com/t5/user/viewprofilepage/user-id/2065281"&gt;@JockHowie&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;That's Excellent!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;We are extremely glad to hear the issue has been resolved and thank you for keeping us updated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 27 Sep 2024 08:19:35 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226159#M191</guid>
      <dc:creator>Sunitha_Mod</dc:creator>
      <dc:date>2024-09-27T08:19:35Z</dc:date>
    </item>
    <item>
      <title>Re: Extracting Infosight Nimble performance statistics</title>
      <link>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226218#M192</link>
      <description>&lt;P dir="auto" style="margin: 0;"&gt;Hi JockHowie,&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;Hope you are doing good.&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;As the issue is resolved, I'll go ahead and close this case. But if you need any further assistance, you can reply back to us.&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;&amp;nbsp;&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;Regards,&lt;/P&gt;
&lt;P dir="auto" style="margin: 0;"&gt;Naveen Chandru G&lt;/P&gt;</description>
      <pubDate>Sat, 28 Sep 2024 16:22:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/infosight-predictive-analytics/extracting-infosight-nimble-performance-statistics/m-p/7226218#M192</guid>
      <dc:creator>NCG1</dc:creator>
      <dc:date>2024-09-28T16:22:22Z</dc:date>
    </item>
  </channel>
</rss>

