If you use tcp mounts strictly, netstat -an will tell you what's mounting pretty reliably (at least if they are using tcp).
rsh mightytoaster netstat -an | egrep "2049.*EST" | awk '{print $2}' | cut -d. -f1-4 | sort -t . -k 1,1n -k 2,2n -k 3,3n -k 4,4n | uniq
That's an example I use all the time when retiring filers. Netstat data is available by snmp, so you could create some simple GUI around this data on a web page.
Of course it only tells you what has an established tcp session, it doesn't tell you which export is in use.
-Blake
On Thu, May 17, 2012 at 5:13 PM, Mr Fletcher Cocquyt fcocquyt@stanford.edu wrote:
I run a query on our network analysis system (InMon) The clients obviously need to be passing traffic to show up
Sent from my iPhone
On May 17, 2012, at 5:00 PM, Jeff Cleverley jeff.cleverley@avagotech.com wrote:
Running showmount on a unix server to see who they have mounting them has proven to be extremely unreliable for us in the past. I'm not aware of the NetApps having a showmount command anywhere.
Jeff
On Thu, May 17, 2012 at 5:38 PM, Weasner, Matthew K mweasner@paychex.com wrote:
Showount was my suggestion too, but I had a user swear to me that wasn't giving an accurate listing. Maybe because we soft mount things?
Thanks for that suggestion, Jeff. I was hoping the filer was keeping track of things somewhere...
Best, Matt
Sent from my iPad
On May 17, 2012, at 7:24 PM, "Jeff Cleverley" jeff.cleverley@avagotech.com wrote:
The showmount command will show what is exported from the filers to the clients.
I'm not sure if it is the most reliable way, but you can enable the options nfs.per_client_stats.enable and then run "nfsstat -h" on the filer and look for "Client".
The per client stats can add some load to the filer so many people don't leave it on all the time. It looks like it will only show 256 clients according to the man page.
Jeff
On Thu, May 17, 2012 at 4:25 PM, Sto Rage© netbacker@gmail.com wrote:
How about showmount -a <filer name>
On Thu, May 17, 2012 at 2:57 PM, Weasner, Matthew K mweasner@paychex.com wrote:
This is probably a silly question, but what is the most reliable way to get a list of NFS clients that have an export mounted? OnTap 7.3.3, and the share is exported R/W to the world.
Thanks, Matt
Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
-- Jeff Cleverley Unix Systems Administrator 4380 Ziegler Road Fort Collins, Colorado 80525 970-288-4611
The information contained in this message may be privileged, confidential and protected from disclosure. If the reader of this message is not the intended recipient, or an employee or agent responsible for delivering this message to the intended recipient, you are hereby notified that any dissemination, distribution or copying of this communication is strictly prohibited. If you have received this communication in error, please notify your representative immediately and delete this message from your computer. Thank you.
-- Jeff Cleverley Unix Systems Administrator 4380 Ziegler Road Fort Collins, Colorado 80525 970-288-4611
Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters