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 - Display Sleep Timer</displayName> <displayInCategory>Security Reporting</displayInCategory> <dataType>string</dataType> <description>This attribute verifies the "Display Sleep" timer energy saver setting. The value to be verified will need to be specified when creating this extension attribute. Example: "30" verifies that the "Display Sleep" timer is set to put the display to sleep after 30 minutes.</description> <scriptContentsMac>#!/bin/shdesiredValue="EditFromTemplate_Desired_Value_-_Example:_30"result=""tmpResult="`/usr/bin/pmset -g | grep -w displaysleep | 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>