(OnTap 7.0.5)
From time to time our admin procedures mean that we have to move someone's home directory from one qtree to another. (I'd rather this didn't happen, but it's one of those things we have to live with for the time being...)
Inevitably, on some occasions a CIFS session for such a user is active at the time of the move. So if, the morning after the move, they simply pick up from where they left off the previous evening, their new data is still going into their old area. (This probably happens one every week or two on average.)
What we're looking for is something like: cifs terminate username
that we could employ to kill off the CIFS session(s) for a given username.
(Such killing of potentially active (usually dormant) sessions is (while not ideal) nevertheless usually far preferable to picking up the pieces of two diverging home directories in the following days.)
But there doesn't seem to be any such "cifs terminate username". There is a "cifs sessions username", whose output is intended for humans, not machines, so is not easily amenable to reliable machine-parsing. So it is not really suitable for then reliably deriving workstation names for OnTap's existing "cifs terminate workstation" command.
Any thoughts on how to achieve "cifs terminate username" functionality?
By the way, the environment for driving this is a set of UNIX scripts which can do operations of the form: rsh filer cifs ...