Hi,
I have this script running on my rb200 boards scheduled every xx minutes to check if a wireless interface is running or not. I now use several rb532's boards, but I can't get it to work. I'm not a scriptkiddy myself, someone on this forum made one for me. Could someone please help me?
:foreach iface in=( [ / interface wireless find interface-type="Atheros AR5212" ] . [ / interface wireless find interface-type="Atheros AR5213" ] ) do={
:set iface [ / interface wireless get $iface name ]
:if ( ( [ / interface wireless find name=$iface running=no ] != "" ) && ( [ / interface wireless find interface-type=virtual-AP master-interface=$iface running=true ] = "" ) && ( [ / interface wireless access-list find interface=$iface ] != "" ) ) do={
:log facility=Wireless-Info message=( $iface . ": resetting interface!" )
/ interface wireless disable $iface
/ interface wireless enable $iface
:delay 5s
:if ( [ / interface wireless get $iface running ] = true ) do={ :log facility=Wireless-Info message=( $iface . " is now running" ) }
/ tool e-mail send to=[ / tool e-mail get from ] from=( " <" . [ / tool e-mail get from ] . ">" ) subject=( "enforcer: interface " . $iface . "-reset, no running on-" . [ / system identity get name ] . " (" . [ / system clock get time ] . " " . [ / system clock get date ] . ")" )
}
}