You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
<?xml version="1.0" encoding="UTF-8"?><extensionAttribute> <displayName>Energy Saver - System Sleep Timer</displayName> <displayInCategory>Security Reporting</displayInCategory> <dataType>string</dataType> <description>This attribute verifies the "System Sleep" timer energy saver setting. The value to be verified will need to be specified when creating this extension attribute. Example: "0" verifies that the "System Sleep" timer is set to never put the system to sleep.</description> <scriptContentsMac>#!/bin/shdesiredValue="EditFromTemplate_Desired_Value_-_Example:_0"result=""tmpResult="`/usr/bin/pmset -g | grep -w sleep | awk '{print $2}'`"if [ "$tmpResult" == "$desiredValue" ]; thenresult="true"elif [ "$tmpResult" == "" ]; thenresult="Domain or Key Not Found"elseresult="$tmpResult" fiif [ "$result" == "true" ]; thenecho "<result>Pass ($tmpResult)</result>"elseecho "<result>Fail ($tmpResult)</result>"fi </scriptContentsMac></extensionAttribute>