Go to Post We are just helping to keep Home Depot from going Bankrupt :D . - E. Wood [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 28-10-2013, 10:44
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
How does the Driver Station fiddle the network settings?

We wrote a script last year that uses netsh to fix up our network configuration when it gets hosed (our development PCs have two NICs, one to the school network, one dedicated for robots). We have the fun wrinkle that our school is using 10.x.x.x, so when the Driver's Station changes the network mask for the robot NIC to 255.0.0.0, we lose Internet.

We are getting school PCs moved over to Windows 7, and we can no longer use the "netsh" command to fix up addresses and network masks (unless run as administrator).

The Driver Station is able to fiddle with the network settings on W7: how does it do that? We need to emulate it....
Reply With Quote
  #2   Spotlight this post!  
Unread 28-10-2013, 15:13
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: How does the Driver Station fiddle the network settings?

It is allowed to do so because it is signed and has a manifest that gives it admin privileges. My search results indicate that runas may allow you to do the equivalent things as sudo to your script.

Good luck.
Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 28-10-2013, 18:11
FIRSTgenius FIRSTgenius is offline
Registered User
FRC #3318
 
Join Date: Apr 2013
Location: Georgia
Posts: 9
FIRSTgenius is an unknown quantity at this point
Re: How does the Driver Station fiddle the network settings?

fovea1959, can you provide a link to the script? This would be so helpful for our team.

Thank you.
Reply With Quote
  #4   Spotlight this post!  
Unread 28-10-2013, 18:12
FIRSTgenius FIRSTgenius is offline
Registered User
FRC #3318
 
Join Date: Apr 2013
Location: Georgia
Posts: 9
FIRSTgenius is an unknown quantity at this point
Re: How does the Driver Station fiddle the network settings?

Quote:
Originally Posted by fovea1959 View Post
We wrote a script last year that uses netsh to fix up our network configuration when it gets hosed (our development PCs have two NICs, one to the school network, one dedicated for robots). We have the fun wrinkle that our school is using 10.x.x.x, so when the Driver's Station changes the network mask for the robot NIC to 255.0.0.0, we lose Internet.

We are getting school PCs moved over to Windows 7, and we can no longer use the "netsh" command to fix up addresses and network masks (unless run as administrator).

The Driver Station is able to fiddle with the network settings on W7: how does it do that? We need to emulate it....
Can you provide the link to the script?
Reply With Quote
  #5   Spotlight this post!  
Unread 28-10-2013, 19:05
Joe Ross's Avatar Unsung FIRST Hero
Joe Ross Joe Ross is offline
Registered User
FRC #0330 (Beachbots)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1997
Location: Los Angeles, CA
Posts: 8,557
Joe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond reputeJoe Ross has a reputation beyond repute
Re: How does the Driver Station fiddle the network settings?

Quote:
Originally Posted by FIRSTgenius View Post
Can you provide the link to the script?
A few people have provided scripts or tools:
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
http://www.chiefdelphi.com/forums/sh...ighlight=netsh
Reply With Quote
  #6   Spotlight this post!  
Unread 31-10-2013, 18:56
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Re: How does the Driver Station fiddle the network settings?

Joe, once again, thanks.

All: Joe's information is what we've worked off of.
Reply With Quote
  #7   Spotlight this post!  
Unread 31-10-2013, 19:22
fovea1959's Avatar
fovea1959 fovea1959 is offline
Herder of programmers
AKA: Doug Wegscheid
FRC #3620 (The Average Joes)
Team Role: Mentor
 
Join Date: Jan 2011
Rookie Year: 2011
Location: St Joseph
Posts: 325
fovea1959 will become famous soon enough
Re: How does the Driver Station fiddle the network settings?

...and Greg, thanks for the answer!
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 08:20.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi