Skip to main content
Question

Yosemite - Extension Attribute - Firewall status broke

  • October 20, 2014
  • 1 reply
  • 6 views

Forum|alt.badge.img+4

After the upgrade to Yosemite, I'm seeing that the existing Extension Attribute posted in JAMF Nation for detecting the Firewall state no longer works. The answer in the EA is blank. The EA checks if the OS is before 10.5 to do one type of check and does a second type of check if the OS is is 10.5++. I'm assuming 10.10 requires a different kind of check. Any recommendations on how firewall status has changed in 10.10?

1 reply

Forum|alt.badge.img+18
  • Contributor
  • October 20, 2014

I do something very simple (logic that looks at the OS version is bound to stop working eventually):

#!/bin/bash

fwStatus=`defaults read /Library/Preferences/com.apple.alf globalstate`
echo "<result>$fwStatus</result>"