*BSD News Article 91381


Return to BSD News archive

Path: euryale.cc.adfa.oz.au!newshost.carno.net.au!harbinger.cc.monash.edu.au!not-for-mail
From: Chooka <dhenshaw@silas.cc.monash.edu.au>
Newsgroups: comp.unix.bsd.freebsd.misc
Subject: Finding services offered on machine.
Date: Wed, 19 Mar 1997 20:40:12 +1100
Organization: Monash University
Lines: 27
Message-ID: <332FB47C.2781E494@silas.cc.monash.edu.au>
NNTP-Posting-Host: ascend-1-30.cc.monash.edu.au
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
X-NNTP-Posting-User: root
X-Mailer: Mozilla 3.01Gold (X11; I; FreeBSD 2.1.5-RELEASE i386)
Xref: euryale.cc.adfa.oz.au comp.unix.bsd.freebsd.misc:37291

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