andhraajay Posted April 16, 2015 Report Posted April 16, 2015 You have to get the Major number, Minor number and Build number from the installed package. Similarly you need to know the Major number, Minor number and Build number from the package you are trying to install. Start with comparing the Major number and then Minor and then Build number I have written the logic as i have explained #!/bin/bashINSTALLED_VERSION="AvamarClient-6.1.100-402.x86_64"CURRENT_VERSION="AvamarClient-6.1.90-102.x86_64"#get the Major numbe,Minor number and build number from the Installed version stringINST_MAJOR=`echo $INSTALLED_VERSION | cut -d'-' -f2 | cut -d'.' -f1`INST_MINOR=`echo $INSTALLED_VERSION | cut -d'-' -f2 | cut -d'.' -f2`INST_BUILD=`echo $INSTALLED_VERSION | cut -d'-' -f2 | cut -d'.' -f3`echo "INST_MAJOR=$INST_MAJOR,INST_MINOR=$INST_MINOR,INST_BUILD=$INST_BUILD"#get the Major numbe,Minor number and build number from the Current version stringCUR_MAJOR=`echo $CURRENT_VERSION | cut -d'-' -f2 | cut -d'.' -f1`CUR_MINOR=`echo $CURRENT_VERSION | cut -d'-' -f2 | cut -d'.' -f2`CUR_BUILD=`echo $CURRENT_VERSION | cut -d'-' -f2 | cut -d'.' -f3`echo "CUR_MAJOR=$CUR_MAJOR,CUR_MINOR=$CUR_MINOR,CUR_BUILD=$CUR_BUILD"if [ $CUR_MAJOR -gt $INST_MAJOR ]thenecho "Starting with Installation..."elif [ $CUR_MAJOR -eq $INST_MAJOR ]thenif [ $CUR_MINOR -gt $INST_MINOR ]thenecho "Starting with Installation..."elif [ $CUR_MINOR -eq $INST_MINOR ]thenif [ $CUR_BUILD -gt $INST_BUILD ]thenecho "Starting with Installation..."elif [ $CUR_BUILD -eq $INST_BUILD ]thenecho "Package already installed..."elseecho "You are trying to install older package...Exiting"fielseecho "You are trying to install older package...Exiting"fielseecho "You are trying to install older package...Exiting"fi
raj_hyd Posted April 16, 2015 Report Posted April 16, 2015 resume 9 ... actual 12... point adi kaadu LTT Help cheyyandi .. I know how it feels to not have answers at the right time and right place... is Avamar a rarest of the rare kind of technology? backup software EMC di.. 1
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 backup software EMC di.. Just ippude telsukunna posting what all information I find on issues users faced still not sure what the TS issue is am no avamar pro here
raj_hyd Posted April 16, 2015 Report Posted April 16, 2015 Just ippude telsukunna posting what all information I find on issues users faced still not sure what the TS issue is am no avamar pro here ah matram TS velli EMC forum lo try chestadu kavochu.....ledantey EMC support to case open cheyali 1
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 ah matram TS velli EMC forum lo try chestadu kavochu.....ledantey EMC support to case open cheyali yeah Hope TS knows
Recommended Posts