Skip to main content
1-Visitor
October 14, 2020
Question

how to view usage on a license server by user

  • October 14, 2020
  • 2 replies
  • 45026 views

Hello,

 

We are trying to see how many users were using PTC for the last year.  I would like to get username and computer name. Our network license server is running on Windows OS. Any ideas/recommendations are appreciated.

Thank you

Leo

2 replies

23-Emerald III
October 14, 2020

Which PTC product are you looking for information for?

Windchill captures the information in log files.

Creo captures the information in FlexLM logs.

 

Also this is NOT the group to be asking questions in. The menus allow you to select the product group for questions.

edujrl1-VisitorAuthor
1-Visitor
October 14, 2020

Thank you, PTC Creo,

I am not sure if we have Windchill  installed, if I install it now will I be able to see those records going back ?

I am sorry which group should I ask this questions at ?

Thanks again

13-Aquamarine
October 14, 2020

There are really two thing you want to track. The number of concurrent licenses in use during the day. And then the folks that startup Creo every day. Those are two very different numbers.

 

Rather than buying software to do this I suggest a roll your own approach.

 

Tracking Licenses

I suggest you read my presentation from 2014 PTC Live Global. Attached, tracking starts on page 23, but you need to understand the stuff before that page.

What I intended to say on each slide can be found by clicking on the icon in the upper left corner of the pdf.

davehaigh_0-1602712954293.png

 

 

We have it email us the results of the day every night:

davehaigh_1-1602712954301.png

 

 

 

Getting the number of users that access the software each day

As for tracking users I have this line in my startup script.

start C:\ptc\startup_scripts\start-user-tracking.vbs

 

The virtual basic is just a wrapper for a batch file so the user doesn’t see a new command window pop up when they start Creo.

davehaigh_2-1602712954303.png

This is the batch script (see attached. You’ll need to replace your server name and share name.

davehaigh_3-1602712954306.png

The following is from an internal email:

I’ve been wanting to get the number of unique users that start up Creo Parametric each day.

This is a different number than the number of concurrent licenses used.

 

For example this is the number of unique users that started up Creo 4 last week, vs the number of concurrent licenses used up.

Tuesday was our Go-Live day for Creo 4, so we had a lot of folks installing and firing up the software.

davehaigh_4-1602712954309.jpeg

I created this graph by manually massaging the data files in Excel. You will notice later that on day one, my scripts will give a different number.

The reason for this difference is in Excel I eliminated duplicate of the users, if they started Creo on multiple machines I only counted them once.

In the scripts below I’m not doing that. If they startup Creo on multiple machines I count each one.  

 

Attached are four text files. Save these out and change the extension to .bat

  • BatchSubstitute.txt
  • Get-counts.txt
  • Uniq.txt
  • Daily-usage-tracking.txt

 

You’ll need to edit the last script for your own environment. Server name, share name, and paths.

 

The Creo Startup Script

The process starts in the Creo startup script where I have these two lines near the top of the script.

rem ** Gather daily-usage data

start L:\scripts\startup\%CREOSHORTVER%\daily-usage-tracking.bat

 

This script outputs a file with content like this: giving the user name and machine name.

Daily User Count for Tue 01/28/2020

Username,MachineName

 

davehaigh_5-1602712954312.png

The numbers in front of the filename are the year, month, & day

In the script, that date is set by this command:

set TODAY=20%date:~-2%%date:~4,2%%date:~7,2%

 

Add batch files to the output folder

In the output folder, you’ll get a collection of text files like this.

davehaigh_6-1602712954315.jpeg

Place the other three batch files in this folder.

 

Getting the user count

Double clicking on the get-counts.bat will output full-count.txt file.

The yellow column is the date, the blue column are the number of users.

davehaigh_7-1602712954318.jpeg

Excel Manipulation

Import the full-count.txt file into Excel. Use the colon as the delimiter.

You should get this:

davehaigh_8-1602712954321.jpeg

 

We need to convert column A into a date:

  • Select Column A by picking on the A at the head of the column
  • In Excel pick the Data ribbon, and then pick Text to Columns

davehaigh_9-1602712954322.jpeg

 

  • Pick the Next button twice until you get to step 3.
  • Pick the Date radio button and use the pull down to select YMD, then pick Finish

davehaigh_10-1602712954326.jpeg

 

  • Now you can make a pretty graph to impress folks with….

davehaigh_11-1602712954339.jpeg

  • But….  if you add in the number of licenses used on those days you have a really useful tool to show you how much head room you have in your license pool
  • davehaigh_12-1602712954350.png

If you want, you could set up a scheduled task to generate the full-count.txt file every night.

 

Enjoy!

 

The scripts are in the zip file with the extension .txt. change them to .bat to use. 

DomenicLaritz
17-Peridot
October 20, 2020

For years we have used the product JTB FlexReport to monitor the utilization of our concurrent licenses.
I think the price/performance ratio of this software is excellent.
The corporation I work for chose the enterprise solution OpenLM some time ago.
OpenLM can do far more than I would need.
Of course, this is also reflected in the price. But since the costs are shared between different companies of the corporation, it doesn't really matter compared to JTB FlexReport.

13-Aquamarine
November 30, 2020

So we do have OpenLM, I just find it is a bit of information overload. It provides a level of information I don't really need to make a purchasing decision. 

 

Plus I've not figured out how to have it email me daily tallies of usage. 

 

Our low tech approach gives me all the data I need to keep an eye on the usage vs the number of licenses, to make sure we don't run into an issue of folks not being able to acquire licenses.  

 

This isn't perfect. We have had very little usage of the advanced Simulate license over the last few years. So we reduced the number we bought of that license, to increase the number of Simulate Live licenses. Unknown to me, one of the advanced users of Simulate, started mentoring a bunch of young engineers earlier this year on the software, so the use of it suddenly ballooned. Meaning users were getting rejected because all of the available licenses were in use. I had to transfer a license from one of our other networks to resolve the issue. 

 

The thing is, OpenLM or any other license tracker would not have been able to anticipate the increase usage of that feature any better than our low tech approach.  

15-Moonstone
November 30, 2020

I believe the Advanced simulation is now included in Creo 7.0.