- Community Home
- >
- Software
- >
- HPE OneView
- >
- Error adding DL380 G9
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
06-12-2019 04:37 AM
06-12-2019 04:37 AM
I have a couple hundred dl380 G9s. I'm trying to add them to my OneView (4.20.01-0380241). It is giving back error: "Verify that 'host' is a management processor with supported firmware...." I am using:
i=0
for SERVER in $(cat hardware-list); do
ADDURI[${i}]=$(curl --insecure \
--"content-type: application/json" \
--header "auth: ${sessionID}" \
--header "X-API-Version: ${currentVersion}" \
--data "{ \"hostname\": \"${SERVER}\", \"username\": \"Administrator\", \"password\": \"${PASSW}\", \"force\": false, \"licensingIntent\": \"OneView
\", \"configurationState\": \"Managed\", \"initialScopeUris\": []}' \
--request POST ${OneView}/rest/server-hardware | jq -r '.uri')
((i++))
done
I even tried changing "force" from false to true, but still got the same errors. Any ideas what I might be doing wrong? FYI, I check the status with:
# To check the status:
j=${i}
i=0
while [[ ${i} -lt ${j} ]]; do
curl --insecure \
--header "auth: ${sessionID}" \
--header "X-API-Version: ${currentVersion}" \
--request GET ${OneView}${ADDURI[${i}]} | jq -r '.'
((i++))
done
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 07:37 AM
06-12-2019 07:37 AM
SolutionAre you sure you are providing the iLO IP Address? Are there any firewalls between the appliance and the iLO's?
I see that you have posted quite a number of scripting questions here, all using cURL. Any reason why you are not using our Python scripting toolkit?
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 08:33 AM
06-12-2019 08:33 AM
Re: Error adding DL380 G9
Hi Chris,
Argh! i was cat'ing my file of server host names and not the file of iLO host names! I changed to the correct file and it is now importing.
As far as python goes, because I have never been able to find clear documentation on how to get it working. I see bits and pieces, but nothing that walks you through from not having anything to getting it working.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-12-2019 09:29 AM
06-12-2019 09:29 AM
Re: Error adding DL380 G9
Documentation is within the examples we have published, and in the library online documentation. I would strongly suggest you use the Python library instead of building your own cURL calls. There are plenty of methods available in the Python library that would have already performed the functions you have been posting questions here.
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-13-2019 04:40 AM
06-13-2019 04:40 AM
Re: Error adding DL380 G9
HI Chris,
I am taking another look at the python and ansible libraries. I'll let you know if I have any luck.