Community discussions

MikroTik App
 
charneval
just joined
Topic Author
Posts: 2
Joined: Mon Apr 08, 2024 4:40 pm

script for Address List

Mon Apr 08, 2024 5:05 pm

Hi.

I would like to create a script that allows me to modify an "address list" and then send it to a series of hAP ax2 routerboards that are connected via zerotier.
Is it a feasible solution?

I don't know if the best solution is to create a script that connects to all the routerboards or is there a different solution that you can recommend?

Thanks.

Andrea.
 
abbio90
Member Candidate
Member Candidate
Posts: 234
Joined: Fri Aug 27, 2021 9:16 pm
Contact:

Re: script for Address List

Fri Apr 12, 2024 1:14 pm

you can use ssh exec to write to other routerboards but you should create special credentials with private keys
 
abbio90
Member Candidate
Member Candidate
Posts: 234
Joined: Fri Aug 27, 2021 9:16 pm
Contact:

Re: script for Address List

Fri Apr 12, 2024 1:15 pm

or you could try with the API
 
charneval
just joined
Topic Author
Posts: 2
Joined: Mon Apr 08, 2024 4:40 pm

Re: script for Address List

Fri Apr 12, 2024 1:46 pm

Hi,
Thanks for your suggestion.
The solution with ssh exec is good for my project. I' ll try it.
But if you can, send me an example for use the API integration.

Thanks.
 
User avatar
BartoszP
Forum Guru
Forum Guru
Posts: 2888
Joined: Mon Jun 16, 2014 1:13 pm
Location: Poland

Re: script for Address List

Fri Apr 12, 2024 2:18 pm

Why not to prepare proper script, publish on WWW or FTP and then pull from that central place for execution?
If you want actively push data to each device then one error could stop whole process -> one point of failurer.
When each device puuls data by itself then things go in parallel.

Search forum for such a solution. "Import DShield list"

Who is online

Users browsing this forum: No registered users and 5 guests