- Community Home
- >
- Software
- >
- HPE OneView
- >
- Re: Is this possible?
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
07-12-2019 02:07 AM
07-12-2019 02:07 AM
Re: Is this possible?
Hi Chris,
That was my main reason for putting the data in a variable. I did
echo "${DATA}" | jq -r '.'
and it came out with no errors.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-19-2019 09:11 AM
07-19-2019 09:11 AM
Re: Is this possible?
Hi Chris, I just added a little over 70 DL380s and DL560s to OneView using the rest API. That worked. I then tried to create a server profile template for the DL560s at that location. Put all of the data in a variable. Echo'd that to jq and did not get any errors. Uploaded with:
curl --insecure \
--header "content-type: application/json" \
--header "X-API-Version: ${currentVersion}" \
--header "auth: ${sessionID}" \
--data "${DATA}" \
--request POST ${OneView}/rest/server-profile-templates | jq -r '.'
Did not get any errors, but did not get any output. Checked through the gui and no new server profile template was created. Aren't I supposed to get a task uri returned?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-26-2019 02:45 AM
07-26-2019 02:45 AM
Re: Is this possible?
Does anyone have a clue why I am not getting any output? No error message or success message. I think I should get one or the other?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 08:05 AM
08-21-2019 08:05 AM
Re: Is this possible?
Still not working. Not getting output. No success nor error message.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 08:10 AM
08-21-2019 08:10 AM
Re: Is this possible?
Async task success is noted by an HTTP 202 response code, and with a Location HTTP header. Take a look at this StackExchange thread on getting the HTTP resonse code back from cURL.
I am an HPE employee
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-21-2019 09:06 AM
08-21-2019 09:06 AM
Re: Is this possible?
Thanks Chris! That helped. Adding '--include' to the curl command got me back the task uri. For this particular attempt, I am getting back: "Argument \"directoryServerAddress\" is below the minimum bound of 1 for iLO setting \"Manage directory configuration\"." I'll have to figure out what I am doing wrong there.
- « Previous
- Next »