Monitor traffic

Will this script work:

/interface monitor-traffic wlan7 once do={
:if ($“rx-packets-per-second” = 0 ) do={/interface wireless scan 2 duration=1
} }

sometime a wifi card hangs, and short scan helps…

I wanted to add this to scheduler, like run in every 10 mins…


but not sure if this condition is possible to match like this

Thanks a lot

Use netwatch checking other side and switch the card off and on when it stops responding.