Deep Freeze 5 for mac Extension Attribute

jbmiller
New Contributor III

Is anyone successfully using an extension attribute to track the thaw or frozen state of imacs running DF version 5? Since upgrading our labs to DF 5 for mac the templates included in the jamf nation knowledge base and in the extension attribute page inside of the computer management tab in Casper 9.0 do not work anymore. From what I can there has been some sort of syntax change but cant tell what exactly is needed to get things working right.

2 REPLIES 2

kboissonneault
New Contributor

I don't know if you managed to get this to work or not, but I just made a new script (first JSS script for me!)

#!/bin/bash

# Queries Deep Freeze status and returns either Frozen, Thawed, or Deep Freeze Not Installed
# Replace password and user below with your Deep Freeze user and password

DFStatus=$(DFXPSWD=password /Library/Application Support/Faronics/Deep Freeze/deepfreeze -u user -p status -x | grep -A1 "<key>bootHow</key>"| awk '{gsub("<key>bootHow</key>", "");print}'| awk '{gsub("<integer>", "");print}' | awk '{gsub("</integer>", "");print}')

if [ ! -f /Library/Application Support/Faronics/Deep Freeze/deepfreeze ]; then
    echo "<result>DeepFreeze not installed.</result>"
fi

if [ "$DFStatus" -eq "0" ]; then
            echo "<result>Frozen</result>"
fi

if [ "$DFStatus" -eq "1" ] || [ "$DFStatus" -eq "2" ] ; then
            echo "<result>Thawed</result>"
fi

exit

jtremblay3
New Contributor

I've updated the script for Deep Freeze 7!

 

#!/bin/bash
# Queries Deep Freeze status and returns either Frozen, Thawed, or Deep Freeze Not Installed

DFStatus=$( /usr/local/bin/deepfreeze status )
DFStatus=$(echo $DFStatus|cut -c15-20)

echo "Deep Freeze Status is: "$DFStatus

if [ ! -f /usr/local/bin/deepfreeze ]; then
    echo "<result>DeepFreeze not installed.</result>"
fi

if [ "$DFStatus" = "Frozen" ]; then
            echo "<result>Frozen</result>"
fi

if [ "$DFStatus" = "Thawed" ]; then
            echo "<result>Thawed</result>"
fi

exit