2014-12-07 11:56 AM - last edited on 2015-11-10 08:57 AM by alissa
I would like to know if there's a way to find out how many files are opened in CIFS on my filer (FAS6240 Ontap 8.2 7-mode). I tried lock status -p cifs -n but it only gives me the number of opened shares. I looked in the stats objects and didn't find what I wanted.
Anyone had the same issue ?
2014-12-07 10:00 PM
You can refer the link https://library.netapp.com/ecm/ecm_download_file/ECMP1196993
2014-12-08 06:42 AM
There are several ways to do this..
depending on how many you have, you can use the MMC to mount the vfiler/filer and export to csv and add or you can use oncommand, or powershell.
You would need to know how to use netapp powershell - get-nacifssessions and then sum filers...
2015-06-16 12:07 PM
Hi Everyone and thanks for your answers, but, maybe my question wasn't clear enough, I want the number of opened files, not the number of sessions ... So I don't get the point of counting the "cifs sessions *"
2015-11-10 10:05 PM
I know your question is a bit old but check this out:
guthrie> vfiler run dylan cifs sessions -
cifs sessions [-p smb|smb2] [-i ipv4|ipv6] [-s | -c] [ <user_name> | <workstation_name> | <IP_address> | * ]
cifs sessions [-t] [-c]
Give "cifs sessions" an invalid argument (the dash in the above example) and it prints the usage.
Try them all. In particular, I think the "-t" might give you what you are looking for. The "-c" also works ok.