Skip to main content
Solved

FME Licensing when running from batch file


parashari
Forum|alt.badge.img+2

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

Best answer by rahulsharma

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. 

 

 

View original
Did this help you find an answer to your question?

3 replies

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • Best Answer
  • April 1, 2019

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. 

 

 


parashari
Forum|alt.badge.img+2
  • Author
  • April 2, 2019
rahulsharma wrote:

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.


Forum|alt.badge.img
rahulsharma wrote:

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 ?

 


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings