forked from jamf/Jamf-Nation-Extension-Attributes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
CheckPoint - Encryption Percentage.xml
27 lines (26 loc) · 1.15 KB
/
CheckPoint - Encryption Percentage.xml
1
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> <displayName>CheckPoint - Encryption Percentage</displayName> <displayInCategory>Disk Encryption</displayInCategory> <description>This attribute returns the Disk Encryption Percentage for CheckPoint on the boot disk. This attribute template applies to CheckPoint (v 3.2).</description> <dataType>integer</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 $7}') if [ "$result" == "" ]; then result=$(/usr/local/ppc-*/bin/FDEEncStatus | sed 's/Volume:/\Volume:/g' | grep -w "Volume: /" | grep "Status: Decrypt" | awk '{print $7}') if [ "$result" == "" ]; then echo "<result>0</result>" else echo "<result>$result</result>" fi else echo "<result>$result</result>" fielse echo "<result>Not installed</result>" fi </scriptContentsMac></extensionAttribute>