Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

port number used by NFS

7 views
Skip to first unread message

victorf...@yahoo.com

unread,
Oct 19, 2007, 1:21:13 PM10/19/07
to
I thought the port number used by NFS would be displayed by netstat or
pfiles.

# grep nfs /etc/services
nfsd 2049/udp nfs # NFS server daemon
(clts)
nfsd 2049/tcp nfs # NFS server daemon
(cots)
#
# netstat -a | grep 2049
#
# ps -ef | grep nfs
root 182 1 0 Sep 25 ? 0:00 /usr/lib/nfs/lockd
daemon 183 1 0 Sep 25 ? 0:00 /usr/lib/nfs/statd
root 308 1 0 Sep 25 ? 1:04 /usr/lib/nfs/nfsd
root 306 1 0 Sep 25 ? 0:00 /usr/lib/nfs/mountd
root 20550 20108 0 11:51:52 pts/1 0:00 grep nfs
#
# pfiles 308 | grep port
#

It seems that NFS is not using any port?

Thanks
Victor

Andrew Gabriel

unread,
Oct 19, 2007, 1:59:07 PM10/19/07
to
In article <1192814473.9...@e9g2000prf.googlegroups.com>,

netstat uses /etc/services (or the underlying nameservice database)
to give the name, so either one of the following will work:

netstat -a | grep nfsd
netstat -an | grep 2049

--
Andrew Gabriel
[email address is not usable -- followup in the newsgroup]

Daniel Rock

unread,
Oct 19, 2007, 1:41:48 PM10/19/07
to
victorf...@yahoo.com wrote:
> It seems that NFS is not using any port?

Not in user space. In Solaris the NFS server runs inside the kernel.

--
Daniel

0 new messages