Skip to main content
5-Regular Member
March 11, 2022
Solved

PTCSTATUS.bat writes "counted" from all licenses

  • March 11, 2022
  • 2 replies
  • 7203 views

Hi, when running ptcstatus.bat from a users PC, it writes "counted" at all licenses. 

 

running it from the server it writes who are using the license and etc.

Any one know what setting to adjust. 

I guess it is either the VPN or Firewall that need to allow access.

 

I hope someone can help me, thanks

Best answer by MartinHanak

@dnordin wrote:

From the image of the status on the license server, it appears that you have multiple line items in the license file for the same feature, but some of those line items are not valid anymore which would account for the multiple lines of the same feature showing "counted" alongside the lines showing in use and free for that same feature. You can edit the license file on the PTC site to remove the outdated/invalid options from the license file. If the online tool doesn't allow you to remove the invalid items, you can open a ticket to have license support do it for you. You can also just remove them from your license file manually, but they'll show up again if you retrieve a new license file from the PTC site.

 

If your license server is Windows 2016+, you can test the network port connection via PowerShell. From the client machine, you can run a PowerShell window and use test-netconnection –ComputerName <license server name> -port <port number> to test access to the license server via a specific port.
If the test is successful, you'll see "TcpTestSucceeded : True" in the results of the command.

 

Regards,

Dan N.


Hi,

the word counted does not necessarily mean an error.

Please read https://www.ptc.com/en/support/article/cs271786 

2 replies

24-Ruby III
March 11, 2022

Hi,

 

VPN:

Add additional line into C:\Windows\System32\drivers\etc\hosts file containing IP address and name of license server

 

Firewall:

Turn off firewall on license server temporarily and run ptcstatus.bat from user's computer. If this resolve the problem then turn on firewall and define two incoming rules enabling communication for ptc_d.exe and lmadmin.exe (or lmgrd.exe).

STLK_RD85-Regular MemberAuthor
5-Regular Member
March 22, 2022

Hi,

 

It didnt helped 

I see that I get a warning in the ptcstatus

Warning(-96): Cannot connect to license server 

 

And then it writes all the license and counted

But I can ping both name and IP, and also log onto the server remote, so i dont understand why it says "wont connect"

24-Ruby III
March 22, 2022

Hi,

run ptcstatus on  license server and upload picture of ptcstatus output.

16-Pearl
March 23, 2022

From the image of the status on the license server, it appears that you have multiple line items in the license file for the same feature, but some of those line items are not valid anymore which would account for the multiple lines of the same feature showing "counted" alongside the lines showing in use and free for that same feature. You can edit the license file on the PTC site to remove the outdated/invalid options from the license file. If the online tool doesn't allow you to remove the invalid items, you can open a ticket to have license support do it for you. You can also just remove them from your license file manually, but they'll show up again if you retrieve a new license file from the PTC site.

 

If your license server is Windows 2016+, you can test the network port connection via PowerShell. From the client machine, you can run a PowerShell window and use test-netconnection –ComputerName <license server name> -port <port number> to test access to the license server via a specific port.
If the test is successful, you'll see "TcpTestSucceeded : True" in the results of the command.

 

Regards,

Dan N.

24-Ruby III
March 24, 2022

@dnordin wrote:

From the image of the status on the license server, it appears that you have multiple line items in the license file for the same feature, but some of those line items are not valid anymore which would account for the multiple lines of the same feature showing "counted" alongside the lines showing in use and free for that same feature. You can edit the license file on the PTC site to remove the outdated/invalid options from the license file. If the online tool doesn't allow you to remove the invalid items, you can open a ticket to have license support do it for you. You can also just remove them from your license file manually, but they'll show up again if you retrieve a new license file from the PTC site.

 

If your license server is Windows 2016+, you can test the network port connection via PowerShell. From the client machine, you can run a PowerShell window and use test-netconnection –ComputerName <license server name> -port <port number> to test access to the license server via a specific port.
If the test is successful, you'll see "TcpTestSucceeded : True" in the results of the command.

 

Regards,

Dan N.


Hi,

the word counted does not necessarily mean an error.

Please read https://www.ptc.com/en/support/article/cs271786