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
Sent from my iPad
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.
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
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
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.
On 05/17/2012 04:38 PM, Weasner, Matthew K 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?
showmount isn't reliable. and, with lots of clients and lots of mounts, it can be a performance issue.
we disable the collection of rmtab stats by setting option nfs.rmtab.persist off.
the ways I look to see what clients are using an export include. - sweep all the clients and check /proc/mounts - unexport the share and wait for phone calls ;-)
-skottie
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.
_______________________________________________ Toasters mailing list Toasters@teaparty.net http://www.teaparty.net/mailman/listinfo/toasters
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.
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
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
Ok last thing, it looks like building a simple snmp extension in linux is fairly trivial.
putting this in your /etc/snmp/snmpd.conf exec nfsmount /bin/sh /tmp/nfs.sh
Where /tmp/nfs.sh contains
/bin/egrep "device.* nfs" /proc/self/mountstats
Restart snmpd and then ask
snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.8.1
and you *should* get what you are looking for. Unless you have more then 10 mounts.
-Blake
On Mon, May 21, 2012 at 5:23 PM, Blake Golliher thelastman@gmail.com wrote:
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
It's amazing what you find when you aren't looking for it.
snmptable -v2c -c public nfsclienthostname hrStorageTable
will give a table of what mounts are NetworkDisk vs. local disks. Pretty cool for tracking down where something is mounted.
-Blake
On Mon, May 21, 2012 at 6:38 PM, Blake Golliher thelastman@gmail.com wrote:
Ok last thing, it looks like building a simple snmp extension in linux is fairly trivial.
putting this in your /etc/snmp/snmpd.conf exec nfsmount /bin/sh /tmp/nfs.sh
Where /tmp/nfs.sh contains
/bin/egrep "device.* nfs" /proc/self/mountstats
Restart snmpd and then ask
snmpwalk -v 1 -c public localhost .1.3.6.1.4.1.2021.8.1
and you *should* get what you are looking for. Unless you have more then 10 mounts.
-Blake
On Mon, May 21, 2012 at 5:23 PM, Blake Golliher thelastman@gmail.com wrote:
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
Sto Rage© wrote:
How about showmount -a <filer name>
Yes, except it's not that reliable. This state inside an NFS server (including ONTAP, cannot be trusted that much -- it depends on how "well behaved" your NFS clients are, sure, but generally speaking one would make the assumption that the clients that *actually* have an active mount is a true subset of the output of this command. A smaller subset the longer uptime your NFS server has ;-)
(So take that list, then run an automated job to all those NFS clients via ssh or whatever and check what they really have mounted.)
/M