SUMMARY: Freeing a Port on Solaris.

2007-12-24 22:36:00

Hi,
lsof is the solution to this. I downloaded lsof from
www.sunfreeware.com, did the make of lsof and ran the following
command,

lsof -i:9030

This give me the PID of the process which was holding the port.

Thanks to Following people for getting me the way to solution :

Stuart Whitby, Rahul Parasnis, Dan Lowe, Osama Ahmed, Joe Matusiewicz,
Benjamin Ritcey, Dana, Andrew Rotramel, Martynas Buozis, Ramiro Santos,
Douglas Palmer, John England, Hendrik Visage, Ed Rolison.

-----Original Message-----
From: Murtuza Bekhushi
Sent: Tuesday, April 30, 2002 7:17 PM
To: codeprof at codeprof.com
Subject: Freeing a Port on Solaris.

Hi all,
I had some service brought up on a particular
port. Now the process which brought up the services has gone defunct.
I am unable to find process id which has still held this port. The
output of "netstat -a |grep 9030" is

*.9030 *.* 0 0 0
0 LISTEN

How can I make this port free ?
I am using "SunOS 5.6 Generic_105181-23 sun4u
sparc SUNW,Ultra-80"

Pls. help.

Regards,
Murtuza.

Comments

Got something to say?

You must be logged in to post a comment.