Here 's a simple way to get the specific version of Centrify running.
!/bin/sh
mode=adinfo --version | grep "CentrifyDC" | awk '{print $3}'
if [ "$mode" == "5.3.3-602)" ]; then
echo "<result>Centrify v5.3.3 Installed</result>"
elif [ "$mode" == "5.3.0-213)" ]; then
echo "<result>Old Centrify Version v5.3.0x Installed</result>"
elif [ "$mode" == "5.2.4-465)" ]; then
echo "<result>Old Centrify Version v5.2.4x Installed</result>"
else
echo "<result>NA</result>"
fi