getting process info from netstat ?

getting process info from netstat ?

Post by M. » Fri, 14 Aug 1998 04:00:00



On solaris 2.5, I need to identify the pid of a process connected to a
specific port. Is there any way I can do this??
--
M.O

remove nospam. from the above address while replying.
 
 
 

getting process info from netstat ?

Post by mike kierna » Fri, 14 Aug 1998 04:00:00


try lsof ?


> On solaris 2.5, I need to identify the pid of a process connected to a
> specific port. Is there any way I can do this??
> --
> M.O

> remove nospam. from the above address while replying.

--

System Engineer           |  Tel. +0031-(0)592-36-4289
Western Geophysical       |
NAM Systems Group         |
Assen, Netherlands        |
*****************************************************************************

 
 
 

getting process info from netstat ?

Post by David Ste » Fri, 14 Aug 1998 04:00:00



> On solaris 2.5, I need to identify the pid of a process connected to a
> specific port. Is there any way I can do this??

The -i option of "lsof" (ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/)
can do this, and "lsof" is a nifty utility to have anyway ...

I'm not on Solaris but the man page says it works on Solaris.

 
 
 

getting process info from netstat ?

Post by Mike D. Ka » Wed, 26 Aug 1998 04:00:00




Quote:

>On solaris 2.5, I need to identify the pid of a process connected to a
>specific port. Is there any way I can do this??

yes, get 'lsof'

The latest release of lsof is always available via anonymous ftp
from vic.cc.purdue.edu.  Look in pub/lsof.README for its location.

--
/*-------------------------------------------------------------*/
/*  Mike D. Kail                    |  voice:  (619) 410-3773  */
/*  Unix System Architect           |  fax:    (619) 410-3701  */

/*-------------------------------------------------------------*/

 
 
 

1. AIX 5.1 - Getting the 'netstat -s' info from a C programs

Hi,

I would like to get the netstat -s info from a C program on the AIX 5.1.
I am able to do this on AIX 4.3.3 by reading the "tcpstat", "ipstat",
"icmpstat" and "udpstat" kernel structure.
But in AIX 5.1, the data is not available in this kernel symbols, instead
the kernel is maintaining a stream or a socket address. Could anyone please
let me know how to get the protocols information in AIX 5.1.

Thanks in advance.

--
Regards,
Rams.

2. How to deiconize an application from the xterm?

3. Getting process IDs from netstat ?

4. Mutex and POSIX Threads

5. getting process info

6. unable to access floppy/cdrom in Gnome.

7. HELP: getting process info

8. pppd doesn't connect twice

9. Getting process info from a window

10. Getting Process Info From thernal

11. need help getting command info for a process

12. Getting process info

13. getting process info