Our new official repo is on github
LCD Smartie version 5.6 is released!
Download it now: https://github.com/LCD-Smartie/LCDSmartie/releases

Monitor open file - Is this possible?

General discussion about LCD Smartie.

Moderators: _X7JAY7X_, caesar, IFR, mattcro, limbo, Fast351

Post Reply
DJ-Q
Posts: 5
Joined: December 8th, 2006, 11:57 am

Monitor open file - Is this possible?

Post by DJ-Q »

Is it possible to display a live summary of who has a certain file open on a windows server?

Sort of like the "Open Files" function in active directory.

There is a file on my windows 2000 server and I'd like a scrolling display of all users that have that file open, is this possible with the plugins that are already available?

Thanks
DJ-Q
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

No such function, for the moment... :oops:
DJ-Q
Posts: 5
Joined: December 8th, 2006, 11:57 am

Post by DJ-Q »

Thanks limbo, is that sort of function even feasible to expect or is a total non-starter, if somebody could code a plugin to achieve this, I would be a very happy man :-)

Do you know of any 3rd party applications that would populate a txt file with my desired results? Getting it into smartie would then be easy
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

Can you explain how this works?
Do you mean that the log is on one txt file? If so its possible to accessed by LCD Smartie.
Sorry I don't have active directory experience. :oops:
DJ-Q
Posts: 5
Joined: December 8th, 2006, 11:57 am

Post by DJ-Q »

OK I've managed to create a batch file on the server that runs every 60 seconds and pipes the ouput to a txt file. the output looks like this:

Code: Select all

ID         Path                                    User name            # Locks

-------------------------------------------------------------------------------
8785859    D:\Data\...\E-mail\Outlook.pst          USER1        3     
8785920    D:\Data\data-exchange                   USER1        0     
8786829    D:\Data\sage\LINE100\Line100W.exe       USER2       0     
8786830    D:\Data\sage\LINE100\L100HOOK.dll       USER2       0     
8786831    D:\Data\sage\LINE100\L100RLST.DLL       USER2       0     
8786882    D:\Data\sage\SVNDATA\LOGON.RND          USER2       2     
8786883    D:\Data\sage\SVNPROGS\catalog.rel       USER2       0     
8786884    D:\Data\sage\SVNPROGS\catmst0.rin       USER2       0     
8795891    D:\Data\...\CAD\Standard Parts\Pipes    USER1        0     
8823338    D:\Data\sage\LINE100\Line100W.exe       USER3          0     
8823339    D:\Data\sage\LINE100\L100HOOK.dll       USER3          0     
8823340    D:\Data\sage\LINE100\L100RLST.DLL       USER3          0     
8823783    D:\Data\sage\SVNDATA\LOGON.RND          USER3          2     
8876648    D:\Data\sage\SVNDATA\SALMASTE.RIN       USER4        0     
8876649    D:\Data\sage\SVNDATA\SALMASTD.RIN       USER4        0     
8876650    D:\Data\sage\SVNDATA\SALMASTG.RIN       USER4        0     
The command completed successfully.

What I want to now do is parse this output through lcdsmartie to get a list of the users that have the file Line100W.exe open. so on the lcd I would get a scrolling list like

*USER1* - *USER4*


Is it possible to format this output to give the results that I need?
limbo
Plugin Author
Posts: 1604
Joined: February 13th, 2005, 7:38 pm
Location: Athens - Greece
Contact:

Post by limbo »

of course you can read the file contents and fuilter them with regular expressions.... :shock: :shock:
but i cant you guide to this plugin ( :oops: )

another way is to build a custom plugin for your needs or ask on plugin requests for someone to build one for you
Post Reply