HPE OneView
1834685 Members
2381 Online
110069 Solutions
New Discussion

Re: How to remove HPE OneView Advance license from OneView

 
SOLVED
Go to solution
quesnl
Valued Contributor

How to remove HPE OneView Advance license from OneView

HI,

How can I remove a HPE OneView Advance license from OneView with powershell ?

I tried the Remove-OVLicense but not luck.   Can somebody maybee give me an example of the syntax they use to remove a specific license.

 

Thanks

5 REPLIES 5
support_s
System Recommended

Query: How to remove HPE OneView Advance license from OneView

System recommended content:

1. HPE OneView 7.0 Best Practices Guide for Deployment and Management

 

Please click on "Thumbs Up/Kudo" icon to give a "Kudo".

 

Thank you for being a HPE valuable community member.


Accept or Kudo

ChrisLynch
HPE Pro
Solution

Re: How to remove HPE OneView Advance license from OneView

Examples are provided in the Cmdlet help by using either Get-Help Remove-OVLicense or Get-Help Remove-OVLicense -Online.

If you have a specifc license you need to remove, you first need to ensure the license is not in use:

# Return licenses looking for a specific license key assigned to a known host
Get-OVLicense | Where-Object { $_.Nodes -contains "MyHost" }

# Return licenses looking for a specific key value
Get-OVLicense | Where-Object { $_.Key -like "AABB CCDD" }

If the key is in use, you cannot remove the license.  If it not in use, where the output of Get-OVLicense and the Nodes property is empty/null, you can then pass that license key object to Remove-OVLicense.  For example:

# Will return all license keys that are not assigned to any server node
Get-OVLicense | Where-Object { $null -eq $_.Nodes }

 

I work at HPE
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo
quesnl
Valued Contributor

Re: How to remove HPE OneView Advance license from OneView

I tried and still no luck in removing the unused OneView license. Doest it require a minimum HPEOneview module ? I am currentelly running  HPEOneView 6.30.

quesnl
Valued Contributor

Re: How to remove HPE OneView Advance license from OneView

I finnaly found my issue. I dint realize that license list started at 0 when I was doing Get-OVlicense comand. After I figured it was ofset by 1  then I was able to select the proper license key and I was able to remove it with the following command example: Remove-OVLicense -InputObject $LicenseKeys[1]

MV3
HPE Pro

Re: How to remove HPE OneView Advance license from OneView

Good to know the issue is resolved.

 

Cheers....



I work at HPE
HPE Support Center offers support for your HPE services and products when and how you need it. Get started with HPE Support Center today.
[Any personal opinions expressed are mine, and not official statements on behalf of Hewlett Packard Enterprise]
Accept or Kudo