From: Hustert Klaus-CKH035 (Klaus.Hustert@motorola.com)
Date: Thu Jun 20 2002 - 02:11:22 EDT
Hi,
tanks a lot to all who has responed. It is good to know that a lot of good admins are not to fine to give answers on easy questions !!
Here the summary for the question >>how I can see any port activities<<:
The "netstat -a" or "netstat -an" command will show active connections and
their port numbers.
You can see which ports are open remotely by using the excellent tool 'nmap'
(get from www.insecure.org), using it like:
nmap -sS -O -p1-65535 <host> (for TCP)
nmap -sU -p1-65535 <host> (for UDP)
On the local machine to map these to processes, your only choice is 'lsof'
(get from hpux.connect.org.uk), which you can do a:
lsof -i | more
In your case something like lsof -i tcp:port (or udp:port) will do the job.
thx,
Klaus
>
> --
> ---> Please post QUESTIONS and SUMMARIES only!! <---
> To subscribe/unsubscribe to this list, contact
> majordomo@dutchworks.nl
> Name: hpux-admin@dutchworks.nl Owner:
> owner-hpux-admin@dutchworks.nl
>
> Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin
> (FTP, browse only)
> http://www.dutchworks.nl/htbin/hpsysadmin (Web,
> browse & search)
>
-- ---> Please post QUESTIONS and SUMMARIES only!! <--- To subscribe/unsubscribe to this list, contact majordomo@dutchworks.nl Name: hpux-admin@dutchworks.nl Owner: owner-hpux-admin@dutchworks.nl Archives: ftp.dutchworks.nl:/pub/digests/hpux-admin (FTP, browse only) http://www.dutchworks.nl/htbin/hpsysadmin (Web, browse & search)
This archive was generated by hypermail 2.1.7 : Sat Apr 12 2008 - 11:02:14 EDT