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/ *