I am just getting started with EAs for computers, and I have one that I want to use, it is the following script;
**#!/bin/sh
fmmToken=$(/usr/sbin/nvram -x -p | /usr/bin/grep fmm-mobileme-token-FMM)
if [ -z "$fmmToken" ];
then echo "<result>Disabled</result>"
else echo "<result>Enabled</result>"
fi**
I have the EA setup as follows;
Data type: String
Inventory Display: General
Input type: Script
And the above in the script field.
I see it in the General area of the computer details, but nothing ever populates, the device is checking in every 15 minutes, but I can't see anything in the logs about this EA.
What am I missing here? If I run this as a script in Self Service, I see the output so I am confident that the code is good.