tru64-unix-managers (formerly alpha-osf-managers) (1994-2012)
 help / color / mirror / Atom feed
* [SUMMARY] How do I find which process owns a tcp port?
@ 1996-10-10 14:08 P.Lister
  0 siblings, 0 replies; 4+ messages in thread
From: P.Lister @ 1996-10-10 14:08 UTC (permalink / raw)
  To: tru64-unix-managers

> Where "majority" said you to "get lsof" ?

Apologies - I should have mentioned that lsof lives at 
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ and at several mirrors, though 
the uk mirror seemed to be a couple of versions behind the current one - 3.77.

Peter Lister                             Email: p.lister@cranfield.ac.uk
Computer Centre, Cranfield University    Voice: +44 1234 754200 ext 2828
Cranfield, Bedfordshire MK43 0AL UK        Fax: +44 1234 751814

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [SUMMARY] How do I find which process owns a tcp port?
@ 1996-10-11 11:22 P.Lister
  0 siblings, 0 replies; 4+ messages in thread
From: P.Lister @ 1996-10-11 11:22 UTC (permalink / raw)
  To: tru64-unix-managers

> Where "majority" said you to "get lsof" ?

Apologies - I should have mentioned that lsof lives at 
ftp://vic.cc.purdue.edu/pub/tools/unix/lsof/ and at several mirrors, though 
the uk mirror seemed to be a couple of versions behind the current one - 3.77.

Peter Lister                             Email: p.lister@cranfield.ac.uk
Computer Centre, Cranfield University    Voice: +44 1234 754200 ext 2828
Cranfield, Bedfordshire MK43 0AL UK        Fax: +44 1234 751814

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [SUMMARY] How do I find which process owns a tcp port?
@ 1996-10-11 11:21 P.Lister
  0 siblings, 0 replies; 4+ messages in thread
From: P.Lister @ 1996-10-11 11:21 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks to everyone who replied. The overwhelming majority said "get lsof", and 
lsof -i tells me just what I need to know, with just one niggle  - it seems 
not to distinguish between source and destination address/port combinations, 
so that it seems impossible to express "show me all the connections from host 
x to port y". However, this is a very minor gripe, and it probably means I 
haven't delved the details out of the man page. It would also be nice to have 
extended host selection (i.e. everyone not on the local network), but I'm sure 
that these can be built into lsof, or postprocessed.

FWIW, I did check the archive, but I couldn't find any query which looked like 
what I needed. Hopefully, this email will be found by future enquirers before 
it gets asked again.

The non lsof answers mentioned various weird and wonderful options to netstat. 
Maybe there are some on other systems, but I certainly couldn't make them work 
on alpha-osf. To all the people who suggested ways of munging netstat I say 
thanks for the contribution, but have you heard about lsof? :-)

-- 
Peter Lister                             Email: p.lister@cranfield.ac.uk
Computer Centre, Cranfield University    Voice: +44 1234 754200 ext 2828
Cranfield, Bedfordshire MK43 0AL UK        Fax: +44 1234 751814
------------------------------------------------------------------------
GLENDOWER I can call spirits from the vasty deep.
HOTSPUR   Why, so can I, or so can any man;
          But will they come when you do call for them? (Henry IV, pt 1)
------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread
* [SUMMARY] How do I find which process owns a tcp port?
@ 1996-10-10 10:02 P.Lister
  0 siblings, 0 replies; 4+ messages in thread
From: P.Lister @ 1996-10-10 10:02 UTC (permalink / raw)
  To: tru64-unix-managers


Thanks to everyone who replied. The overwhelming majority said "get lsof", and 
lsof -i tells me just what I need to know, with just one niggle  - it seems 
not to distinguish between source and destination address/port combinations, 
so that it seems impossible to express "show me all the connections from host 
x to port y". However, this is a very minor gripe, and it probably means I 
haven't delved the details out of the man page. It would also be nice to have 
extended host selection (i.e. everyone not on the local network), but I'm sure 
that these can be built into lsof, or postprocessed.

FWIW, I did check the archive, but I couldn't find any query which looked like 
what I needed. Hopefully, this email will be found by future enquirers before 
it gets asked again.

The non lsof answers mentioned various weird and wonderful options to netstat. 
Maybe there are some on other systems, but I certainly couldn't make them work 
on alpha-osf. To all the people who suggested ways of munging netstat I say 
thanks for the contribution, but have you heard about lsof? :-)

-- 
Peter Lister                             Email: p.lister@cranfield.ac.uk
Computer Centre, Cranfield University    Voice: +44 1234 754200 ext 2828
Cranfield, Bedfordshire MK43 0AL UK        Fax: +44 1234 751814
------------------------------------------------------------------------
GLENDOWER I can call spirits from the vasty deep.
HOTSPUR   Why, so can I, or so can any man;
          But will they come when you do call for them? (Henry IV, pt 1)
------------------------------------------------------------------------

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1996-10-11 11:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-10-10 14:08 [SUMMARY] How do I find which process owns a tcp port? P.Lister
  -- strict thread matches above, loose matches on Subject: below --
1996-10-11 11:22 P.Lister
1996-10-11 11:21 P.Lister
1996-10-10 10:02 P.Lister

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox