forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CheckPoint - Encryption Status.xml
28 lines (26 loc) · 1.24 KB
/
CheckPoint - Encryption Status.xml
1
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> <displayName>CheckPoint - Encryption Status</displayName> <displayInCategory>Disk Encryption</displayInCategory> <description>This attribute returns the Disk Encryption Status for CheckPoint on the boot disk. Examples of returned values include: "Encrypting", "Encrypted", "Decrypting", and "Decrypted". This attribute template applies to CheckPoint (v 3.2).</description> <dataType>string</dataType> <scriptContentsMac>#!/bin/sh #This script has been verified to work on CheckPoint (v 3.2). #Check to see if CheckPoint is installed if [ -f /usr/local/ppc-*/bin/FDEEncStatus ]; then result=$(/usr/local/ppc-*/bin/FDEEncStatus | sed 's/Volume:/\ Volume:/g' | grep -w "Volume: /" | grep "Status: Encrypt" | awk '{print $6}') if [ "$result" == "" ]; then result=$(/usr/local/ppc-*/bin/FDEEncStatus | sed 's/Volume:/\ Volume:/g' | grep -w "Volume: /" | grep "Status: Decrypt" | awk '{print $6}') if [ "$result" == "" ]; then echo "<result>Decrypted</result>" else echo "<result>$result</result>" fi else echo "<result>$result</result>" fielse echo "<result>Not installed</result>" fi </scriptContentsMac></extensionAttribute>