Operating System - HP-UX
1748180 Members
4272 Online
108759 Solutions
New Discussion юеВ

Re: How to release the port which is in use on HP-UX 11i V1

 
SOLVED
Go to solution
Narendra Uttekar
Regular Advisor

How to release the port which is in use on HP-UX 11i V1

test05:[/]# netstat -an|grep 6240
d84b6100 stream 0 0 d6240280 0 0 0 /tmp/.sapicm25700
d862c1c0 dgram 0 0 d62401c0 0 0 0 /var/spool/sockets/pwgr/client11102

I want to release this port i.e. 6240. I also stopped the pwgrd daemon and also deleted the file /tmp/.sapicm25700 & /var/spool/sockets/pwgr/client11102. But still the port 6240 shows in use. I also killed the process id releaed to pwgr but still it creates with new process id automatically. But i have checked the pwgrd daemon and it is not running.

Please let me know how to release this port number.

Thanks,
Narendra
7 REPLIES 7
Earl_Crowder
Trusted Contributor

Re: How to release the port which is in use on HP-UX 11i V1

TCP/UDP port 6240 doesn't appear to be in use. The files you listed are unix sockets.

"netstat -na | grep 6240 | grep -e udp -e tcp"

What led you to believe the port was in use?
KapilRaj
Honored Contributor

Re: How to release the port which is in use on HP-UX 11i V1

I think the '-na' makes sure that 6240 is printed instead of a service name you might have called the port number in /etc/services.

I would use lsof ( freeware ) to check openfiles ( which includes sockets ). I think lsof -i :6240 will print the pid of the process if at all that port is in use.
Nothing is impossible
Narendra Uttekar
Regular Advisor

Re: How to release the port which is in use on HP-UX 11i V1

Hi Earl,
I have run ├в netstat -na | grep 6240 | grep -e udp -e tcp├в but it doesn├в t show port in use but with ├в netstat -na | grep 6240├в it still shows same output as above. While installing EHP support pack of SAP on HP-UX the EHP log says port 6240 in use.

Kapil: Please can you let me know the url to download lsof (freeware). As I am not able to find the depot for HP-UX 11i V1.

Thanks,
Narendra
sarfaraj ahmad
Trusted Contributor
Solution

Re: How to release the port which is in use on HP-UX 11i V1

Hi Narendra,

please find the below link to download lsof package,

http://hpux.connect.org.uk/hppd/hpux/Sysadmin/lsof-4.84/

Hope it will be helpful for you and also don't forget to assign points who have helped you.
Alzhy
Honored Contributor

Re: How to release the port which is in use on HP-UX 11i V1

Use lsof.
Hakuna Matata.
Narendra Uttekar
Regular Advisor

Re: How to release the port which is in use on HP-UX 11i V1

Hi,
When i run the lsof for checking the port 6240 in use it doesn't show that port is in use. But still from netstat it is showing some sockets is using the port 6240.
test05:[/]# /usr/local/bin/lsof -i :6240
test05:[/]# netstat -an |grep 6240
d84b6100 stream 0 0 d6240280 0 0 0 /tmp/.sapicm25700
d862c1c0 dgram 0 0 d62401c0 0 0 0 /var/spool/sockets/pwgr/client11102

Please let me know how to kill or close this sockets for port 6240.

Thanks,
Narendra
Earl_Crowder
Trusted Contributor

Re: How to release the port which is in use on HP-UX 11i V1

Narendra,

Your output shows that port 6240 is not in use (the two lines show Inode numbers, not TCP/UDP port numbers).

Do you happen to have any logs from the installation process that show the error message?

Has the server been rebooted recently?

Is it patched to current levels?

Earl