Hi all, just wanted to share an extension attribute I wrote to obtain the license status of a Parallels Desktop installation. It searches for the word "ACTIVE" in the license info for Parallels. Should work for v10 and v9 (and probably backwards compatible to a certain number of versions). Handy to see which computers have an active license for Parallels installed and which ones are deactivated/running on a trial! Hope it helps someone!
Set the data type to "String", Inventory Display to "Extension Attributes" (or whatever you choose) and input type to "Script"
Cheers
#!/bin/bash
result=`sudo prlsrvctl info --license | grep ACTIVE`
if [ "$result" != "" ]; then
echo "<result>Active</result>"
else
echo "<result>Inactive</result>"
fi