Handle script error mikrotik
Posted: Thu Oct 26, 2017 6:13 am
I'm new in mikrotik Script and I have some question. Please help me resolve this:
1/ How can I get all wireless interface name in my device? Like wlan1, wlan2
2/ How can I get all SSID on my device?
3/ I have small script to remote config by using import command. That mean my device will get script from remote server and import this script on this device. I can't handle the error when my device import script. How can I handle this because I want if script import successfull, my device will send some request to my server to told that this script running successfull. I have try using command
but that not work.
Thanks for your reply.
1/ How can I get all wireless interface name in my device? Like wlan1, wlan2
2/ How can I get all SSID on my device?
3/ I have small script to remote config by using import command. That mean my device will get script from remote server and import this script on this device. I can't handle the error when my device import script. How can I handle this because I want if script import successfull, my device will send some request to my server to told that this script running successfull. I have try using command
Code: Select all
:do {
myscript
} on-error={
dosomething
}
Thanks for your reply.