scheduled task [Solved] [INACTIVE]

BrazilFW 2.xhelp discussions in English.

scheduled task [Solved]

Mensagempor ahmed » Qua Dez 12, 2007 7:59 am

how to use scheduled task and make BFW enable QOS at 8:00 am and disable QOS at 11:00 pm
what is the code task to do

i want a limted download from 8:00 am to 11:00 pm for all LAN users
and max download from 11:00 pm to 8:00 am ........ ((daily))

thanks for BFW team
ahmed
 

Mensagempor gamba47 » Qua Dez 12, 2007 12:29 pm

ahmed, welcome again.


You can try with those lines.

i want a limted download from 8:00 am to 11:00 pm for all LAN users

You need to start QoS every Day at 8am.
Código: Selecionar todos
#0 08 * * * / etc/rc.d/rc.qos start




and max download from 11:00 pm to 8:00 am ........ ((daily))

Here we need to stop QoS at 11pm
Código: Selecionar todos
0 23 * * * /etc/rc.d/rc.qos stop



Try and post your results. gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Mensagempor ahmed » Qui Dez 13, 2007 10:39 am

should i write this codes in consule (DOS) ????
ahmed
 

Mensagempor gamba47 » Qui Dez 13, 2007 2:44 pm

You can do it in console mode or in your webadmin.


You only need to change Scheluded Task ON and edit TASK FILE

The file is this:

/var/spool/cron/crontabs/root


Make a backup and reboot your machine.

Post your results! don´t forget this.
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Mensagempor ahmed » Sex Dez 14, 2007 4:14 pm

I wrote it in webadmin interfacei
I removed the "#" from codes
and also I removed the space pefore /etc
I wrote it like this:
Código: Selecionar todos
0 08 * * * /etc/rc.d/rc.qos start

Código: Selecionar todos
0 24 * * * /etc/rc.d/rc.qos stop

I changed the time to 12 midnight so  I replaced the time from "23" to "24"
Is it right or i should wrote it "00"
THANK YOU gamba47
here is three pictures to show you how it done
Imagem
Imagem
Imagem
ahmed
 

Mensagempor ahmed » Sex Dez 14, 2007 4:22 pm

When I reboot BFW from webadmin or console mode
it's do the job but i must restart the BFW pc manualy
it's say restarting and the ping say BFW pc is of but i must restart the pc manually
ahmed
 

Mensagempor gamba47 » Sex Dez 14, 2007 9:00 pm

ahmed, i don´t understand you, please explain a lite bit, english is not my first lenguage.



I changed the time to 12 midnight so  I replaced the time from "23" to "24"
Is it right or i should wrote it "00"


I think you need to put "00"



Best Regards. gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Mensagempor ahmed » Dom Dez 16, 2007 1:38 pm

I changed the time to 12 midnight so  I replaced the time from "23" to "24"
Is it right or i should wrote it "00"


I mean stop QOS 12 am not 11:00 pm  " plus "+" 1 hour"

look at the last picture lines with red circle
ahmed
 

Mensagempor gamba47 » Dom Dez 16, 2007 7:12 pm

Ok, you can do it at 23:59



Código: Selecionar todos
59 23 * * * /etc/rc.d/rc.qos stop



Right now.  it is working????


gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Mensagempor ahmed » Seg Dez 17, 2007 10:19 am

yes it's work good
thank you for help

:aplause:  dancing  dancing  :aplause:
ahmed
 

Re: scheduled task [Solved]

Mensagempor ahmed » Dom Mai 17, 2009 5:29 am

scheduled task doesn't work with BFW 2.31.10
what's wrong in it
ahmed
 

Re: scheduled task [Solved]

Mensagempor gamba47 » Dom Mai 17, 2009 5:01 pm

ahmed escreveu:scheduled task doesn't work with BFW 2.31.10
what's wrong in it


i´m using two BrazilFW 2.31.10 and scheduled task is working like a charm.

Do you enable scheduled task on webadmin ?


gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Re: scheduled task [Solved]

Mensagempor ahmed » Dom Mai 17, 2009 5:34 pm

Do you enable scheduled task on webadmin ?


yes and when i write the command
Código: Selecionar todos
/etc/rc.d/rc.qos stop

in console "putty"
the download speed up to 240 kb/s for a few seconds then back to 35 kb/s again
maybe the server time do it
how can i change bfw to read the time from the PC "M.B" timing
and if i did why when i write /etc/rc.d/rc.qos stop in putty the speed up for a few seconds
and back again to 30 where my QOS speed is
Código: Selecionar todos
define_class_qos "1:1" "1:10" 30 265 10 64 10.0.0.3 #Example
define_class_qos "1:1" "1:11" 30 265 10 64 10.0.0.4 #Example
define_class_qos "1:1" "1:12" 30 265 10 64 10.0.0.5 #Example
define_class_qos "1:1" "1:13" 30 265 10 64 10.0.0.6 #Example
define_class_qos "1:1" "1:14" 30 265 10 64 10.0.0.7 #Example
define_class_qos "1:1" "1:15" 30 265 10 64 10.0.0.8 #Example
ahmed
 

Re: scheduled task [Solved]

Mensagempor gamba47 » Dom Mai 17, 2009 7:26 pm

Disable QoS and make the same test.

Is the LAN only for you ? maybe other people are using the LAN.

Install iptraf & see.


gamba47
Avatar do usuário
gamba47
BFW Beneméritos
 
Mensagens: 7243
Registrado em: Ter Dez 27, 2005 1:51 pm
Localização: Buenos Aires, Argentina
BrazilFW Box: Pentium4 1256mb RAM HD 200gb
BrazilFW 3.0.237 without Squid
3 ADSLs & 1 Cablemodem
50 Users & more!

Re: scheduled task [Solved]

Mensagempor ahmed » Ter Mai 19, 2009 11:46 pm

gamba47 escreveu:Disable QoS and make the same test.

Is the LAN only for you ? maybe other people are using the LAN.

Install iptraf & see.


gamba47


putty result
Código: Selecionar todos
brazilfw# /etc/rc.d/rc.qos stop
* Deleting old QOS classes in eth1 Interface...
* Deleting old root filters in eth1 Interface...
* Deleting old QOS classes in eth0 Interface...
* Deleting old root filters in eth0 Interface...
QOS: QOS installed, but disabled  ...




me alone on lan
the same problem
ahmed
 


Voltar para BrazilFW 2.x - English Forum

Quem está online

Usuários navegando neste fórum: Nenhum usuário registrado e 4 visitantes