By default, HPDM does not list the Servicepack version of the ThinPro 7.2 Clients, but using a small script this info can be returned to HPDM using the Dynamic Properties.
Use the following code to make a template in HPDM, or download the pre-made template included below to run this task against one or more ThinPro 7.2 Clients.
It wil return the Service Pack version in a Dynamic Property for each client. which can then be used to report or create further actions within HP Device Manager.
#!bin/bash getSPversion=`dpkg-query -f'${Package}\t${Version}\n' -W | grep thinpro7.1-sp | awk '{print $2}'`
if [ -z “$getSPversion”
then
echo value=’None’
else
echo value=$getSPversion
fi
Template Download: TP7 Get Service Pack Version