Go Back   FlashFXP Forums > > > >

NeoXed's scripts nxAutoNuke, nxTools, etc.

Reply
 
Thread Tools Rate Thread Display Modes
Old 10-28-2004, 06:36 AM   #1
BlueMax
Junior Member
 
Join Date: May 2004
Posts: 18
Default

Really thx for this needed script mate
But...i can't run it...i paste my settings:
PHP Code:
set misc(MountUser)        "ioFTPD"
set misc(MountFile)        "../etc/admin.vfs"
----
set misc(UTC_Time)      False
set misc
(DST_Correct)   False
set misc
(TimeZone)      0
----
set anuke(UserName)     "ioFTPD"
set anuke(GroupName)    "ioftpd"
set anuke(Release)      True
----
set anuke(Sections) {
    
"/MVID/%Y-Week-%W" {
        
"banned|*-iND|5|6|15"
        "empty|Not-Used|3|2|4"
        "incomplete|Not-Used|5|20|40"
        "disks|4|3|6|20"
    
}
 } 
in ioFTPD.log i don't have nothing created by anuker.
in ioFTPD.ini i have:

[Scheduler]
autonuke = 0,5,10,15,20,25,30,35,40,45,50,55 * * * TCL ..\scripts\nxAutoNuke\nxAutoNuke.itcl

and

[FTP_Custom_Commands]
autonuke = TCL ..\scripts\nxAutoNuke\nxAutoNuke.itcl

Using: ioFTPD:5.8.5r and ioA:1.2.0

Thx 4 all

BlueMax

P.S: can be written a debug file to see what happen?
BlueMax is offline   Reply With Quote
Old 10-28-2004, 04:10 PM   #2
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

What exactly doesn't work? Are there any related entries in /logs/nxError.log or /logs/SystemError.log? Could you please paste the output from 'SITE AUTONUKE'.

Note: There will only be output if there's a directory which violates one of the auto-nuke rules and exceeds the warning or nuke time.
neoxed is offline   Reply With Quote
Old 10-29-2004, 06:43 AM   #3
BlueMax
Junior Member
 
Join Date: May 2004
Posts: 18
Default

ok...i don't have /logs/nxError.log and in /logs/SystemError.log there are no errors related to anuker.

With "site autonuke" i get:

[13.40.26] [L] 200-.-[AutoNuke]-------------------------------------------------------------.
[13.40.26] [L] 200-| Checking 1 auto-nuke sections. |
[13.40.26] [L] 200-| |
[13.40.26] [L] 200-| Checking path: /MVID/2004-Week-43 (offset: 0) |
[13.40.26] [L] 200-'------------------------------------------------------------------------'
[13.40.26] [L] 200 Command successful.

Thx for your help nx

bye
BlueMax is offline   Reply With Quote
Old 10-29-2004, 01:53 PM   #4
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Well do you have any violating directories or not? You'll only see output if there's a directory which breaks one of the auto-nuke rules and exceeds the warning/nuke time.

I tested your configuration and it works fine.
Code:
site autonuke
200-.-[AutoNuke]-------------------------------------------------------------.
200-| Checking 1 auto-nuke sections.                                         |
200-|                                                                        |
200-| Checking path: /MVID/2004-Week-43 (offset: 0)                          |
200-| Nuking: test.banned-iND - banned.release.-iND                          |
200-| Nuking: test.empty-nx - empty.after.4.minutes                          |
200-| Warning: test.disks.5cds-nx - maximum.of.4.disks                       |
200-| Warning: test.incomplete-nx - incomplete.after.40.minutes              |
200-'------------------------------------------------------------------------'
200 Command successful.
neoxed is offline   Reply With Quote
Old 11-03-2004, 05:11 AM   #5
BlueMax
Junior Member
 
Join Date: May 2004
Posts: 18
Default

sure, i have empty dirs created and also incomplete rls
but...nothing happen then.
i'll recheck all the confs...maybe there is a problem somewhere.

thx, c ya
BlueMax is offline   Reply With Quote
Old 11-24-2004, 10:35 PM   #6
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

Works fine here =)
Had to add *nuked* to set anuke(Exempts) , otherwise same release could be nuked forever until it got wiped.

and my zipscript makes bad and missing files like this:
blablabla.mp3-missing
blablabla.rar-bad


So I had to use this (in case someone uses same zipscript):
Code:
set anuke(BadExt)       ".*-bad"
set anuke(MissingExt)   ".*-missing"

Otherwise it works very nice Together with autowipe script of nuked folders it makes life easier for siteops/nukers
wooolF[RM] is offline   Reply With Quote
Old 11-25-2004, 11:30 AM   #7
godlike
Senior Member
ioFTPD Foundation User
 
Join Date: Dec 2003
Posts: 94
Default

Just one question how to include the announcing in iobanana v20 ?

I added those lines to iobanana.tcl but i get only this:

[MP3] + %path/%bold24%bold has been incomplete for %bold%age%boldmins, it will be nuked in %bold%timeleft%boldmins.

What did i do wrong i added those lines to iobanana.tcl:

set disable(ANUKEALLOW) 0
set disable(ANUKEBAN) 0
set disable(ANUKECDS) 0
set disable(ANUKEEMPTY) 0
set disable(ANUKEIMDB) 0
set disable(ANUKEINC) 0
set disable(ANUKEMP3) 0

set variables(ANUKEALLOW) "%pf %banned %age %timeleft %nuketime"
set variables(ANUKEBAN) "%pf %banned %age %timeleft %nuketime"
set variables(ANUKECDS) "%pf %disks %maxdisks %age %timeleft %nuketime"
set variables(ANUKEEMPTY) "%pf %age %timeleft %nuketime"
set variables(ANUKEIMDB) "%pf %type %banned %age %timeleft %nuketime"
set variables(ANUKEINC) "%pf %age %timeleft %nuketime"
set variables(ANUKEMP3) "%pf %type %banned %age %timeleft %nuketime"

set announce(ANUKEALLOW) "-%sitename- \[%section\] + %path/%bold%release%bold is not from an allowed group, it will be nuked in %bold%timeleft%boldmins."
set announce(ANUKEBAN) "-%sitename- \[%section\] + %path/%bold%release%bold is a banned release (%bold%banned%bold), it will be nuked in %bold%timeleft%boldmins."
set announce(ANUKECDS) "-%sitename- \[%section\] + %path/%bold%release%bold has %bold%disks%bold disks, exceeding the maximum of %bold%maxdisks%bold disks, it will be nuked in %bold%timeleft%boldmins."
set announce(ANUKEEMPTY) "-%sitename- \[%section\] + %path/%bold%release%bold is still empty after %bold%age%boldmins, it will be nuked in %bold%timeleft%boldmins."
set announce(ANUKEIMDB) "-%sitename- \[%section\] + %path/%bold%release%bold the IMDB %type %bold%banned%bold is banned, it will be nuked in %bold%timeleft%boldmins."
set announce(ANUKEINC) "-%sitename- \[%section\] + %path/%bold%release%bold has been incomplete for %bold%age%boldmins, it will be nuked in %bold%timeleft%boldmins."
set announce(ANUKEMP3) "-%sitename- \[%section\] + %path/%bold%release%bold the MP3 %type %bold%banned%bold is banned, it will be nuked in %bold%timeleft%boldmins."
godlike is offline   Reply With Quote
Old 11-25-2004, 03:40 PM   #8
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

ioBanana uses "[b]" rather than "%bold" to bold text, I suppose I could/should update the readme.
neoxed is offline   Reply With Quote
Old 11-25-2004, 05:21 PM   #9
godlike
Senior Member
ioFTPD Foundation User
 
Join Date: Dec 2003
Posts: 94
Default

oh groovy now i have bold but i still dont have nothing ....

[MP3] + %path/release is still empty after %agemins, it will be nuked in %timeleft mins.

Why doesnt it replace the var`s with actual data ?
godlike is offline   Reply With Quote
Old 11-26-2004, 10:25 PM   #10
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Question

After 2 days testing I got some "bugs?"...

that was once a sitebot announced that some rls will be nuked 3 times in a row (same second, same msg, 3 times)... restarted ftpd... seems like it fixed it...

and that scan that nxAutoNuke does... I'm kinda suspecious that it doesn't work correctly all the time (or maybe it stops after some time for some weird reason)...

I think some debug file like warchive have would really help finding those "bugs"... just a thought...

Can't be sure 100% about those things, yet, this script make me suspisious.
wooolF[RM] is offline   Reply With Quote
Old 11-27-2004, 12:47 AM   #11
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
Originally posted by wooolF[RM]
Works fine here =)
Had to add *nuked* to set anuke(Exempts) , otherwise same release could be nuked forever until it got wiped.
That's what the anuke(Prefix) setting is for.
Code:
# - Prefix for nuked releases (no wild-cards and case sensitive).
#
set anuke(Prefix)       {[NUKED]-}
Quote:
Originally posted by wooolF[RM]
that was once a sitebot announced that some rls will be nuked 3 times in a row (same second, same msg, 3 times)... restarted ftpd... seems like it fixed it...
Was it announced 3 times (sitebot bug) or was it actually nuked 3 times? Check the ioFTPD.log if there is 3 log entries.

As for the other issues, I'll look into them.
neoxed is offline   Reply With Quote
Old 11-27-2004, 11:17 AM   #12
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

It was announced 3 times.

Code:
11-27-2004 04:12:19 ANUKEINC: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX/CD2" "28" "12" "40"
11-27-2004 04:12:19 ANUKEINC: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX/CD2" "28" "12" "40"
11-27-2004 04:12:19 ANUKEINC: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX/CD2" "28" "12" "40"
Code:
11-27-2004 04:22:29 ANUKEINC: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX/CD2" "38" "2" "40"
11-27-2004 04:22:29 ANUKEINC: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX/CD2" "38" "2" "40"
11-27-2004 04:22:29 ANUKEINC: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX/CD2" "38" "2" "40"
Code:
11-27-2004 04:32:33 NUKE: "/XXX/XXX.XXX.XXXXXX.XX.XXXXXX.XXXX-XXXXXXXX" "AUTO@NUKER" "xxxxxxx@XXXXXX" "3 1323.91" "incomplete.after.40.minutes"
Best part, that release first came on the site like 20 mins before it started with announcements... and then it got nuked... shouldn't it be nuked after 24h and 40 mins?
Code:
set anuke(MaximumAge)   1440
wooolF[RM] is offline   Reply With Quote
Old 11-27-2004, 04:21 PM   #13
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
Originally posted by wooolF[RM]
Best part, that release first came on the site like 20 mins before it started with announcements... and then it got nuked... shouldn't it be nuked after 24h and 40 mins?
Where do you get 24 hours from?
"28" = Age (in minutes)
"12" = Time till nuked (nuke time - age)
"40" = Nuke time (minutes)

The 'MaximumAge' setting is the max age of directories to check. In your case, once a directory is 1440 minutes (24 hours) or older, it's no longer checked by the auto-nuker (this is to prevent unnecessary 'load' by checking older releases).

What do you have set for your 'anuke(Sections)'?
neoxed is offline   Reply With Quote
Old 11-27-2004, 10:31 PM   #14
wooolF[RM]
Senior Member
ioFTPD Foundation User
 
Join Date: Oct 2003
Posts: 411
Default

PMed u my settings and here's an example of it:

Code:
set anuke(Sections) {
    "/Section1" 0 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/Section2" 0 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/Section3" 0 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" 0 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" -1 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" -2 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" -3 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" -4 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" -5 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/MP3/%m%d" -6 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
    "/Section4" 0 {
        "empty|Not-Used|3|20|40"
	"incomplete|Not-Used|3|20|40"
    }
}
Basically, all I need is to check for 2 things:

1) If folder is empty for more then 20mins (after creation), announcement, that it will be nuked in 20mins. After 40mins (after creation) folder gets nuked.
2) All folders that are OVER 24h old (from the folder creation) should be checked for complete/incomplete. If incomplete, warn on the channel (24h after folder was created). Nuke folder after 20mins if still incomplete (24h and 20mins after folder was created).

That's basically it. I don't really need to check all folders for incomplete in the first 24h, only after that.

Maybe something like:
Code:
set anuke(minimumAge)   1440
set anuke(MaximumAge)   2880
could be implemented. That way, nxAutoNuker would check folders only after they are 24h old and check them until they are 2 days old (48h).

wooolF[RM] is offline   Reply With Quote
Old 11-28-2004, 03:48 PM   #15
neoxed
Too much time...
FlashFXP Beta Tester
ioFTPD Scripter
 
Join Date: May 2003
Posts: 1,326
Default

Quote:
Originally posted by wooolF[RM]

2) All folders that are OVER 24h old (from the folder creation) should be checked for complete/incomplete. If incomplete, warn on the channel (24h after folder was created). Nuke folder after 20mins if still incomplete (24h and 20mins after folder was created).
Then why are you using: incomplete|Not-Used|3|20|40? Wouldn't it make sense to have: incomplete|Not-Used|3|1460|1480?
neoxed is offline   Reply With Quote
Reply

Tags
autonuke, false, ioftpd, set, tcl

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

Similar Threads
Thread Thread Starter Forum Replies Last Post
FlashFXP 3 upgrade and FlashFXP.ini palmtree General Discussion 11 11-10-2004 04:57 PM
NEW dZSbot 0.0.6.0 released bounty bounty's dZSbot 25 04-22-2003 05:16 AM


All times are GMT -5. The time now is 02:32 AM.

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