Community discussions

MikroTik App
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Questions about the Wireless

Tue Apr 29, 2014 3:21 pm

Hello,

I am the beginner for RB951G-2HnD. I would like to know the following:
1. How to adjust the power of the wireless, as I want to reduce the power of it in the small area.
2. How to set schedule to enable and disable the wireless automatically everyday?

Thank you,
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Tue Apr 29, 2014 4:51 pm

Under the advanced options on the wireless settings you will see TX Power. This is where you will change the tx power of the device.

You could create a script to disable and enable the wireless interface and then use scheduler to run the enable and disable scripts as desired.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 5:04 pm

Hello Brown,

Thank you for your information.

May I know how to write the script for disable and enable the wireless?

Thank you,
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Tue Apr 29, 2014 5:13 pm

In /system script you can have a script to disable
/interface wireless set numbers=0 disabled=yes
To enable
/interface wireless set numbers=0 disabled=no
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 5:58 pm

Thanks, Brown.

Excuse me, this is the first time that I create the script. What's the policy of the script that it should be set?

Thank you
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Tue Apr 29, 2014 6:01 pm

Just leave it default and leave them all selected.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 6:03 pm

I have set the following for disable, but it doesn't disable the wlan after run. Why?
You do not have the required permissions to view the files attached to this post.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 6:05 pm

Okay, I leave it as default (not select anything for policy). After Run the script for disabled, the wlan still enabled.
You do not have the required permissions to view the files attached to this post.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Tue Apr 29, 2014 6:05 pm

Check all of the policy boxes, save, and try again.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 6:12 pm

The script setup completed.

Next step, how to add this script in scheduler:

I would like to set as the following:
Disable at 01:30
Enable at 05:45

Does the following set is correct?
You do not have the required permissions to view the files attached to this post.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Tue Apr 29, 2014 6:17 pm

It should be like this. Don't forget to set your NTP Client on your router.
/system scheduler
add name="Disable Wireless" on-event=\
    "/interface wireless set numbers=0 disabled=yes" policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    start-date=apr/29/2014 start-time=15:30:00
add name="Enable Wireless" on-event=\
    "/interface wireless set numbers=0 disabled=no" policy=\
    ftp,reboot,read,write,policy,test,winbox,password,sniff,sensitive,api \
    start-date=apr/29/2014 start-time=00:05:45
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 6:24 pm

As I would like to disable the wireless at midnight (01:30), hence, does I fill "start time" for 01:30:00 and Interval for "00:00:00"?

And, does it perform this script everyday?
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Tue Apr 29, 2014 6:33 pm

You don't need to set interval. Yes, they will run daily.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Tue Apr 29, 2014 6:39 pm

Noted with thanks, Brown!
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 1:50 am

Hello Brown,

As the time is passed in my time zone, the scripts has not been ran. You can see the run counter are "0" in the screen captured. Why?
You do not have the required permissions to view the files attached to this post.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 1:52 am

According to the log, it has not show the script has been run, too. why?
You do not have the required permissions to view the files attached to this post.
 
User avatar
cbrown
Trainer
Trainer
Posts: 1839
Joined: Thu Oct 14, 2010 8:57 pm
Contact:

Re: Questions about the Wireless

Wed Apr 30, 2014 1:58 am

Because you have 1:30 which is AM. You need 13:30 for 1:30 pm.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 2:53 am

Nope, I would like to set 01:30 am. Does it is 24 hour format as 01:30?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 9:28 am

Wrong interval. Write "1d " before zeroes.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 9:43 am

But, for interval, does it need to input a time format value, instead of "1d"?
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 10:13 am

Try it exactly with the space. If there is an error the value is not accepted and marked red.
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 3:27 pm

"Invalid value in Interval"
You do not have the required permissions to view the files attached to this post.
 
jarda
Forum Guru
Forum Guru
Posts: 7756
Joined: Mon Oct 22, 2012 4:46 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 4:14 pm

So again:
Wrong interval. Write "1d " before zeroes.
and again:
Try it exactly with the space.
And you did not do what I wrote.

"Before" means that you leave the zeroes as they are and put the "1d " at the left side of the zeroes with the space between "1d" and the zeroes.

Like this: "1d 00:00:00"

Why you did not do so?
 
boscolee
newbie
Topic Author
Posts: 40
Joined: Tue Apr 29, 2014 3:13 pm

Re: Questions about the Wireless

Wed Apr 30, 2014 4:33 pm

Finally, it worked!

Thanks, Brown.

Who is online

Users browsing this forum: Amazon [Bot] and 21 guests