Community discussions

MikroTik App
 
ckgth
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Jun 06, 2007 5:03 pm

:global not set?

Wed Mar 19, 2014 1:50 pm

Hi,

i will made a simple tx-power script, but the global are not set:

:global txold [/interface wireless registration-table get number=0 tx-signal-strength];
:log info $txold;

becomes a zero in script - no data. Why?
With cli it works.

regards
Christian
 
toni17
newbie
Posts: 36
Joined: Thu Dec 15, 2011 9:55 pm

Re: :global not set?

Wed Mar 19, 2014 1:55 pm

Yes the same problem with my routers after upgraded to 6.10
Please Mikrotik do something in next Ros .
 
ckgth
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 77
Joined: Wed Jun 06, 2007 5:03 pm

Re: :global not set?

Wed Mar 19, 2014 3:12 pm

Hi,

this is not an ROS Problem.
I have mailed the support (!!!Answer in 5 min!!!!)
Hello,

You cannot user get number=0 in scripts.
Use find command to find specific entry.

Regards,
Maris
you should use:
:global txold [/interface wireless registration-table get [ find interface=wlan1 ] tx-signal-strength];
:log info $txold;

in script. Works. tested.

Who is online

Users browsing this forum: Jonty and 28 guests