I would like to use scripts created directly in dude's routeros to test some hosts.
I need to create a probe that when assigned as a service to a host(192.168.0.10), execute a command locally on the dude's routeros installation(127.0.0.1), passing the host's ip as an argument.
The idea is to run a script, passing it the host ip and get the return of this test and use it as a probe on the host.
Something like a function ros_command(":global HostToTest 192.168.0.10 ; /system script run test) "127.0.0.1"
My problem is that I don't know how to make ros_command run on localhost(127.0.0.1) instead of running on remote host when it's called as a function or probe.
Any help will be greatly appreciated.,