cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

PTCSTATUS.bat writes "counted" from all licenses

STLK_RD8
5-Regular Member

PTCSTATUS.bat writes "counted" from all licenses

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

1 ACCEPTED SOLUTION

Accepted Solutions


@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 


Martin Hanák

View solution in original post

9 REPLIES 9

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


Martin Hanák
STLK_RD8
5-Regular Member
(To:MartinHanak)

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"

Hi,

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


Martin Hanák
STLK_RD8
5-Regular Member
(To:MartinHanak)

.

STLK_RD8
5-Regular Member
(To:MartinHanak)

Hi this is a screen shot from the server 

On a client machine it says counted all over

ptcstatus.jpg

 


@STLK_RD8 wrote:

Hi this is a screen shot from the server 

On a client machine it says counted all over

ptcstatus.jpg

 


Hi,

 

1.]

open license file MartinHanak_0-1648024251483.png in Notepad and check following line

SERVER name-or-IP PTC_HOSTID=xx-xx-xx-xx-xx-xx 7788

Q: What do you see ? Name -OR- IP address ?

 

2.]

open ptcstatus.bat located on server in Notepad and check following line

set PTC_D_LICENSE_FILE=

Q: What do you see ? Path to file -OR- 7788@name -OR- 7788@IPaddress ?

 

3.]

open ptcstatus.bat located on client in Notepad and check following line

set PTC_D_LICENSE_FILE=

Q: What do you see ? Path to file -OR- 7788@name -OR- 7788@IPaddress ?

 

4.]

run ptcstatus.bat on client when client is connected to same network as server (no VPN used).

Q: What do you see ?

 

5.]

Q: What firewall is used on server ?

 

6.]

read following documents

https://www.ptc.com/en/support/article/cs110511 

https://www.ptc.com/en/support/article/cs273568 

 


Martin Hanák
STLK_RD8
5-Regular Member
(To:MartinHanak)


@MartinHanak wrote:

@STLK_RD8 wrote:

Hi this is a screen shot from the server 

On a client machine it says counted all over

ptcstatus.jpg

 


Hi,

 

1.]

open license file MartinHanak_0-1648024251483.png in Notepad and check following line

SERVER name-or-IP PTC_HOSTID=xx-xx-xx-xx-xx-xx 7788

Q: What do you see ? Name -OR- IP address ?

NAME

 

2.]

open ptcstatus.bat located on server in Notepad and check following line

set PTC_D_LICENSE_FILE=

Q: What do you see ? Path to file -OR- 7788@name -OR- 7788@IPaddress ?

PATH to file

 

 

3.]

open ptcstatus.bat located on client in Notepad and check following line

set PTC_D_LICENSE_FILE=

Q: What do you see ? Path to file -OR- 7788@name -OR- 7788@IPaddress ?

 

4.]

run ptcstatus.bat on client when client is connected to same network as server (no VPN used).

Q: What do you see ?

7788@name

 

5.]

Q: What firewall is used on server ?

Windows firewall as i can see

 

6.]

read following documents

https://www.ptc.com/en/support/article/cs110511 

https://www.ptc.com/en/support/article/cs273568 

 


 

dnordin
15-Moonstone
(To:STLK_RD8)

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.


@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 


Martin Hanák
Top Tags