Reporting License Usage for Teamcenter

September 28, 2015

Since the release of Teamcenter 8.3 and through Teamcenter 10.1.4, Siemens has provided a license usage script that reads the FlexLM license server log file and converts its usage information into a more readable format that can be imported into Microsoft Excel.



Figure 01 below shows the resulting report after it has been imported into a spreadsheet and the primary entries that are retrieved from the log file. Other entries that are not displayed in this window can be imported from the utility’s output and displayed as you choose.


reporting license usage for teamcenter 01

Teamcenter module usage is tracked in the license server log (ugslicensing.log or splm_ugslmd.log) located in the same folder where the license server is installed.

The LicenseUsageAuditTool is located on the installation media in the …additional_applicationsLicenseUsageAuditTool directory. Unzip the LicenseUsageAuditTool.zip to a convenient location and follow the steps below for usage. The extracted folders and files will look like this:


    |   ReadMe.txt
    |       LicenseUsageAuditTool.bat
    |       LicenseUsageAuditTool.sh
    |       AuditUsage.xml


Implementation at your site requires some system setup to have the additional logging information written to the log file where it will be parsed by the LicenseUsageAuditTool. The steps below will normally all be done on the license server but the script can run elsewhere as long as the files and communication to the Teamcenter license server is available.

On the license server, an environment variable must be set to UGS_LICENSING_NOTE=ON to enable logging. This can also be set in tc_profilevars.bat file located in your TC_DATA folder.

reporting license usage for teamcenter 02

On the server where the utility will be run, set the JAVA_HOME environment variable to point to the Java directory.

reporting license usage for teamcenter 03

After these are set you should restart the Siemens PLM License Server service to pick up the new logging variable.

Note: Before restarting the service, delete the existing log file to have a clean log file to start recording the license usage information.

reporting license usage for teamcenter 04

Below is a sample of the entries that will be shown in the Teamcenter license server log file after the additional logging variable is set:

11:17:52 (ugslmd) Licenses are case sensitive for ugslmd
11:17:52 (ugslmd)
11:17:52 (ugslmd) EXTERNAL FILTERS are OFF
11:17:52 (lmgrd) ugslmd using TCP-port 53108
11:25:15 (ugslmd) TCP_NODELAY NOT enabled
12:03:41 (ugslmd) OUT: “teamcenter_author” user1@TcServer
12:04:52 (ugslmd) IN: “teamcenter_author” user1@TcServer
12:50:29 (ugslmd) OUT: “teamcenter_author” user1@TcServer
12:53:29 (ugslmd) IN: “teamcenter_author” user1@TcServer
12:54:13 (ugslmd) OUT: “teamcenter_author” user2@TcServer
12:55:47 (ugslmd) IN: “teamcenter_author” user2@TcServer
12:56:08 (ugslmd) OUT: “teamcenter_consumer” user3@TcServer
12:57:09 (ugslmd) IN: “teamcenter_consumer” user3@TcServer
12:57:25 (ugslmd) OUT: “teamcenter_consumer” user4@TcServer
12:57:50 (ugslmd) IN: “teamcenter_consumer” user4@TcServer
12:58:07 (ugslmd) OUT: “teamcenter_consumer” user5@TcServer
12:58:51 (ugslmd) IN: “teamcenter_consumer” user5@TcServer
12:59:12 (ugslmd) OUT: “teamcenter_author” user1@TcServer
13:00:17 (ugslmd) IN: “teamcenter_author” user1@TcServer
13:01:04 (ugslmd) OUT: “teamcenter_consumer” user3@TcServer
13:02:13 (ugslmd) OUT: “teamcenter_consumer” user5@TcServer
13:02:34 (ugslmd) OUT: “manufacturing_access” user5@TcServer
13:02:59 (ugslmd) OUT: “lifecycle_rep_access” user5@TcServer
13:03:19 (ugslmd) IN: “lifecycle_rep_access” user5@TcServer
13:03:20 (ugslmd) IN: “manufacturing_access” user5@TcServer
13:03:20 (ugslmd) IN: “teamcenter_consumer” user5@TcServer
13:03:33 (ugslmd) OUT: “manufacturing_access” user3@TcServer
13:04:13 (ugslmd) IN: “manufacturing_access” user3@TcServer
13:04:13 (ugslmd) IN: “teamcenter_consumer” user3@TcServer

The LicenseUsageAuditTool has command-line arguments that must be entered to gather the information from the log file, and to define where it should put the exported CSV file that will be imported into Microsoft Excel.


LicenseUsageAuditTool.bat [-pseudouser] –i -o

“-i” is the full path to the FlexLM log file.
“-o” is the full path to the CSV output file.

“-pseudouser” tells the utility to output names as pseudonyms to avoid revealing real user names.

Example (all on a single line):

LicenseUsageAuditTool.bat -pseudouser -i C:SPLMSPLMLicenseServersplm_ugslmd.log -o D:logsoutput.csv

When properly set up and run, it will generate a CSV file in the location you specify which can be imported into Microsoft Excel. The example of an output file imported into Microsoft Excel below shows the primary entries, although there are others that are not displayed in this example. The entries shown can be controlled when the CSV file is imported into Microsoft Excel to get only the fields desired.

reporting license usage for teamcenter 05

It’s time to unleash your potential

Reach out to the team at Applied CAx to learn how our solutions can make your company’s goals achievable.