Thread 'net_start_hour problem'

Message boards : Questions and problems : net_start_hour problem
Message board moderation

To post messages, you must log in.

AuthorMessage
nico4485

Send message
Joined: 5 Jun 08
Posts: 4
France
Message 17663 - Posted: 5 Jun 2008, 8:32:32 UTC

Hi all,

I want to disable all networking communications for Sunday and Saturday for all computers at work to disable all trafic for the end of week.
I don't want to have problems with my network admin

But when i specify net_start_hour=24 and net_end_hour=0, there is an error with boinc GUI....
there is three value as explain in http://boinc.berkeley.edu/trac/wiki/PrefsReference/Time => Always, Never and HH:MM

Can you help me ????
ID: 17663 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15569
Netherlands
Message 17664 - Posted: 5 Jun 2008, 8:41:48 UTC - in response to Message 17663.  

But when i specify net_start_hour=24 and net_end_hour=0, there is an error with boinc GUI....

00:00-23:59 is what you need as 00:00 and 24:00 is the same value. (and in no digital clock you have the value of 24:00, always 00:00)
ID: 17664 · Report as offensive
nico4485

Send message
Joined: 5 Jun 08
Posts: 4
France
Message 17665 - Posted: 5 Jun 2008, 9:06:04 UTC

I doesn't work :

If i specify for all days
<net_start_hour>8.000000</net_start_hour>
<net_end_hour>18.000000</net_end_hour>

for today :
day_of_week = 4
i specify 00:00-23:59
it doesn't suspend network activity

How can i suspend network activity for Sunday and Saturday ???
ID: 17665 · Report as offensive
nico4485

Send message
Joined: 5 Jun 08
Posts: 4
France
Message 17670 - Posted: 5 Jun 2008, 16:34:34 UTC

So,

For Always, it should be net_start_hour=net_end_hour
For time specify, net_start_hour<>net_end_hour
For Never, there is no solution .....

ID: 17670 · Report as offensive
ProfileJord
Volunteer tester
Help desk expert
Avatar

Send message
Joined: 29 Aug 05
Posts: 15569
Netherlands
Message 17671 - Posted: 5 Jun 2008, 16:42:26 UTC - in response to Message 17670.  

For Never, there is no solution .....

Set in BOINC Manager->Advanced View->Activity->Network access suspended.
ID: 17671 · Report as offensive
ProfileGundolf Jahn

Send message
Joined: 20 Dec 07
Posts: 1069
Germany
Message 17673 - Posted: 5 Jun 2008, 17:17:39 UTC - in response to Message 17671.  

For Never, there is no solution .....

Set in BOINC Manager->Advanced View->Activity->Network access suspended.

Yeah, but that would require manual intervention on each Friday and Monday. I think Dagorath's proposal is the best approximation to "never on Saturday and Sunday"; however it's 1.2 minutes, not seconds:
   <day_prefs>
      <day_of_week>0</day_of_week>
      <net_start_hour>0.00</net_start_hour>
      <net_end_hour>0.02</net_end_hour>
   </day_prefs>
   <day_prefs>
      <day_of_week>6</day_of_week>
      <net_start_hour>0.00</net_start_hour>
      <net_end_hour>0.02</net_end_hour>
   </day_prefs>

Gruß,
Gundolf
Computer sind nicht alles im Leben. (Kleiner Scherz)
ID: 17673 · Report as offensive
nico4485

Send message
Joined: 5 Jun 08
Posts: 4
France
Message 17681 - Posted: 5 Jun 2008, 20:31:26 UTC - in response to Message 17674.  


cd "c:program filesBOINC"
boinccmd --set_network_mode never


OK Thanks,

I will do a script to stop networking for 20 computers. No problem for a batch.
It seems to be the best solution.

There is always a solution !!

Thanks Dagorath

Nico4485



ID: 17681 · Report as offensive
Thyme Lawn

Send message
Joined: 2 Sep 05
Posts: 103
United Kingdom
Message 17736 - Posted: 8 Jun 2008, 21:20:53 UTC - in response to Message 17663.  

But when i specify net_start_hour=24 and net_end_hour=0, there is an error with boinc GUI....

Those settings do exactly what you want, but you've hit the same problem as I did months ago. The time range validation done by BOINC Manager doesn't have an exception for the values required to disable network or processor usage, so you have to manually edit the following values into global_prefs_override.xml

   <day_prefs>
      <day_of_week>0</day_of_week>
      <net_start_hour>24.00</net_start_hour>
      <net_end_hour>0.00</net_end_hour>
   </day_prefs>
   <day_prefs>
      <day_of_week>6</day_of_week>
      <net_start_hour>24.00</net_start_hour>
      <net_end_hour>0.00</net_end_hour>
   </day_prefs>

"The ultimate test of a moral society is the kind of world that it leaves to its children." - Dietrich Bonhoeffer
ID: 17736 · Report as offensive
John McLeod VII
Avatar

Send message
Joined: 29 Aug 05
Posts: 147
Message 17756 - Posted: 10 Jun 2008, 2:57:24 UTC - in response to Message 17684.  


cd "c:program filesBOINC"
boinccmd --set_network_mode never


OK Thanks,

I will do a script to stop networking for 20 computers. No problem for a batch.
It seems to be the best solution.

There is always a solution !!

Thanks Dagorath

Nico4485



You're welcome.

20 computers... nice! But 20 presents more of a challenge than just 1. Let us know how you make out.




Not really that difficult. You only need ont batch file on one computer.

The command is:

boinccmd --host hostname --passwd passwd --set_network_mode never

repeat 20 times for each computer.

At the other end of the weekend, I have:

boinccmd --host hostname --passwd passwd --set_network_mode auto

again repeat 20 times.

(I only have 6 computers that I have to do this for).

BOINC WIKI
ID: 17756 · Report as offensive

Message boards : Questions and problems : net_start_hour problem

Copyright © 2024 University of California.
Permission is granted to copy, distribute and/or modify this document under the terms of the GNU Free Documentation License, Version 1.2 or any later version published by the Free Software Foundation.