We have an issue with open CIFS files on one of our filers. I would like an easy way see who has a specific file open and how to kick them out. Currently I use lock_dump command, but for some reason this will not run through RSH, so I can not redirect the results to a text file that I can search. Help, Please.... Drew
`cifs sessions *` will dump the sessions, as well as the files that are in use in the session. Also, the lock_dump command should work over rsh if you execute it like:
rsh filer "priv set advanced; lock_dump -f; priv set"
Hope that helps.
Brian Moyers Sr. Software Engineer, Infrastructure BEA Systems (415) 402-7416 bmoyers@bea.com
-----Original Message----- From: owner-toasters@mathworks.com [mailto:owner-toasters@mathworks.com]On Behalf Of Drew O'Donnell Sent: Monday, July 15, 2002 9:14 AM To: 'toasters@mathworks.com' Subject: CIFS Open Files
We have an issue with open CIFS files on one of our filers. I would like an easy way see who has a specific file open and how to kick them out. Currently I use lock_dump command, but for some reason this will not run through RSH, so I can not redirect the results to a text file that I can search. Help, Please.... Drew
bmoyers@bea.com (Brian Moyers) writes:
`cifs sessions *` will dump the sessions, as well as the files that are in use in the session. Also, the lock_dump command should work over rsh if you execute it like:
rsh filer "priv set advanced; lock_dump -f; priv set"
^^^^^^^^
That last part is not necessary. With ONTAP 6.x "priv" the console/telnet session and each rsh process has its own privilege level (which starts off at "admin"). It was only in the bad old rc_toggle_basic days that they were conflated.
Chris Thompson Email: cet1@cam.ac.uk
Right, sorry about that, the last "priv set" isn't needed. I copy/pasted that command from a FAQ I wrote for internal use here at my company, and it was in the context of being logged in over telnet with an interactive session, where it would be best to set your priv level back down to admin after using the advanced commands.
Brian
-----Original Message----- From: Chris Thompson [mailto:cet1@cus.cam.ac.uk] Sent: Monday, July 15, 2002 12:12 PM To: Brian Moyers Cc: Drew@cooperneff.com; toasters@mathworks.com Subject: Re: CIFS Open Files
bmoyers@bea.com (Brian Moyers) writes:
`cifs sessions *` will dump the sessions, as well as the files
that are in
use in the session. Also, the lock_dump command should work
over rsh if you
execute it like:
rsh filer "priv set advanced; lock_dump -f; priv set"
^^^^^^^^
That last part is not necessary. With ONTAP 6.x "priv" the console/telnet session and each rsh process has its own privilege level (which starts off at "admin"). It was only in the bad old rc_toggle_basic days that they were conflated.
Chris Thompson Email: cet1@cam.ac.uk