Old 11-18-2003, 11:26 PM   #1
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default XFERStats.itcl - # of downloads Stats

Little itcl script to compute stats using xferlog
Gives number of times each rls was download (or upladed!)

I parsed a 67K lines xferlog in a little over 60s.

You can output in html, text or csv (to play with it in excel)

Settings section at top is pretty straightforward.

You can either map it to a SITE command or run it using the Scheduler each night to get up to date stats that u can share or not with ur fellow users.

[Scripts]
xferstats = TCL ..\scripts\xferstats.itcl

or

[Scheduler]
xferstats = 0 0 * * TCL ..\scripts\xferstats.itcl

Download avail. in ioftpd.com/members for Foundation License owners.

Sample csv:
Code:
download,/games/Not.So.Fun-Game,3,heho someGuy potatos
download,/svcd/Wooo-Bananas,4,potatos twsite someGuy heho
download,/vcd/Cool.Movie-Something,3,heho someGuy potatos
download,/tvrips/Good.Eps-Me,2,micky Mouton
Sample html:
Code:
<table>
<tr><td>Not.So.Fun-Game</td><td>3</td><td>heho someGuy potatos</td></tr>
<tr><td>Cool.Movie-Something</td><td>4</td><td>potatos twsite someGuy heho</td></tr>
<tr><td>Good.Eps-Me</td><td>3</td><td>heho someGuy potatos</td></tr>
<tr><td>Wooo-Bananas</td><td>12</td><td>micky Mouton</td></tr>
</table>
Sample text:
Code:
/games/Not.So.Fun-Game was downloaded 1 times by 'Mouton'
/svcd/Wooo-Bananas was downloaded 5 times by 'Mouton potatos twsite someGuy heho'
/vcd/Cool.Movie-Something was downloaded 2 times by 'someGuy potatos'
/tvrips/Good.Eps-Me was downloaded 2 times by 'micky Mouton'
Enjoy.
Mouton is offline   Reply With Quote
Old 11-19-2003, 03:35 AM   #2
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

awsome..... gr8 work...
rAWfOX is offline   Reply With Quote
Old 11-19-2003, 04:10 AM   #3
Collectem
Junior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Nov 2001
Posts: 6
Cool

Script Works Great, Nice Work Mouton :banana:
Collectem is offline   Reply With Quote
Old 11-19-2003, 06:15 AM   #4
SomeoneWhoCares_2
Member
 
Join Date: Sep 2002
Posts: 87
Default

nice one been waiting for something like this, i think a great extension to this script would be something to show the top x leeched releases, and how much that is for each in mb etc, in a .message file
SomeoneWhoCares_2 is offline   Reply With Quote
Old 11-19-2003, 10:25 AM   #5
rAWfOX
Senior Member
 
Join Date: Aug 2003
Posts: 148
Default

Quote:
Originally posted by SomeoneWhoCares
nice one been waiting for something like this, i think a great extension to this script would be something to show the top x leeched releases, and how much that is for each in mb etc, in a .message file
word!
rAWfOX is offline   Reply With Quote
Old 11-19-2003, 11:50 AM   #6
freak007
Member
ioFTPD Foundation User
 
Join Date: Jun 2003
Posts: 69
Default

Thx Mouton:
nice and usefull script

One question:
but whould it be possible so i can add a command to view all releases up or downloaded by a single user or sort the resultsfile by name or anything else.

Thx for answer !

Cya Freak007
freak007 is offline   Reply With Quote
Old 11-19-2003, 12:41 PM   #7
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

Quote:
Originally posted by SomeoneWhoCares
nice one been waiting for something like this, i think a great extension to this script would be something to show the top x leeched releases, and how much that is for each in mb etc, in a .message file
w0rd too
wooolF[RM] is offline   Reply With Quote
Old 11-19-2003, 02:58 PM   #8
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

It's an itcl script. Very easy to modify by anyone who know some about tcl.
Anyone is free to make mods and send to me to publish in Foundation section.

I won't do any of them until I personnaly want/need them.
Busy with other stuff, like maintaining this new Foundation stuff.
Mouton is offline   Reply With Quote
Old 11-19-2003, 09:33 PM   #9
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

woolF[RM] made a mod with nicer html output
dubbed xferstats_nhtml
u can get it at same place.
Mouton is offline   Reply With Quote
Old 11-19-2003, 09:48 PM   #10
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

it's wooolF[RM], not woolF[RM]
but thnx anyway for giving it a try and thnx for the nice script
wooolF[RM] is offline   Reply With Quote
Old 11-19-2003, 10:59 PM   #11
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

damn... xferstats crash ioFTPD with 5.3.5r :x (tried like 7-8 times now)... checks half of the log or so, then server crashes

looked in systemerror.log, it's empty... damnit, worked nice on 5.2.15r
wooolF[RM] is offline   Reply With Quote
Old 11-20-2003, 12:10 AM   #12
ybmomo
Junior Member
FlashFXP Registered User
ioFTPD Registered User
 
Join Date: Oct 2001
Posts: 10
Default

keep up the good works

BTW Off topic

how to get that nice icon for foundation thx..
ybmomo is offline   Reply With Quote
Old 11-20-2003, 12:12 AM   #13
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

it's my avatar... made it in Photoshop...
thanx for the comments tho'
wooolF[RM] is offline   Reply With Quote
Old 11-20-2003, 04:09 PM   #14
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

can anyone confirm xferstats_nhtml crashing server on 5.3.5r (while parsing the log)?
wooolF[RM] is offline   Reply With Quote
Old 11-20-2003, 04:35 PM   #15
Mouton
Posse Member
Ultimate Scripter
ioFTPD Administrator
 
Join Date: Dec 2002
Posts: 1,956
Default

[16:26:30] [L] site version
[16:26:30] [L] 200-ioFTPD version 5-3-5r
[16:26:30] [L] 200-ioBanana version M-19b
[16:26:30] [L] 200 Command successful.
[16:26:35] [L] site xferstats
[16:26:35] [L] 200-XFERStats started...
...
[16:27:39] [L] 200-734 releases found (upload and download)
[16:27:39] [L] 200-XFERStats done.
[16:27:39] [L] 200 Command successful.

Works here.
U probably got a funny xferlog.

u can send me if u want me to try here.
Mouton is offline   Reply With Quote
Reply

Tags
download, mouton, potatos, someguy, times

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Forum Jump


All times are GMT -5. The time now is 01:39 PM.

Parts of this site powered by vBulletin Mods & Addons from DragonByte Technologies Ltd. (Details)