Post Tue Jun 04, 2013 3:07 pm

Currant files accessed

I have a lot of files on my serviio with a good amount of people viewing them. One thing that I feel would be really helpful is the ability to see what files are currently being accessed and by which device. What I am thinking of is very similar to how it is done with Samba. SO you coudl run a command suchas serviiostatus and get a list of active files and servers. Example below.
  Code:
admin@akakios:~$ smbstatus -a

Samba version 3.5.6
PID     Username      Group         Machine                       
-------------------------------------------------------------------
10059     acrane1       users         marauder     (172.20.0.7)

Service      pid     machine       Connected at
-------------------------------------------------------
TVShows      10059   marauder      Wed May 29 18:58:07 2013
Work         10059   marauder      Wed May 29 18:58:07 2013
Temp         10059   marauder      Wed May 29 18:58:08 2013
GroupTrips   10059   marauder      Wed May 29 18:58:07 2013
Movies       14643   bigbertha     Tue Jun  4 03:27:12 2013
Seeding      10059   marauder      Wed May 29 18:58:08 2013
Music        10059   marauder      Mon May 27 12:09:31 2013
TVShows      14643   bigbertha     Tue Jun  4 03:27:12 2013
Serviio      10059   marauder      Wed May 29 18:58:07 2013
TempMovies   10059   marauder      Wed May 29 18:58:08 2013

Locked files:
Pid          Uid        DenyMode   Access      R/W        Oplock           SharePath   Name   Time
--------------------------------------------------------------------------------------------------
10059        1000       DENY_NONE  0x20089     RDONLY     EXCLUSIVE+BATCH  /media/a3694e47-6025-4ebf-81f8-05ee76774c26/Music   Incubus/S.C.I.E.N.C.E/A.Certain.Shade.Of.Green.mp3   Tue Jun  4 08:29:46 2013

admin@akakios:~$


For serviio it would be different but having the folder, machine, file, date/time would be really helpful so I can see who is watching what and when.