For any Unix/TCP socket types out there:
I need a way to tie an open socket to it's creating process. Netstat
doesn't seem to be the answer, as it returns only usage statistics, but
no process-specific information.
Thanks (from a VMS person -- gee, that'll really enhance my chances of
getting a response ;-)). BTW, on VMS, for any of you versed in both
OS's, you'd accomplish it with the following:
UCX> sh dev/port=1575
Port Remote
Device_socket Type Local Remote Service Host
bg4553 STREAM 1526 0 0.0.0.0
$sh dev/fu bg4553
Device BG4553:, device type unknown, is online, mounted, record-oriented
device, network device, mailbox device.
Error count 0 Operations completed 249
Owner process "ORA_TNS1F18C718" Owner UIC [MREIS]
Owner process ID 37201155 Dev Prot S:RWPL,O:RWPL,G:RWPL,W:RWPL
Reference count 1 Default buffer size 25
--
_____ _____
( ___ )--------------------------------------------------------------( ___ )
| / | Danville, CA http://www.ccnet.com/~reis | \ |
| / | | \ |
|___| "You never know when you're makin' a memory" - R. L. Jones |___|
(_____)--------------------------------------------------------------(_____