- Community Home
- >
- Software
- >
- HPE OneView
- >
- Re: Add a license has changed?
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
08-18-2021 03:53 AM - last edited on 09-08-2021 07:53 PM by support_s
08-18-2021 03:53 AM - last edited on 09-08-2021 07:53 PM by support_s
Just installed a new OneView 6.10 appliance. Was trying to upload the licenses, but the API must have changed? I had used previously:
for FIL in HPE_OneView_Sof_*.txt; do
KEY=$(/bin/sed -e 's|^\(.*\) ".*"$|\1' ${FIL})
LIC='"key": "'${KEY}'"'
curl --insecure \
--header "content-type: application/json" \
--header "X-API-Version: ${currentVersion}" \
--header "auth: ${sessionID}" \
--data '{ '"${LIC}"',"type":"LicenseV500" }' \
--request POST ${OneView}/rest/licenses | jq -r '.'
done
That is giving me Invalid license key format. The key is a series of four characters. Any ideas what is wrong?
Solved! Go to Solution.
- Tags:
- OneView
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-19-2021 02:40 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-20-2021 01:08 AM
08-20-2021 01:08 AM
Re: Add a license has changed?
I think I was just to eager. After I tried to add the licenses, I realized I was using the licenses from our other OneView. Our sales manager is still generating the licenses for this one. Hopefully when he provides them, it will go smoothly.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 03:20 AM
11-09-2023 03:20 AM
Re: Add a license has changed?
Finally got this to work:
KEY="$(cat HPE_OneView_Sof_33274666.txt | sed -e 's|\"|\\"|g')"
LIC='"key":"'${KEY}'"'
DATA='{'${LIC}',"type":"LicenseV500"}'
curl --insecure --silent --header "content-type: application/json" --header "X-API-Version: ${currentVersion}" --header "auth: ${sessionID}" --data '${DATA}" --request POST ${OneView}/rest/licenses | jq -r '.'
will get a JSON output. the "state" key should have value"Added" if successful.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-09-2023 10:23 PM
11-09-2023 10:23 PM
Re: Add a license has changed?
Hello @bradawk1,
That's awesome!
We are extremely glad to know you were able to find the solution and thank you for keeping us informed.
Sunitha G
I'm an HPE employee.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]