In-use Network Ports
Rick Stevens
rstevens at vitalstream.com
Mon Mar 21 16:55:53 UTC 2005
Jeff Kinz wrote:
> On Mon, Mar 21, 2005 at 07:03:57AM -0800, Bone Randy wrote:
>
>>Under Red Hat Enterprise 3 WS, is there a command to
>>verify that a particular network port is in use? Is
>>there a file where port information is stored?
>
>
>
> uh, socklist?
>
> (try the "apropos" command for these types of questions)
>
> # socklist
> type port inode uid pid fd name
> tcp 32768 1124 29 828 6 rpc.statd
> tcp 32769 1323 0 1478 2 fam
> tcp 515 1373 0 1095 5 lpd
> tcp 139 1534 0 1259 9 smbd
> tcp 111 1067 0 800 4 portmap
> tcp 6000 1603 0 1322 1 X
> tcp 22 1278 0 1029 3 sshd
> tcp 25 1421 0 1124 4 sendmail
> tcp 139 635224 0 12671 5 smbd
> udp 32768 1121 29 828 5 rpc.statd
> udp 514 1038 0 775 25 syslogd
> udp 137 1542 0 1264 8 nmbd
> udp 137 1539 0 1264 6 nmbd
> udp 138 1543 0 1264 9 nmbd
> udp 138 1540 0 1264 7 nmbd
> udp 33336 360970 0 2273 7 tcpdump
> udp 33337 360974 0 2273 8 tcpdump
> udp 33601 635225 0 12671 12 smbd
> udp 33736 722428 0 2273 9 tcpdump
> udp 33256 253080 0 2273 4 tcpdump
> udp 33257 253084 0 2273 5 tcpdump
> udp 33258 253092 0 2273 6 tcpdump
> udp 1004 1105 0 828 4 rpc.statd
> udp 111 1066 0 800 3 portmap
Yes, that's one, but it's a Perl script. The basis of stuff is the
"netstat -p".
----------------------------------------------------------------------
- Rick Stevens, Senior Systems Engineer rstevens at vitalstream.com -
- VitalStream, Inc. http://www.vitalstream.com -
- -
- I doubt, therefore I might be. -
----------------------------------------------------------------------
More information about the Redhat-install-list
mailing list