Skip to main content
Solved

Check floating license availability in .NET


oscard
Influencer
Forum|alt.badge.img+21

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

redgeographics wrote:

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)

 

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

6 replies

redgeographics
Celebrity
Forum|alt.badge.img+49

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


oscard
Influencer
Forum|alt.badge.img+21
  • Author
  • Influencer
  • March 14, 2023
redgeographics wrote:

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+49
oscard wrote:

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+48
  • Evangelist
  • Best Answer
  • March 14, 2023
redgeographics wrote:

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+21
  • Author
  • Influencer
  • March 16, 2023
geomancer wrote:

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+48
  • Evangelist
  • March 16, 2023
geomancer wrote:

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 :)


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