I've created this script in an Extension attribute but it's not showing.
#!/bin/bash
echo "<result>$(system_profiler SPPowerDataType | grep "Maximum Capacity:" | sed 's/.*Maximum Capacity: //')</result>"
exit 0
Could someone see what's the issue?
I've created this script in an Extension attribute but it's not showing.
#!/bin/bash
echo "<result>$(system_profiler SPPowerDataType | grep "Maximum Capacity:" | sed 's/.*Maximum Capacity: //')</result>"
exit 0
Could someone see what's the issue?
Best answer by cdev
Seems like the sed statement isn't working as intended...I'd suggest the following:
system_profiler SPPowerDataType | grep "Maximum Capacity:" | cut -d ":" -f2Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.