<?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 HPE Amplifier pack API in Server Management - Remote Server Management</title>
    <link>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080542#M8591</link>
    <description>&lt;P&gt;I"m trying to add servers via the RestAPI from Amplifier pack&amp;nbsp; via https://[server FQDN]/redfish/v1/AggregatorService/ManagedSystems/, but run into following error :&lt;/P&gt;&lt;P&gt;Invoke-webrequest : Internal Server Error&lt;BR /&gt;The server encountered an internal error or misconfiguration and was unable to complete your request.&lt;BR /&gt;Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.&lt;BR /&gt;More information about this error may be available in the server error log.&lt;BR /&gt;At C:\Users\TestAmplifier.ps1:98 char:14&lt;BR /&gt;+ ... addobject = Invoke-webrequest -ContentType 'application/json' -Uri $a ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand&lt;/P&gt;&lt;P&gt;I use following code (after creating a connection &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;$addobject = Invoke-webrequest -ContentType 'application/json' -Uri https://[server FQDN]/redfish/v1/AggregatorService/ManagedSystems/ -Method POST -body $addserverjson -Headers $headers&lt;/P&gt;&lt;P&gt;Amplifier pack version 1.55&lt;/P&gt;&lt;P&gt;A GET works , so connection is OK.&lt;/P&gt;&lt;P&gt;Any idea in what logfile I can see what is going wrong ?&lt;/P&gt;</description>
    <pubDate>Wed, 26 Feb 2020 13:00:07 GMT</pubDate>
    <dc:creator>Bart_V</dc:creator>
    <dc:date>2020-02-26T13:00:07Z</dc:date>
    <item>
      <title>HPE Amplifier pack API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080542#M8591</link>
      <description>&lt;P&gt;I"m trying to add servers via the RestAPI from Amplifier pack&amp;nbsp; via https://[server FQDN]/redfish/v1/AggregatorService/ManagedSystems/, but run into following error :&lt;/P&gt;&lt;P&gt;Invoke-webrequest : Internal Server Error&lt;BR /&gt;The server encountered an internal error or misconfiguration and was unable to complete your request.&lt;BR /&gt;Please contact the server administrator at [no address given] to inform them of the time this error occurred, and the actions you performed just before this error.&lt;BR /&gt;More information about this error may be available in the server error log.&lt;BR /&gt;At C:\Users\TestAmplifier.ps1:98 char:14&lt;BR /&gt;+ ... addobject = Invoke-webrequest -ContentType 'application/json' -Uri $a ...&lt;BR /&gt;+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;BR /&gt;+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException&lt;BR /&gt;+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand&lt;/P&gt;&lt;P&gt;I use following code (after creating a connection &lt;LI-EMOJI id="lia_disappointed-face" title=":disappointed_face:"&gt;&lt;/LI-EMOJI&gt;&lt;BR /&gt;$addobject = Invoke-webrequest -ContentType 'application/json' -Uri https://[server FQDN]/redfish/v1/AggregatorService/ManagedSystems/ -Method POST -body $addserverjson -Headers $headers&lt;/P&gt;&lt;P&gt;Amplifier pack version 1.55&lt;/P&gt;&lt;P&gt;A GET works , so connection is OK.&lt;/P&gt;&lt;P&gt;Any idea in what logfile I can see what is going wrong ?&lt;/P&gt;</description>
      <pubDate>Wed, 26 Feb 2020 13:00:07 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080542#M8591</guid>
      <dc:creator>Bart_V</dc:creator>
      <dc:date>2020-02-26T13:00:07Z</dc:date>
    </item>
    <item>
      <title>Re: HPE Amplifier pack API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080624#M8592</link>
      <description>&lt;P&gt;Found the reason : issue with the ILO of the server trying to add , restart of the ILO fixed it.&lt;BR /&gt;Would have been nice if Amplifier pack just reported a "connection" error instead of 500 internal server error.&lt;BR /&gt;Next issue is that the list of systems van API &amp;nbsp;only returns the first 500 servers ( out of +-800)&amp;nbsp;...&lt;/P&gt;</description>
      <pubDate>Thu, 27 Feb 2020 07:07:15 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080624#M8592</guid>
      <dc:creator>Bart_V</dc:creator>
      <dc:date>2020-02-27T07:07:15Z</dc:date>
    </item>
    <item>
      <title>Re: HPE Amplifier pack API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080856#M8594</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;Please follow the below steps.&lt;/P&gt;&lt;P&gt;Log into Amplifier &amp;gt; Diagnostics and save the support logs. &amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;You can check the Diagnostics log for the cause of this issue.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;If you feel this was helpful please click the&lt;/STRONG&gt;&amp;nbsp;&lt;STRONG&gt;KUDOS!&amp;nbsp;&lt;/STRONG&gt;&lt;STRONG&gt;thumb below!&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Fri, 28 Feb 2020 11:14:13 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7080856#M8594</guid>
      <dc:creator>SanjeevGoyal</dc:creator>
      <dc:date>2020-02-28T11:14:13Z</dc:date>
    </item>
    <item>
      <title>Re: HPE Amplifier pack API</title>
      <link>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7081817#M8604</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;To extract all assets from IAP, when you have more than 500 is to used the "skip" parameter.&lt;/P&gt;&lt;P&gt;example :&lt;BR /&gt;you used normally&amp;nbsp; "/redfish/v1/AggregatorService/Managed/Systems" to get your asset.&lt;BR /&gt;&lt;BR /&gt;Juste make a loop like this (pseudo code)&lt;BR /&gt;total_asset = 1200&lt;BR /&gt;i = 0&lt;BR /&gt;while total_asset &amp;gt; 500 :&lt;BR /&gt;&amp;nbsp; &amp;nbsp; num = i * 500&lt;BR /&gt;&amp;nbsp; &amp;nbsp; query = (your_query) "/redfish/v1/AggregatorService/Managed/Systems/?$Skip={num}"&lt;BR /&gt;&amp;nbsp; &amp;nbsp; data = data + query&lt;BR /&gt;&amp;nbsp; &amp;nbsp; i++&lt;BR /&gt;&amp;nbsp; &amp;nbsp;total_asset =&amp;nbsp;total_asset -500&lt;BR /&gt;&lt;BR /&gt;At each loop, you skip the "num" first assets of the query.&lt;BR /&gt;Like this, in 2 iterations, you can have your 800 assets.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;Bruno&lt;/P&gt;</description>
      <pubDate>Sun, 08 Mar 2020 14:11:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/server-management-remote-server/hpe-amplifier-pack-api/m-p/7081817#M8604</guid>
      <dc:creator>Bruniche</dc:creator>
      <dc:date>2020-03-08T14:11:43Z</dc:date>
    </item>
  </channel>
</rss>

