Networking Forums

Networking Forums > Computer Networking > Linux Networking > List active NFS connections?

Reply
Thread Tools Display Modes

List active NFS connections?

 
 
John Oliver
Guest
Posts: n/a

 
      01-05-2007, 06:08 PM
I'm looking for a way to list all hosts that are mounting anything from
a given server via NFS. netstat doesn't show any NFS connections, and
rpcinfo seems to be too low-level for this.

--
* John Oliver http://www.john-oliver.net/ *
 
Reply With Quote
 
 
 
 
Joe Beanfish
Guest
Posts: n/a

 
      01-05-2007, 06:45 PM
John Oliver wrote:
> I'm looking for a way to list all hosts that are mounting anything from
> a given server via NFS. netstat doesn't show any NFS connections, and
> rpcinfo seems to be too low-level for this.
>


showmount

Note that it may be in sbin which may not be in non-root PATHs.
 
Reply With Quote
 
John Oliver
Guest
Posts: n/a

 
      01-05-2007, 11:16 PM
On Fri, 05 Jan 2007 14:45:48 -0500, Joe Beanfish wrote:
> John Oliver wrote:
>> I'm looking for a way to list all hosts that are mounting anything from
>> a given server via NFS. netstat doesn't show any NFS connections, and
>> rpcinfo seems to be too low-level for this.
>>

>
> showmount
>
> Note that it may be in sbin which may not be in non-root PATHs.


showmount winds up dumping the contents of /var/lib/nfs/rmtab That file
appears to list every host that has ever made an NFS connection. Some
Googling indicated that it would be a bad idea to null out that file for
some reason. So, I'm wondering what is the "right" way to reset it, so
I don't see records of hosts that haven't existed in years :-)

--
* John Oliver http://www.john-oliver.net/ *
 
Reply With Quote
 
patrick
Guest
Posts: n/a

 
      01-06-2007, 05:58 AM
In news:(E-Mail Removed),
John Oliver <(E-Mail Removed)> wrote:

> I'm looking for a way to list all hosts that are mounting anything
> from a given server via NFS. netstat doesn't show any NFS
> connections, and rpcinfo seems to be too low-level for this.


mount -t nfs
 
Reply With Quote
 
Joe Beanfish
Guest
Posts: n/a

 
      01-08-2007, 06:16 PM
John Oliver wrote:
> On Fri, 05 Jan 2007 14:45:48 -0500, Joe Beanfish wrote:
>> John Oliver wrote:
>>> I'm looking for a way to list all hosts that are mounting anything from
>>> a given server via NFS. netstat doesn't show any NFS connections, and
>>> rpcinfo seems to be too low-level for this.
>>>

>> showmount
>>
>> Note that it may be in sbin which may not be in non-root PATHs.

>
> showmount winds up dumping the contents of /var/lib/nfs/rmtab That file
> appears to list every host that has ever made an NFS connection. Some
> Googling indicated that it would be a bad idea to null out that file for
> some reason. So, I'm wondering what is the "right" way to reset it, so
> I don't see records of hosts that haven't existed in years :-)
>


Never really used showmount much but I see the cruft you're describing.
I would think it would be safe to truncate that file on startup before
nfs services are started.
 
Reply With Quote
 
 
 
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Network Monitoring - Connections Active/Connections Established PeteL Windows Networking 1 03-30-2010 11:32 AM
Check active NFS connections thechillien@gmail.com Linux Networking 7 06-20-2007 04:52 PM
Virgin.net - when an active line is not active Steve Dunn Broadband 10 04-16-2007 02:43 AM
Cable connections - what physical connections Ben Broadband 15 02-05-2007 10:50 PM
Incomplete Browse List After Active Directory 2003 Upgrade tsalciccia Windows Networking 4 12-02-2006 03:54 PM



1 2 3 4 5 6 7 8 9 10 11