HPE OneView

Add a license has changed?

 
SOLVED
Go to solution
BradV
Respected Contributor

Add a license has changed?

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?

2 REPLIES 2
ChrisLynch
HPE Pro
Solution

Re: Add a license has changed?

The REST API has not changed for licenses.  What has changed in some cases is the generated license file can be in an XML format.  Are you sure you have examined the license key format on your input?


I am an HPE employee

Accept or Kudo

BradV
Respected Contributor

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.