Skip to main content
Solved

Check floating license availability in .NET

  • March 14, 2023
  • 6 replies
  • 108 views

oscard
Influencer
Forum|alt.badge.img+22

I need to develop a .NET app to execute somo FME workspaces with FME Desktop.

Before doing that, I would like to check if there is a license available (there are only two floating license).

 

Is there a way of achieving that? I could assume that if the process doesn't start is due to license problems, but I was wondering if there is a better way.

 

Thanks for any help provided.

Best answer by geomancer

There's some command line tools that come with FlexLM, see Monitoring Floating License Use for some instructions.

You can do this from another computer.

In my case, I created a file c:\settings\safe.lic file with the following contents:

SERVER Name_of_my_License_Server Any

Next I installed lmutil

Now I can test the currently used licenses from PowerShell, with one simple command:

& "c:\Program Files\FlexServer\lmutil.exe" lmstat -f FME -c c:\settings\safe.lic

This gives several lines of output, including the line:

Users of FME:  (Total of 2 licenses issued;  Total of 1 license in use)

 

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.

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • March 14, 2023

There's some command line tools that come with FlexLM, see Monitoring Floating License Use for some instructions.


oscard
Influencer
Forum|alt.badge.img+22
  • Author
  • Influencer
  • 344 replies
  • March 14, 2023

There's some command line tools that come with FlexLM, see Monitoring Floating License Use for some instructions.

Thanks. But, if I understand correctly, those commands can only be run in the same server where FlexLM is installed.


redgeographics
Celebrity
Forum|alt.badge.img+59
  • Celebrity
  • 3700 replies
  • March 14, 2023

Thanks. But, if I understand correctly, those commands can only be run in the same server where FlexLM is installed.

By the looks of it, yes. Unless there is some way to do it remotely. Unfortunately the FlexLM documentation seems to be pretty fragmented. Every time I google for things I get hits on a lot of pages by vendors using FlexLM, like Safe, but not a lot of "official" docs.


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • Best Answer
  • March 14, 2023

There's some command line tools that come with FlexLM, see Monitoring Floating License Use for some instructions.

You can do this from another computer.

In my case, I created a file c:\settings\safe.lic file with the following contents:

SERVER Name_of_my_License_Server Any

Next I installed lmutil

Now I can test the currently used licenses from PowerShell, with one simple command:

& "c:\Program Files\FlexServer\lmutil.exe" lmstat -f FME -c c:\settings\safe.lic

This gives several lines of output, including the line:

Users of FME:  (Total of 2 licenses issued;  Total of 1 license in use)

 


oscard
Influencer
Forum|alt.badge.img+22
  • Author
  • Influencer
  • 344 replies
  • March 16, 2023

You can do this from another computer.

In my case, I created a file c:\settings\safe.lic file with the following contents:

SERVER Name_of_my_License_Server Any

Next I installed lmutil

Now I can test the currently used licenses from PowerShell, with one simple command:

& "c:\Program Files\FlexServer\lmutil.exe" lmstat -f FME -c c:\settings\safe.lic

This gives several lines of output, including the line:

Users of FME:  (Total of 2 licenses issued;  Total of 1 license in use)

 

Thanks! That works.


geomancer
Evangelist
Forum|alt.badge.img+58
  • Evangelist
  • 932 replies
  • March 16, 2023

You can do this from another computer.

In my case, I created a file c:\settings\safe.lic file with the following contents:

SERVER Name_of_my_License_Server Any

Next I installed lmutil

Now I can test the currently used licenses from PowerShell, with one simple command:

& "c:\Program Files\FlexServer\lmutil.exe" lmstat -f FME -c c:\settings\safe.lic

This gives several lines of output, including the line:

Users of FME:  (Total of 2 licenses issued;  Total of 1 license in use)

 

You're welcome, thanks for the feedback :)