Skip to main content
Question

Best way to do Wireless AutoSwitching

  • July 25, 2013
  • 4 replies
  • 8 views

ImAMacGuy
Forum|alt.badge.img+23

I've got a requirement to setup some sort of wifi autoswitching. Is there any easy way to do this either by 3rd party app or via casper?

4 replies

rickgmac
Forum|alt.badge.img+9
  • Valued Contributor
  • 62 replies
  • July 26, 2013

Please explain further. Are you trying to do SSID switching? Band switching? Vlan switching? iOS or OSX or both?


Forum|alt.badge.img+7
  • Contributor
  • 47 replies
  • July 26, 2013

We created a solution using crankd from pymacadmin to switch automatically between internal and external network locations when the network changes.

This website contains an example of how to use crankd:
http://blog.hoachuck.biz/blog/2013/01/20/connect-microsoft-communicator-on-mac-os-when-network-status-change/

Crankd website:
https://code.google.com/p/pymacadmin/

Crankd supports several triggers like network changes, filesystem activity, application launching, etc.. Perhaps it fits for your needs too.


ImAMacGuy
Forum|alt.badge.img+23
  • Author
  • Esteemed Contributor
  • 1310 replies
  • July 26, 2013

Ahh, sorry, I guess I left out some details :)

We want to turn off wifi when the lan is plugged in, and turn back on when the lan is unplugged.


mm2270
Forum|alt.badge.img+24
  • Legendary Contributor
  • 7886 replies
  • July 26, 2013

That's been addressed several times in a few different scripts and threads. Just search here on JN for that. You'll find the answer.

I'll just say that be cautious about turning WiFi back on when Enet isn't plugged in. It was before my time at the company I'm working at, but I was told we had it working that way once but mobile users that traveled a lot with their laptops found they couldn't turn wireless off when on plane flights, which was problematic. The Launchd/Script combo kept seeing that Ethernet wasn't active and would turn WiFi back on. I'm sure that can be addressed with some additional scripting, but just be aware of that.