- Community Home
- >
- Servers and Operating Systems
- >
- HPE ProLiant
- >
- Server Management - Remote Server Management
- >
- HPE Amplifier pack API
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 04:06 AM - edited 02-26-2020 05:00 AM
02-26-2020 04:06 AM - edited 02-26-2020 05:00 AM
HPE Amplifier pack API
I"m trying to add servers via the RestAPI from Amplifier pack via https://[server FQDN]/redfish/v1/AggregatorService/ManagedSystems/, but run into following error :
Invoke-webrequest : Internal Server Error
The server encountered an internal error or misconfiguration and was unable to complete your request.
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.
More information about this error may be available in the server error log.
At C:\Users\TestAmplifier.ps1:98 char:14
+ ... addobject = Invoke-webrequest -ContentType 'application/json' -Uri $a ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidOperation: (System.Net.HttpWebRequest:HttpWebRequest) [Invoke-WebRequest], WebException
+ FullyQualifiedErrorId : WebCmdletWebResponseException,Microsoft.PowerShell.Commands.InvokeWebRequestCommand
I use following code (after creating a connection
$addobject = Invoke-webrequest -ContentType 'application/json' -Uri https://[server FQDN]/redfish/v1/AggregatorService/ManagedSystems/ -Method POST -body $addserverjson -Headers $headers
Amplifier pack version 1.55
A GET works , so connection is OK.
Any idea in what logfile I can see what is going wrong ?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-26-2020 11:07 PM
02-26-2020 11:07 PM
Re: HPE Amplifier pack API
Found the reason : issue with the ILO of the server trying to add , restart of the ILO fixed it.
Would have been nice if Amplifier pack just reported a "connection" error instead of 500 internal server error.
Next issue is that the list of systems van API only returns the first 500 servers ( out of +-800) ...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
02-28-2020 03:14 AM
02-28-2020 03:14 AM
Re: HPE Amplifier pack API
Hello,
Please follow the below steps.
Log into Amplifier > Diagnostics and save the support logs.
You can check the Diagnostics log for the cause of this issue.
If you feel this was helpful please click the KUDOS! thumb below!
Regards,
I am a HPE Employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-08-2020 07:10 AM - edited 03-08-2020 07:11 AM
03-08-2020 07:10 AM - edited 03-08-2020 07:11 AM
Re: HPE Amplifier pack API
Hello,
To extract all assets from IAP, when you have more than 500 is to used the "skip" parameter.
example :
you used normally "/redfish/v1/AggregatorService/Managed/Systems" to get your asset.
Juste make a loop like this (pseudo code)
total_asset = 1200
i = 0
while total_asset > 500 :
num = i * 500
query = (your_query) "/redfish/v1/AggregatorService/Managed/Systems/?$Skip={num}"
data = data + query
i++
total_asset = total_asset -500
At each loop, you skip the "num" first assets of the query.
Like this, in 2 iterations, you can have your 800 assets.
Regards,
Bruno