Is it normal to have nearly 30 global variables default on hAP ac2? When I deleted them, they did come back.
Router running 6.47rc2, never been on internet, just as a switch behind another router.
Any documentation on what this is and what its used for?
Some short like the two first here, but rest a long like the two below.
Eks
bDebugOn
0
nTemp
2
setLan
;(eval / (eval /globalname=$defconfMode) (eval /globalname=$addCL) (eval /globalname=$addDL) (eval /globalname=$addDCL) (eval /globalname=$dhcpEnabled) (<%% $addDL (> $addDL);#| LAN Configuration:) (<%% $addDCL (> $addDCL);set LAN) (eval /ifcondition=(= $useDetNet 1);do=;(eval / (eval /setname=$lanPort;value=bridge) (<%% $addDL (> $addDL);#| LAN Ports: detected automatically;) (<%% $addCL (> $addCL); /interface bridge) (<%% $addCL (> $addCL);( . add name= $lanPort comment=defconf;)) (<%% $addCL (> $addCL);( . set $lanPort auto-mac=no admin-mac=[/interface ethernet get ether1 mac-address];)) (<%% $addCL (> $addCL);( . port add bridge= $lanPort interface=LAN comment=defconf;)));else=;(eval / (eval /ifcondition=(= $lanPort bridge);do=;(eval / (<%% $addCL (> $addCL); /interface bridge) (<%% $addCL (> $addCL);( . add name= $lanPort disabled=no auto-mac=yes protocol-mode=rstp comment=defconf;)) (<%% $addCL (> $addCL); :local bMACIsSet 0;) (<%% $addDCL (> $addDCL);( . $ [:tostr [/interface print as-value]])) (eval /ifcondition=(!= $wanPorts );do=;(eval / (eval /localname=$tmpWanPorts;value=) (eval /foreachcounter=$i;do=;(eval / (eval /setname=$tmpWanPorts;value=( . $tmpWanPorts || name= " $i ")));in=$wanPorts) (<%% $addCL (> $addCL);( . :foreach k in=[/interface find where !(slave=yes $tmpWanPorts || name~ " $lanPort " )] do={)));else=;(eval / (<%% $addCL (> $addCL); :foreach k in=[/interface find where !(slave=yes)] do={))) (<%% $addCL (> $addCL);( . :local tmpPortName [/interface get $ k name];)) (<%% $addDCL (> $addDCL);( . add bridge port: $ tmpPortName)) (<%% $addCL (> $addCL);( . :if ( $ bMACIsSet = 0) do={)) (<%% $addDCL (> $addDCL);( . $ [/interface get $ k type])) (<%% $addCL (> $addCL);( . :if ([/interface get $ k type] = " ether " ) do={)) (<%% $addDCL (> $addDCL);( . $ [/interface get $ tmpPortName mac-address])) (<%% $addCL (> $addCL);( . /interface bridge set " $lanPort " auto-mac=no admin-mac=[/interface ethernet get $ tmpPortName mac-address];)) (<%% $addCL (> $addCL); :set bMACIsSet 1;) (<%% $addCL (> $addCL); }) (<%% $addCL (> $addCL); }) (<%% $addCL (> $addCL); /interface bridge port) (<%% $addCL (> $addCL);( . add bridge= $lanPort interface= $ tmpPortName comment=defconf;)) (<%% $addCL (> $addCL); }))))) (eval /ifcondition=(|| (= $defconfMode ) (= $defconfMode $nil));do=;(eval / (eval /ifcondition=(= $dhcpEnabled 1);do=;(eval / (<%% $addDCL (> $addDCL);( . setting DHCP mode: $dhcpMode)) (eval /ifcondition=(= $dhcpMode 2);do=;(eval / (<%% $addDL (> $addDL);( . #| DHCP Client: enabled on $lanPort (LAN port);)) (<%% $addCL (> $addCL);( . /ip dhcp-client add interface= $lanPort disabled=no comment= " defconf " ;)));else=;(eval / (eval /ifcondition=(= $dhcpMode 1);do=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.1/24 is set on $lanPort (LAN port))) (<%% $addDL (> $addDL);#| DHCP Server: enabled;) (<%% $addCL (> $addCL);( . /ip pool add name= " default-dhcp " ranges=192.168.88.10-192.168.88.254;)) (<%% $addCL (> $addCL); /ip dhcp-server) (<%% $addCL (> $addCL);( . add name=defconf address-pool= " default-dhcp " interface= $lanPort lease-time=10m disabled=no;)) (<%% $addCL (> $addCL); /ip dhcp-server network) (<%% $addCL (> $addCL);( . add address=192.168.88.0/24 gateway=192.168.88.1 comment= " defconf " ;)) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.1/24 interface= $lanPort comment= " defconf " ;)));else=;(eval / (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.1/24 interface= $lanPort comment= " defconf " ;)))))));else=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.1/24 is set on $lanPort (LAN port))) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.1/24 interface= $lanPort comment= " defconf " ;)))));else=;(eval / (eval /ifcondition=(= $defconfMode master);do=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.2/24 is set on $lanPort )) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.2/24 interface= $lanPort comment= " defconf " ;)))) (eval /ifcondition=(= $defconfMode slave);do=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.3/24 is set on $lanPort )) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.3/24 interface= $lanPort comment= " defconf " ;)))))))
setW60G
;(eval / (eval /globalname=$addCL) (eval /globalname=$addDL) (eval /globalname=$wirelessEnabled) (eval /localname=$lanPort;value=bridge) (<%% $addCL (> $addCL); /interface bridge) (<%% $addCL (> $addCL);( . add name= $lanPort disabled=no protocol-mode=rstp comment=defconf auto-mac=no admin-mac=[/interface ethernet get ether1 mac-address];)) (<%% $addCL (> $addCL); /interface bridge port) (<%% $addCL (> $addCL);( . add bridge= $lanPort interface=ether1 comment=defconf;)) (eval /ifcondition=(= $wirelessEnabled 1);do=;(eval / (<%% $addDL (> $addDL);#| wlan60-1 Configuration:) (<%% $addCL (> $addCL); /interface w60g) (<%% $addCL (> $addCL); set wlan60-1 disabled=no) (eval /ifcondition=(|| (= $ssid ) (= $ssid $nil));do=;(eval / (<%% $addDL (> $addDL);#| ssid: MikroTik;));else=;(eval / (<%% $addDL (> $addDL);( . #| ssid: $ssid ;)) (<%% $addCL (> $addCL);( . set wlan60-1 ssid= $ssid)))) (eval /ifcondition=(|| (= $mode ) (= $mode $nil));do=;(eval / (eval /ifcondition=(= $license 4);do=;(eval / (<%% $addDL (> $addDL);#| mode: ap-bridge;) (<%% $addCL (> $addCL); set wlan60-1 mode=ap-bridge));else=;(eval / (<%% $addDL (> $addDL);#| mode: station-bridge;) (<%% $addCL (> $addCL); set wlan60-1 mode=station-bridge))));else=;(eval / (eval /ifcondition=(= $mode master);do=;(eval / (<%% $addDL (> $addDL);#| mode: bridge;) (<%% $addCL (> $addCL); set wlan60-1 mode=bridge));else=;(eval / (<%% $addDL (> $addDL);#| mode: station-bridge;) (<%% $addCL (> $addCL); set wlan60-1 mode=station-bridge))))) (eval /ifcondition=(! (|| (= $pass ) (= $pass $nil)));do=;(eval / (<%% $addDL (> $addDL);#| password: yes;) (<%% $addCL (> $addCL);( . set wlan60-1 password= $ defconfPassword)));else=;(eval / (<%% $addDL (> $addDL);#| password: no;))) (eval /ifcondition=(|| (= $mode ) (= $mode $nil));do=;(eval / (eval /ifcondition=(= $license 4);do=;(eval / (<%% $addCL (> $addCL);( . set wlan60-1 put-stations-in-bridge= $lanPort isolate-stations=no)));else=;(eval / (<%% $addCL (> $addCL); /interface bridge port) (<%% $addCL (> $addCL);( . add bridge= $lanPort interface=wlan60-1 comment=defconf;)))));else=;(eval / (eval /ifcondition=(= $mode master);do=;(eval / (eval /ifcondition=(|| (= $backup 0) (= $backup $nil));do=;(eval / (<%% $addCL (> $addCL);( . set wlan60-1 put-stations-in-bridge= $lanPort)))));else=;(eval / (eval /ifcondition=(|| (= $backup 0) (= $backup $nil));do=;(eval / (<%% $addCL (> $addCL); /interface bridge port) (<%% $addCL (> $addCL);( . add bridge= $lanPort interface=wlan60-1 comment=defconf;)))))))))) (eval /ifcondition=(|| (= $mode ) (= $mode $nil));do=;(eval / (eval /ifcondition=(= $license 4);do=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.1/24 is set on $lanPort )) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.1/24 interface= $lanPort comment= " defconf " ;)));else=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.1/24 is set on $lanPort )) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.1/24 interface= $lanPort comment= " defconf " ;)))));else=;(eval / (eval /ifcondition=(= $mode master);do=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.2/24 is set on $lanPort )) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.2/24 interface= $lanPort comment= " defconf " ;)));else=;(eval / (<%% $addDL (> $addDL);( . #| IP address 192.168.88.3/24 is set on $lanPort )) (<%% $addCL (> $addCL);( . /ip address add address=192.168.88.3/24 interface= $lanPort comment= " defconf " ;)))))))