Skip to main content
Solved

FME Licensing when running from batch file

  • April 1, 2019
  • 3 replies
  • 111 views

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. 

 

 

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

3 replies

rahulsharma
Safer
Forum|alt.badge.img+10
  • Safer
  • 359 replies
  • 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
  • 132 replies
  • April 2, 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. 

 

 

Thanks, @rahulsharma. This was helpful.


Forum|alt.badge.img

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 ?