*BSD News Article 91647


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!news.cs.su.oz.au!metro!metro!munnari.OZ.AU!news.ecn.uoknor.edu!feed1.news.erols.com!cpk-news-hub1.bbnplanet.com!news.bbnplanet.com!news.sprintlink.net!news-peer.sprintlink.net!uunet!in1.uu.net!199.232.240.7!kayrad.ziplink.net!zip1.ziplink.net!not-for-mail
From: Steve Bernacki <steve@ziplink.net>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Re: Finding services offered on machine.
Date: 19 Mar 1997 14:19:36 GMT
Organization: ziplink.net
Lines: 57
Message-ID: <5goslo$9im$1@kayrad.ziplink.net>
References: <332FB47C.2781E494@silas.cc.monash.edu.au>
NNTP-Posting-Host: zip1.ziplink.net
Mime-Version: 1.0
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: 8bit
X-Newsreader: TIN [UNIX 1.3 unoff BETA release 961203]
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37487

The easiest way to see what services are running on your system right
now is to issue the following command:

netstat -a | egrep LISTEN

You'll get output as follows:

tcp        0      0  *.6000                 *.*                    LISTEN
tcp        0      0  *.smtp                 *.*                    LISTEN
tcp        0      0  *.5432                 *.*                    LISTEN
tcp        0      0  *.ssh                  *.*                    LISTEN
tcp        0      0  *.auth                 *.*                    LISTEN
tcp        0      0  *.telnet               *.*                    LISTEN
tcp        0      0  *.ftp                  *.*                    LISTEN
tcp        0      0  *.sunrpc               *.*                    LISTEN

As you see, this machine is running an X server, smtp, postgresql server
[port 5432], ssh, identd, telnet, ftp, and sunrpc.

-S

In comp.unix.bsd.freebsd.misc Chooka <dhenshaw@silas.cc.monash.edu.au> wrote:
: Hi all.

: I'll be honest.  I'm totally stumped.

: I was trying to determine what services were running on my machine and
: in particular, what ports were in use.

: After reading various man pages I thought that 
: 	
: 	rpcinfo -p localhost

: would report this information.  Instead all I got was 

:     program vers proto   port
:     100000    2   tcp    111  portmapper
:     100000    2   udp    111  portmapper

: This is far from adequate.....
: Furthermore, looking at /etc/services I see that port 111 is used by WKS
: rpcbind - the SUN Remote procedure call...

: Can someone clue me in as to which command will report the statistics I
: need ?

: Thanx In Advance
: David Henshaw.
: dhenshaw@silas.cc.monash.edu.au

--
Steve Bernacki, Jr. | Systems/Networks Administrator
steve@ziplink.net   | Ziplink, LLC 

"I'm so tired but I can't sleep / standing on the edge of something
much too deep / Funny how I feel so much but cannot say a word /
We are screaming inside but we can't be heard." - Sarah McLachlan