Also, try "cifs sessions *" to get the info you are looking for because it will give you details on each file opened by each session/user.
-Gil
-----Original Message----- From: Stephane Bentebba [mailto:stephane.bentebba@fps.fr] Sent: Fri 3/21/2003 6:49 AM To: Ngoh, Clarence; toasters@mathworks.com Cc: Subject: Re: Terminating CIFS sessions via CLI.
filer cli provide the command : cifs terminate { machine | user } this let you terminate a cifs session for a user or a machine in particular, you can get users with the "cifs session" command : << genghis:~/tmp# rsh nac cifs sessions Server Registers as 'MYFILER' in group 'MYDOMAIN' Root volume language is not set. Use vol lang. Using the UNIX password database for authentication Comment: Filer FPS ======================================== PC (user) #shares #files AMACHINE (user1 - user1) 1 0 ANOTHERMACHINE (user2 - user2) 2 1 >> as you can see, I used this command throught rsh, so you could get users throught rsh, make a script wich parse the ouput and launch several rsh cifs terminate user/machine as you need. bye Ngoh, Clarence wrote: >Hi all > >I was wondering if any of you has attempted to kill a single or a set of >CIFS sessions via CLI? After obtaining the files that are opened via cifs >sessions on the filer, I wish to run a regexp through it and kill a set of >opened files. > >Do you if there is a utility for Windows to do this via CLI or if there is >an equivalent way of doing this via UNIX? The only method that I am limited >to so far is using MMC to list the appropriate open files and terminating >it. > >TIA. > >-- Clarence. > > >************** IMPORTANT MESSAGE ************** >This e-mail message is intended only for the addressee(s) and contains information which may be confidential. If you are not the intended recipient please advise the sender by return email, do not use or disclose the contents, and delete the message and any attachments from your system. Unless specifically indicated, this email does not constitute formal advice or commitment by the sender or the Commonwealth Bank of Australia (ABN 48 123 123 124) or its subsidiaries. >************************************************** > > > >