networksetup?

I just did a search because I'm going to need to change the Network System Preferences for 300 Macs tonight or they won't be able to connect to the Internet tomorrow. (Don't get me started about the short warning.) We need to change the PAC file that's been configured in the "Configure Proxies: Manually" window of the "Proxies" tab of a specific network location. I found this topic which seems to indicate I might be able to use the networksetup command. However, there are no man pages for this command on my workstation. I found a cached (Google) page with the contents, but there doesn't seem to be any option for the PAC file. Any pointers would be appreciated.

-Doug

2GHz Intel iMac 1GB RAM, 500GB HD Super Drive / 2GHz BlackBook 2GB RAM, 120GB HD, Mac OS X (10.4.9), 1.42GHz Mac mini 1GB RAM, 80GB HD / EyeTV Hybrid / 40GB iPod photo 2GB iPod nano

Posted on Mar 27, 2007 5:43 PM

Reply
8 replies

Mar 27, 2007 10:44 PM in response to Douglas McLaughlin

If you run networksetup without any arguments it will print the command syntax - not the same as a man page, but it should be enough.

Doing so will (eventually) lead to the command:

<pre class=command>networksetup -setautoproxyurl <networkservice> <url></pre>

So you'd run something like:

<pre class=command>sudo networksetup -setautoproxyurl "Built-in Ethernet" "http://your.server/proxy.pac"</pre>

Substitute the appropriate URL and interface name.

Mar 27, 2007 11:12 PM in response to Camelot

Thanks to you both. I've decided that it's not going to be "my fault" if someone else makes a decision to turn off networking for all the Macs at my company after giving me three hours notice (before the end of the day the day before and AT LEAST the did give us notice). So, I will go in a bit early tomorrow and try to update a few folks. If the Marketing Department stops functioning because of a corporate IT decision that is out of my control and no one bothered to involve the Mac IT folks until the very last minute, it's possible that the multi-million dollar consequences may force corporate IT to involve us specifically in the future.

So, I checked in tonight on my own time, but the testing is going to have to wait until the morning. I was sure I could find some suggestions here. Thanks!

-Doug

Mar 28, 2007 10:53 AM in response to Camelot

There is no networksetup command on my workstation or anyone elses in my office (on my own Terminal or through ARD 3.1). I get a "command not found" error whether I include any arguments or not. I do have all the Server Tools and Developer Tools on my own workstation.

I have a Dual 2.0GHz G5 tower with Mac OS X 10.4.8. It has the original "image" we use to install software on all the workstations, so perhaps this command has been left off the image somehow. When creating the image, we did skip most printer drivers and additional languages. So, it's a slightly slimmed-down Mac OS install, but it wasn't much more restrictive than that.

EDIT: It's also not on my own personal MacBook with 10.4.9 and a full install of Mac OS X.

-Doug

Mar 28, 2007 12:24 PM in response to foilpan

Thank you, we've found there and I can run the command if I put the full path into the Terminal window (or ARD's UNIX option). However, the "-setautoproxyurl" argument isn't available in the Tiger version...

I've tried Gnarlodious' command and it did work. It's just not 100% clear to me how to actually make it take effect. Is a restart required?

-Doug

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

networksetup?

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.