Comprehensive data protection for all workloads
Post Reply
Tijz
Service Provider
Posts: 34
Liked: 4 times
Joined: Jan 20, 2012 10:03 am
Full Name: Mattijs Duivenvoorden
Contact:

B&R: Register license file through commandline

Post by Tijz »

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!
PTide
Product Manager
Posts: 6408
Liked: 724 times
Joined: May 19, 2015 1:46 pm
Contact:

Re: B&R: Register license file through commandline

Post by PTide »

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!
Gostev
Chief Product Officer
Posts: 31459
Liked: 6648 times
Joined: Jan 01, 2006 1:01 am
Location: Baar, Switzerland
Contact:

Re: B&R: Register license file through commandline

Post by Gostev »

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!
Tijz
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

Post by Tijz »

@PTide: thanks for the link to the thread abount enterprise manager over WAN. Will give that one a try!
quinnvanorder
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

Post by quinnvanorder »

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.

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 }"
@Veeam, having a command line /importLic [File] would be so much easier!
Automate all the things!
Post Reply

Who is online

Users browsing this forum: BackItUp2020, Bing [Bot], Google [Bot], Semrush [Bot] and 312 guests