Hi All,
I'm trying to find a way to update the license file of veeam B&R through command line so I could script it.
We have multiple Veeam B&R installations, each on a different site.The license files expire every three months, since it are VCP license. Manually updating every license file every three months get's old very fast.
We cannot use the 'auto update' button, because we have multiple support ID's merged in the license files. We also cannot use Enterprise manager, because we don't have VPN tunnels between sites (and enterprise manager won't work through NAT-ed firewalls as far as I know).
So, is there a way to install a new license file through command line? We do have magement/monitoring software in place that can get the license file to the servers, I just need a command to get it installed in Veeam B&R console.
Thanks for any suggestions!
-
- Service Provider
- Posts: 34
- Liked: 4 times
- Joined: Jan 20, 2012 10:03 am
- Full Name: Mattijs Duivenvoorden
- Contact:
-
- Product Manager
- Posts: 6551
- Liked: 765 times
- Joined: May 19, 2015 1:46 pm
- Contact:
Re: B&R: Register license file through commandline
Hi Tijz,
Unfortunately, there is no such command for VBR CLI. On the other hand there is a way to make Enterprise Manager work over WAN, please see the corresponding thread.
In case you'll need to script your backup management routine please refer to our PowerShell Reference.
Hope this will help you.
Should you have any difficulties please let us know.
Thank you!
Unfortunately, there is no such command for VBR CLI. On the other hand there is a way to make Enterprise Manager work over WAN, please see the corresponding thread.
In case you'll need to script your backup management routine please refer to our PowerShell Reference.
Hope this will help you.
Should you have any difficulties please let us know.
Thank you!
-
- Chief Product Officer
- Posts: 31814
- Liked: 7302 times
- Joined: Jan 01, 2006 1:01 am
- Location: Baar, Switzerland
- Contact:
Re: B&R: Register license file through commandline
Hi Mattijs, you should open a licensing support case and have a license issued with the single support ID issued to you. Looks like someone has made a mistake merging multiple support IDs into the license file, the license file specification does not allow for this. Let us know if you have any difficulties getting this fixed by our teams. Thanks!
-
- Service Provider
- Posts: 34
- Liked: 4 times
- Joined: Jan 20, 2012 10:03 am
- Full Name: Mattijs Duivenvoorden
- Contact:
Re: B&R: Register license file through commandline
@PTide: thanks for the link to the thread abount enterprise manager over WAN. Will give that one a try!
-
- Influencer
- Posts: 15
- Liked: 16 times
- Joined: Jan 31, 2019 2:25 am
- Full Name: Quinn Van Order
- Location: Seattle WA
- Contact:
Re: B&R: Register license file through commandline
There is a way to do this!
Updating for those who find this in google over the years. I work with a MSP that administers hundreds of Veeam instances over hundreds of separate networks. Essentially, the licence file is just stored in hex at HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication\license
The way we address this is to manually apply a single instance of the global licence we use on all devices. Then we export the reg key, move it to the target devices and import.
Below is a combo of the exact code, and the pseudo code we use.
@Veeam, having a command line /importLic [File] would be so much easier!
Updating for those who find this in google over the years. I work with a MSP that administers hundreds of Veeam instances over hundreds of separate networks. Essentially, the licence file is just stored in hex at HKEY_LOCAL_MACHINE\SOFTWARE\Veeam\Veeam Backup and Replication\license
The way we address this is to manually apply a single instance of the global licence we use on all devices. Then we export the reg key, move it to the target devices and import.
Below is a combo of the exact code, and the pseudo code we use.
Code: Select all
#Backup Veeam Config
powershell.exe -nologo -executionpolicy bypass -noprofile -command "Add-PSSnapin VeeamPSSnapin; Start-VBRConfigurationBackupJob"
#Cleanly stop all running jobs
powershell.exe -nologo -executionpolicy bypass -noprofile -command "Add-PSSnapin VeeamPSSnapin; Get-VBRJob | ?{$_.GetLastState() -eq 'Working'} | Stop-VBRJob"
#Terminate shell
Taskkill /IM veeam.backup.shell.exe /F
#Stop all Veeam Services
powershell.exe -nologo -executionpolicy bypass -noprofile -command "Get-Service Veeam* | Stop-Service -Force"
#Deploy reg file (do this part however you see fit)
#Import reg file
reg import C:\Temp\VeeamLic.reg
#Delete reg file
#Start all Veeam services
powershell -command "get-service -displayname *veeam* | foreach-object { Start-Service -InputObj $_.Name }"
Automate all the things!
Who is online
Users browsing this forum: Google [Bot] and 88 guests