Community discussions

MikroTik App
 
tucker
newbie
Topic Author
Posts: 49
Joined: Sat Mar 10, 2007 2:42 pm

rc10 Bug?

Wed Nov 14, 2007 4:58 pm

On latest rc10 if I run the following command from terminal it crashes the console. I have tried this on several rc10 systems and the same effect happens
/interface
:put [find type=ether]
I cant see any reason why this would cause a crash on the console rather than simply dumping an error. I am using MiniRouter RB150 using rc10 for the tests.
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: rc10 Bug?

Wed Nov 14, 2007 7:31 pm

me too - x86. send it to support I guess.

[master@cip-home] /interface> :put [find type=ether]

Console has crashed; please log in again.
 
Alex
Member Candidate
Member Candidate
Posts: 214
Joined: Thu Sep 30, 2004 11:07 am

Re: rc10 Bug?

Wed Nov 14, 2007 8:42 pm

532r5 - same problem
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: rc10 Bug?

Thu Nov 15, 2007 1:35 pm

this will be solved
 
tucker
newbie
Topic Author
Posts: 49
Joined: Sat Mar 10, 2007 2:42 pm

Re: rc10 Bug?

Thu Nov 15, 2007 3:11 pm

Thanks for feedback.

I think I have found two other script commands that crash the console ... working on them to see if I can replicate them and on different devices.
 
cifi
just joined
Posts: 4
Joined: Wed Nov 21, 2007 1:29 pm

Re: rc10 Bug?

Wed Nov 21, 2007 1:42 pm

In case of 3.0RC9 worked fine the following command in terminal:
/ queue simple remove [/ queue simple find interface=all]

but in case of 3.0RC10 i have got this error message:
ambiguous value of interface, more than one possible value matches input

Is it a 3.0RC10 bug too?
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: rc10 Bug?

Wed Nov 21, 2007 3:13 pm

this is error in your script

in change log you could read that no in find clause you have to use string in quotes
/ queue simple remove [/ queue simple find interface=all]
this will look for variable called all and when it does not find any variable with such a name it will be substitured with "" (nothing) and then report you what you have,

instead you have to use quotation resulting in
/ queue simple remove [/ queue simple find interface="all"]
so, if you use string after find or find where clause it will be considered to be a variable name not the string if the variable does not exist.

actually this is more like any other scripting language where you have to put string in quotation to use it as a string.

please note this change, as everywhere you use find you have to make changes in the script code

also setting code like this will work
:global all all
/ queue simple remove [/ queue simple find interface=all]
that way you create global variable all that contains value of string all and when you set it in your script it can resolve to the value of variable all to the string value all.
 
cifi
just joined
Posts: 4
Joined: Wed Nov 21, 2007 1:29 pm

Re: rc10 Bug?

Wed Nov 21, 2007 4:40 pm

Thank you!
 
changeip
Forum Guru
Forum Guru
Posts: 3833
Joined: Fri May 28, 2004 5:22 pm

Re: rc10 Bug?

Wed Nov 21, 2007 6:40 pm

So why not continue to use to $var format ? Just seems odd to change something that will break every script out there.
 
User avatar
janisk
MikroTik Support
MikroTik Support
Posts: 6263
Joined: Tue Feb 14, 2006 9:46 am
Location: Riga, Latvia

Re: rc10 Bug?

Thu Nov 22, 2007 12:00 pm

because when you get used to it you will make less errors out of concept - i can write that that way and it will work, but some other place you cannot, and you get confused.
 
antenman
newbie
Posts: 25
Joined: Wed Jun 14, 2006 7:30 pm

Re: rc10 Bug?

Fri Nov 23, 2007 12:36 am

pppoe server problem are still here....... server is created and everything seems ok but users can't login.... sometimes few users get connection but traffic is ZERO.