Solved

FME Licensing when running from batch file

  • 1 April 2019
  • 3 replies
  • 14 views

Badge +1

Hello. We have floating licenses in our office so they keep rotating time by time.

I have created a batch file for running a workbench with multiple workspace runners in it. Now, when I run the batch file and if by chance, no licenses are available that time, what will happen? Will my workspace go in an infinite loop till a specific timeout or will it try to trigger for acquiring the license every 1 minute or so and then start running the workbench?

This actually matters more because there is an AWS machine which turns on on a scheduled time and triggers the batch file on startup. The workbench starts running by itself.

 

Any suggestions/ideas on this? If this is not possible, any alternatives other than FME server since it is the last approach that we will go for as of now.

 

Thanks,

Shivam

icon

Best answer by rahulsharma 1 April 2019, 23:58

View original

3 replies

Badge +8

Hi @hellblazer, if you are using FME Floating license we will perform license check and if no license is available the workspace/s would fail.

 

There is no infinite loop for the license check(will time out in less than 30 sec)

 

Workaround

 

In your batch script, 

Check if the license is available using  

fmelicensingassistant_cmd.exe --query <server>[:<port>] 

This should display a list of available license and then you can use If Else statement, decide if you want to run the workspace or run it at a different time. 

 

 

Badge +1

Hi @hellblazer, if you are using FME Floating license we will perform license check and if no license is available the workspace/s would fail.

 

There is no infinite loop for the license check(will time out in less than 30 sec)

 

Workaround

 

In your batch script, 

Check if the license is available using  

fmelicensingassistant_cmd.exe --query <server>[:<port>] 

This should display a list of available license and then you can use If Else statement, decide if you want to run the workspace or run it at a different time. 

 

 

Thanks, @rahulsharma. This was helpful.

Badge

Hi @hellblazer, if you are using FME Floating license we will perform license check and if no license is available the workspace/s would fail.

 

There is no infinite loop for the license check(will time out in less than 30 sec)

 

Workaround

 

In your batch script, 

Check if the license is available using  

fmelicensingassistant_cmd.exe --query <server>[:<port>] 

This should display a list of available license and then you can use If Else statement, decide if you want to run the workspace or run it at a different time. 

 

 

@rahulsharma​ Is it like the FME workbench checks for license each time we run a fme script or is it a one time process to check license when we open the workbench for the first time ?

 

Reply