Chaging proxy to PAC file using -setwebproxy

I've sent a UNIX command to a test Mac to change the proxies from manual configuration (server and port number) to "Using a PAC file" as follows:

networksetup -setwebproxy "Built-in Ethernet" "http://servername/proxyfile.pac"

This command puts the PAC file location into the "PAC File URL:" field but won't change the "Configure Proxies:" drop-down from "Manually" to "Using a PAC file".

What's the syntax for enabling a PAC file with "networksetup" in ARD 3.1?

Thanks.

Intel iMac 20", Mac OS X (10.4.9)

Posted on Jul 8, 2007 9:05 PM

Reply
6 replies

Jul 9, 2007 6:22 PM in response to Homercycles

The command line tools with ARD do not appear to have any syntax for specifying a PAC file URL nor the syntax to specify Proxies use a PAC file.

I suggest you look at /Library/Preferences/SystemConfiguration/preferences.plist file. This is where your PAC file settings will be saved. You may be able to programatically alter the file using "defaults write" or some other tool.

Hope this helps!

bill
Mac OS X (10.4.10) 1 GHz Powerbook G4

Jul 11, 2007 10:37 PM in response to mecklists

Thanks for the tip. Changing the proxy from Manual to PAC has the effect of changing the following setting in the preferences.plist file you mentioned:

Root > NetworkServices > 0 > Proxies > AppleProxyConfigurationSelected

"1" = "Using a PAC file"
"2" = "Manually"

Now all I need to do is figure out how to "defaults write" to this file and that particular subkey. Can't quite see how to do this from the man page (yet); I can only see how to edit simple root-level key/values at this point.

Dec 9, 2007 8:00 PM in response to Mitch

No, sorry. I ended up changing 24 iMacs manually, and left it at that. Now I need to rebuild them all for the next semester in 2008 and will just configure the master image properly before imaging them. I tend to avoid our Mac labs as much as possible since Apple only selectively care about the systems/remote management side of things. Why should I care if Apple don't? They can rust for all I care...

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.

Chaging proxy to PAC file using -setwebproxy

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