Skip to main content
Solved

Proxy Setting Smart Group?

  • December 19, 2012
  • 4 replies
  • 0 views

Forum|alt.badge.img+11

Is there a way to create a smart group based on if the user has Automatic Proxy Configuration set?

Best answer by justinworkman

I just tested this as an extension attribute:

#!/bin/sh
proxystatus=$(cat /Library/Preferences/SystemConfiguration/preferences.plist | grep -A 1 Proxy | grep -o 1)
echo "<result>$proxystatus</result>"

If you make a Smart Group based on proxystatus is 1, it should do what you're needing.

View original
Did this topic help you find an answer to your question?

4 replies

Forum|alt.badge.img+19
  • Contributor
  • 437 replies
  • December 19, 2012

you'd first need to create an extension attribute that returns the status of that proxy setting. then, you could create your smart group based on the extension attribute.


Forum|alt.badge.img+7
  • Contributor
  • 40 replies
  • Answer
  • December 20, 2012

I just tested this as an extension attribute:

#!/bin/sh
proxystatus=$(cat /Library/Preferences/SystemConfiguration/preferences.plist | grep -A 1 Proxy | grep -o 1)
echo "<result>$proxystatus</result>"

If you make a Smart Group based on proxystatus is 1, it should do what you're needing.


Forum|alt.badge.img+11
  • Author
  • Contributor
  • 55 replies
  • December 20, 2012

Thanks!


Forum|alt.badge.img+4
  • Contributor
  • 14 replies
  • March 5, 2013

I can't get this to work on mountain lion, any recommendation?


Reply


Cookie policy

We use cookies to enhance and personalize your experience. If you accept you agree to our full cookie policy. Learn more about our cookies.

 
Cookie settings