Please, help… Im trying to run the following console command using script:
/interface wireless access-list print count-only
Im adding the command as follow:
system script>add name=“test1” source={/interface wireless access-list print count-only}
But when I do “run test1”, the console crashes. Didnt found where Im doing wrong. Please? Im trying to run a script from dude server, but couldnt even run the script manually. There must have something I am missing…
[admin@Lancernet_Pira_VNova] system script> :put (([/interface wireless registration-table print count-only]*100)/[/interfac
e wireless access-list print count-only ]. “%”)
25
70
35%
[admin@Lancernet_Pira_VNova] system script> :log info (([/interface wireless registration-table print count-only]*100)/[/int
erface wireless access-list print count-only ]. “%”)
25
70
[admin@Lancernet_Pira_VNova] system script> add name=“teste1” source={:log info (([/interface wireless registration-table pr
int count-only]*100)/[/interface wireless access-list print count-only ]. “%”)}
[admin@Lancernet_Pira_VNova] system script> print
0 name=“teste1” owner=“admin” policy=ftp,reboot,read,write,policy,test,winbox,password run-count=0
source=:log info (([/interface wireless registration-table print count-only]*100)/[/interface wireless access-list
print count-only ]. “%”)
[admin@Lancernet_Pira_VNova] system script> run teste1
[admin@Lancernet_Pira_VNova] system script>
Console has crashed or maybe system is completely busy; please log in again.
I must be missing something. Apart of using ros_command() function, why does the run command crash the terminal? Log info when running on console also works well and put the info on the logs, but… it not work when running as script! I didnt found any related info about it anywhere. Please, help.
ps: “log-test” script example found in ROS manual works fine… It says hello in the logs, indeed. Sadly ROS does not have feelings. It would get scared if it look at my face atm…
There must have something wrong with the script engine. When the console crashes, there is a log info that says “proxy rule added”. Then, every time I go there (/ip proxy) and choose “connections”, the is a new log entry that says the same. The log rule have a comment: “block telnet & e-mail spam”. What is this supposed to be?