Operating System - HP-UX
1823415 Members
2610 Online
109655 Solutions
New Discussion юеВ

flexlm license port cannot be released

 
haneps
Occasional Advisor

flexlm license port cannot be released

Hi All,

Good day!

I am trying to restart one of the flexlm license on one of my hp-ux server, unfortunately to no avail.

Upon checking the log i suspected that the port might have to be cleared first in order for me to restart it. Can someone with experience help me? Thanks in advance.

The license log:-

10:53:08 (lmgrd) lmgrd running as root:
10:53:08 (lmgrd) This is a potential security problem
10:53:08 (lmgrd) And is not recommended
10:53:23 (lmgrd) The TCP port number in the license, 1802, is already in use.
10:53:23 (lmgrd) Possible causes:
10:53:23 (lmgrd) 1) lmgrd is already running for this license.
10:53:23 (lmgrd) 2) The OS has not "cleared" this port since lmgrd died.
10:53:23 (lmgrd) 3) Another process is using this port number (unlikely).
10:53:23 (lmgrd) Solutions:
10:53:23 (lmgrd) 1) Make sure lmgrd and all vendor daemons for this
10:53:23 (lmgrd) license are not running.
10:53:23 (lmgrd) 2) You may have to wait for the OS to clear this port.
10:53:23 (lmgrd) Retrying for about 5 more minutes
10:53:41 (lmgrd) Still trying...
10:53:59 (lmgrd) Still trying...
10:54:18 (lmgrd) Still trying...
10:54:36 (lmgrd) Still trying...
10:54:54 (lmgrd) Still trying...
10:55:12 (lmgrd) Still trying...

The license port is 1802.

kopa:/usr/local/flexlm/mentor/bin # netstat -an |grep 1802
tcp 0 0 144.250.2.31.1802 10.246.78.103.1313 CLOSE_WAIT
tcp 0 0 144.250.2.31.1802 10.246.76.49.4667 CLOSE_WAIT
tcp 0 0 144.250.2.31.57212 144.250.2.31.1802 FIN_WAIT_2
tcp 0 0 144.250.2.31.1802 144.250.2.31.57185 CLOSE_WAIT
tcp 0 0 144.250.2.31.1802 144.250.2.31.57291 CLOSE_WAIT
tcp 0 0 144.250.2.31.57292 144.250.2.31.1802 FIN_WAIT_2
tcp 0 0 144.250.2.31.1802 10.246.76.49.4697 CLOSE_WAIT
tcp 0 0 144.250.2.31.1802 144.250.63.143.1672 CLOSE_WAIT
tcp 0 0 144.250.2.31.1802 10.246.76.49.4630 CLOSE_WAIT
tcp 0 0 *.1802 *.* LISTEN
tcp 0 0 144.250.2.31.1802 10.224.173.5.2171 CLOSE_WAIT
tcp 0 0 144.250.2.31.57411 144.250.2.31.1802 FIN_WAIT_2
tcp 0 0 144.250.2.31.1802 10.246.78.103.1316 CLOSE_WAIT
tcp 0 0 144.250.2.31.57211 144.250.2.31.1802 FIN_WAIT_2
tcp 0 0 144.250.2.31.1802 10.246.76.49.4540 CLOSE_WAIT
tcp 0 0 144.250.2.31.1802 10.246.76.49.4604 CLOSE_WAIT


kopa:/usr/local/flexlm/saber/log # uname -a
HP-UX kopa B.11.11 U 9000/861 2001811563 unlimited-user license
kopa3:/usr/local/flexlm/saber/log #

3 REPLIES 3
Ivan Krastev
Honored Contributor

Re: flexlm license port cannot be released

Check with lsof which application is using the port and kill/stop it.

regards,
ivan
haneps
Occasional Advisor

Re: flexlm license port cannot be released

Unfortunately no lsof installed and installing it is not an option. Is there any other way?
Ivan Krastev
Honored Contributor

Re: flexlm license port cannot be released

Use ndd and close CLOSE_WAIT/FIN_WAIT sessions:

See solution from this thread - http://forums.itrc.hp.com/service/forums/questionanswer.do?threadId=1000913


netstat -a|grep -i "Port"
tcp 0 0 localhost.1521 xxx.xx.xx.xx.2003 FIN_WAIT_2
this TCP connections is waiting for a "close" , until it gets no close command, it is still blocking the port 1521

you have to manually close this tcp connection
ndd -get /dev/tcp tcp_status |grep FIN_WAIT

0000000088085128 xxx.xx.xx.xx (IP Address) 6968ed0a 6968ed0a 00000000 0001825e 6959d525 6959d525 00008000 00500 04096 [e9da,e9e0] TCP_FIN_WAIT_2*

the 1st column is interesting ->
ndd -set /dev/tcp tcp_discon 0x88085128

ndd -get /dev/tcp tcp_status |grep FIN_WAIT -> the tcp connections should not appear any longer


regards,
ivan