[Dxspider-support] Best practices

Kin ea3cv at cronux.net
Wed Feb 8 19:27:30 GMT 2023


Kelly,

This is one of the points I have noted for the wiki, but I can pass you a
crontab adapted to the Mojo branch, as a working example:

 

# Neighbour nodes

00,10,20,30,40,50 * * * * start_connect('EA4URE-3') unless
connected('EA4URE-3')

 

# RBN Servers

* * * * * start_connect('SK0MMR') unless connected('SK0MMR')

* * * * * start_connect('SK1MMR') unless connected('SK1MMR')

 

# AutoUpdate DXSpider

0 4 * * 1,2,3,4,5 run_cmd("check_build Y

 

# Export users

20 0 * * * run_cmd("export_users")

 

# Maintain FS

0 0 * 1-12 * spawn("/spider/local_data/debug -type f -mtime +31 | xargs rm
-rf")

2 0 * 1-12 * spawn("find /spider/local_data/log -type f -mtime +62 | xargs
rm -rf")

 

# Telegram Bot

0 * * * *   run_cmd("total")

 

# Check Public/Local IP

00,10,20,30,40,50 * * * * run_cmd("update_ip")

 

# AutoUpdate USDB

0 1 * * 1,3,5 spawn("cd /tmp; wget -qN ftp://ftp.w1nr.net/usdbraw.gz;
/spider/perl/create_usdb.pl usdbraw.gz")

5 1 * * 1,3,5 run_cmd("load/usdb")

10 1 * * 1,3,5 spawn("rm /tmp/usdbraw.gz")

 

# AutoUpdate Keps

0 2 * * 2,4,6 spawn("cd /tmp; wget -qN
http://www.amsat.org/amsat/ftp/keps/current/nasabare.txt;
/spider/perl/convkeps.pl -p nasabare.txt")

5 2 * * 2,4,6 run_cmd("load/keps")

10 2 * * 2,4,6 spawn("rm /tmp/nasabare.txt")

 

# AutoUpdate CTY.DAT

0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN
http://www.country-files.com/cty/cty.dat")

0 3 * * 0,2,5 spawn("cd /spider/local_data; wget -qN
http://www.country-files.com/cty/wpxloc.raw")

2 3 * * 0,2,5 spawn("/spider/perl/create_prefix.pl")

3 3 * * 0,2,5 run_cmd("load/prefix")

 

# Blacklist. TOR & Others

30 * * * * spawn('cd /spider/local_data; wget -qN
http://www.dxspider.net/download/badip.torexit')

30 * * * * spawn('cd /spider/local_data; wget -qN
http://www.dxspider.net/download/badip.torrelay')

30 * * * * spawn('cd /spider/local_data; wget -qN
http://www.dxspider.net/download/badip.global')

31 * * * * run_cmd('load/badip')

 

Kin EA3CV

 

De: Dxspider-support <dxspider-support-bounces at tobit.co.uk> En nombre de
Kelly Leavitt via Dxspider-support
Enviado el: miércoles, 8 de febrero de 2023 20:02
Para: dxspider-support at tobit.co.uk
CC: Kelly Leavitt <kelly at catcorner.org>
Asunto: [Dxspider-support] Best practices

 

Is there a concise document outlining best practices for keeping these
clusters:

1.	up to date
2.	secure
3.	useful to the community

I found an older email with a sample crontab that kept the keps, country
files and usdb up-to-date. Anything else?

 

What about connecting and/or registering with RBN or other services?
References to all of the commands? Any new commands that can be added?

 

73 de Kelly

KE2L

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mailman.tobit.co.uk/pipermail/dxspider-support/attachments/20230208/842800b4/attachment.htm>


More information about the Dxspider-support mailing list