Script to find specific "Active host names"

Hello,

Totally new to scripting with mikrotik routers.

However seems most anything can be done with this amazing router.

Is this possible:

  1. Scan all “active hostnames” for say “TEST-TST-*”

  2. That would then find all clients that has the names of TEST-TST-%

for example have clients that has the names: TEST-TST-0001 and TEST-TST-0002

  1. And then I want to find out what IP addressess the both computers has..

  2. Then want the data in some .txt file


    Can this be done?

Thanks,

Best regards,
Johan