Skip to main content

Hi freaks

Im playing around with the licenseserver and do some "stresstest" 🙂
I.e I'm opening a "few" client session to reach the limit
It would bes nice, if there is any display of the current count of license in use.
Is there any tool/(hidden) button to do so?
Okay, the log shows me every checkout/checkin, but this tells mit not the current number under each license policy

TIA
Ingo

Hi freaks

Im playing around with the licenseserver and do some "stresstest" 🙂
I.e I'm opening a "few" client session to reach the limit
It would bes nice, if there is any display of the current count of license in use.
Is there any tool/(hidden) button to do so?
Okay, the log shows me every checkout/checkin, but this tells mit not the current number under each license policy

TIA
Ingo

Hi Ingo

In the license manager you can generate a report of the counts (and individual users and machines if required) for a given period.

Select Advance Configuration tab and create usage report

The options should be pretty self-explanatory.

Hope that helps


Hi freaks

Im playing around with the licenseserver and do some "stresstest" 🙂
I.e I'm opening a "few" client session to reach the limit
It would bes nice, if there is any display of the current count of license in use.
Is there any tool/(hidden) button to do so?
Okay, the log shows me every checkout/checkin, but this tells mit not the current number under each license policy

TIA
Ingo

We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain


Hi freaks

Im playing around with the licenseserver and do some "stresstest" 🙂
I.e I'm opening a "few" client session to reach the limit
It would bes nice, if there is any display of the current count of license in use.
Is there any tool/(hidden) button to do so?
Okay, the log shows me every checkout/checkin, but this tells mit not the current number under each license policy

TIA
Ingo

Hi Ingo,

1) run the DLM

2) click the License you want to know

3) click Status

Now you can see who is using how many Licenses.


Regards

Norbert


Hi Ingo

In the license manager you can generate a report of the counts (and individual users and machines if required) for a given period.

Select Advance Configuration tab and create usage report

The options should be pretty self-explanatory.

Hope that helps

For this one you can use 

if($lfileexists("C:\\program files\\common files\\compuware\\umfilter.exe"))
v_binary = "C:\\program files\\common files\\compuware\\umfilter.exe"
elseif($lfileexists("C:\\program files (x86)\\common files\\compuware\\umfilter.exe"))
v_binary = "C:\\program files (x86)\\common files\\compuware\\umfilter.exe"
endif

if(v_binary != "")
v_command = $concat('"',v_binary,'"'," -d 7188@localhost -feat UCLIENT -sdate ",v_datestr)
activate "SYS_OSCOMMAND".COMMANDOUT(v_command, v_output)

where v_datestr is a string of a formatted date MM/DD/YYYY. 

You can then (again) parse the text output to get total/max licences in use for time periods through the day(s). 


Regards, 


Iain


We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain

Also

dlmcv -srv -flist -host 7188@localhostĀ 


Will list all features and total licence values, so you can return "12/15 licences used... "


We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain

The carriage returns inputfile is necessary to run automatically because the dlmcv output is 'paged' with enter for the next page... 



Hi Ingo,

1) run the DLM

2) click the License you want to know

3) click Status

Now you can see who is using how many Licenses.


Regards

Norbert

I hadn't thought about the simple version. You are indeed correct, if all you want is to know the current usage, and you have access to the DLM, this is all you need. 


Hi Ingo,

1) run the DLM

2) click the License you want to know

3) click Status

Now you can see who is using how many Licenses.


Regards

Norbert

ThanX Norbert

This button was always gray until you told me to select one specific license feature 🙂

Ingo



We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain

Hi Iain

ThanX for this hint 🙂

As I'm not sure, where DLM.EXE, DLMCV.EXE or CPWR.EXE are located, I tried to get some information out of the registry and monitoring DLM when starting CPWR.
UnifAce(DLM) don't query the registry for information but assume, that CPWR is located in the same directory.
grumbel  that's not the perfect way to do this.
But on the other side, to get information about DLMCV, I query the registry for the service "UnifAce license server"* / CPWR.EXE.
With the image path of CPWR, I got the path to all binaries for DLM and so I can start DLMCV with the proper path 🙂

One nice "bug" did I found:
A license is backward compatible, so with a UnifAce 10 license a UnifAce 9 application is still working.
If you start a UF10 and UF9 license on a client and you do have a license, that alls sessionon a client counts as 1 licen, which UnifAce version will be shown in "status"?
"First comes, first serve"
You will "only" see the version of the first session, even is the first one stopped 🙂

*) be careful, the display name could any name you want.
But on a default, out of the box installation, this is true.

Ingo


We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain

It's not a Bug, it's really a Feature.

We migrated our License to Uniface 10 on "04-OCT-2019 11:39:19".

So we had the time to test and play with Uniface 10, while running the production system on Uniface 9. All with the same License.


Norbert


We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain

Yes, we run our development server on one licence, but are currently managing 3 production environments in 9.7.04, 9.7.05 and 10.3. 

And on customer site, we can run their production in 9.7 and the 'testbed' for testing the next version in 10. 

So this is good, but I think Ingo was calling the fact that if you start a 9.X environment, and a 10 and then come out of the 9.X environment, the licence manager still shows it as a 9.X client, the bug. 


Iain


We use the following code in a service run on the server. 

 lfiledump "%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^%%^", "inputfile.txt"
forlist v_executable in "C:\\Program Files\\Common Files\\Compuware\\dlmcv.exeC:\\Program Files (x86)\\Common Files\\Compuware\\dlmcv.exe"
if($lfileexists(v_executable ))
break
endif
endfor
if(v_executable != "")
activate "SYS_OSCOMMAND".COMMANDOUT("%%"%%v_executable%%%%%" -usage -feat UCLIENT < inputfile.txt",v_data)
endif

 Which returns (marginally) parseable text output. This allows us to display client usage to our customer's on a menu option, and has cut down massively on them calling our support line to find out "who's using all the licencces". 

I don't know offhand if there's a filter for 'pool' because we don't (yet) use them. 


Iain

Hi Iain

Indeed, that was my question 🙂
The license manger shows only the first UnifAce version which was locked out.
And this is a "bug", but such a minor one ...
Ingo