Oops123 Posted April 15, 2015 Author Report Posted April 15, 2015 data domain ok? Avamar ite baguntadi bayya..its urgent ..
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 http://www.emc.com/data-protection/avamar.htm LTT
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 I wish I could help but I am listening this for the first time after being in IT FUELD FIR 12 years LTT
kiladi bullodu Posted April 16, 2015 Report Posted April 16, 2015 I wish I could help but I am listening this for the first time after being in IT FUELD FIR 12 years LTT resume 12 years or original 12 years ?
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 resume 12 years or original 12 years ? resume 9 ... actual 12... point adi kaaduLTTHelp 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?
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 *<:( *<:( help check your PMdid what all I can...LTT
Informationzwealth Posted April 16, 2015 Report Posted April 16, 2015 Babu aaaa pm Yento ekadaa vestai help chestharu Andhariki pmed Ani chava kotai kana Wat do u need adhi clear ga chepu 1
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 Babu aaaa pm Yento ekadaa vestai help chestharu Andhariki pmed Ani chava kotai kana Wat do u need adhi clear ga chepu @TS : Maybe he is not participating anymore @Informationzwealth the PM has all external links to other websites... and nothing from what I can help but questions and informational issues information .. anyways here it is for you Sir... http://itknowledgeex...ers/tag/avamar/http://stackoverflow...search?q=avamarhttp://www.sqlserver...376-1550-1.aspxhttps://community.em...tart=0&tstart=0Honestly, I do not know, what Avamar means// does // isI hope the above links might help for sure....one more suggestion... try looking at the people who posted on stackoverflow and try posting some questions thereI know, am kind of giving all time waste suggestions, but I just wish I knew the technology well enough to assist
raj_hyd Posted April 16, 2015 Report Posted April 16, 2015 data domain ok? neekochindi kaduncle..tanakkavalsindi cheppu
andhraajay Posted April 16, 2015 Report Posted April 16, 2015 This shows you how to do text extractions and manipulation in quite a bit of detail. We will basically extract the versions from the candidate files in /ava/repo and convert them into a number that can be used for comparison using the formula: AVAMAR_INSTALLED_MAGIC=$((1000000 * $AVAMAR_INSTALLED_VER_MAJ + 10000 * $AVAMAR_INSTALLED_VER_MIN + $AVAMAR_INSTALLED_VER_REL)) We will use this numerical form to first figure out the latest version we have in /ava/repo and then compare that to the version we have installed to see if we want to replace it. So here we go: THIS IS COMPLICATED First the whole thing: AVAMAR_CANDIDATE=$(ls -1 /ava/repo/AvamarClient* | \ sed -e 's/.*/&:&/' \-e 's/-[0-9]*-x86_64//1' \-e 's/AvamarClient-//' \-e 's/\./:/1' -e 's/\./:/1' | \ awk -F: '{ print 1000000 * $1 + 10000 * $2 + $3 " " $4 }' | \ sort -n | tail -n1 ) So let's look at what's happening. We assume that we have more than one copy of a candidate in the repo. We list all the files in /ava/repo and pipe it to a sed + awk script that figures out their version numbers and sorts them so that the last one is the LATEST one. Let's look at each part SED step 1: -e 's/.*/&:&/' Creates two copies of the name separated by a :. (We'll cut apart the first one and reduce it to just the version number using step 2 and 3. keep the second one intact for the rpm command to be used later) step 2: -e 's/-[0-9]*-x86_64[^:]*//1' get rid of the word -NNN-x86_64.rpm from the first copy of the file names to be precise get rid trailing bits leading up to the : we inserted in earlier (but not the colon). step 3: -e 's/AvamarClient-//' get rid of the word AvamarClient- from the first copy of the file names step 4: -e 's/\./:/1' -e 's/\./:/1' Converts the . in JUST the extracted version numbers to : So for example: ls -1 /ava/repo/AvamarClient-6.4.200-400-x86_64.rpm | sed -e 's/.*/&:&/' -e 's/-[0-9]*-x86_64[^:]*//1' -e 's/AvamarClient-//' -e 's/\./:/1' -e 's/\./:/1' would output: 6:4:200:AvamarClient-6.4.200-400-x86_64.rpm AWK Now to convert the extracted version to something magical we push that through awk: where -F:splits the string above using : as the delimiter. So $1 = MAJ, $2 = MIN, $3 = REL, $4 = Filename; for example above it would be $1 = 6; $2 = 4; $3 = 200; $4 = AvamarClient-6.4.200-400-x86_64.rpm So we apply our magic formula and print the filename in awk: '{ print 1000000 * $1 + 10000 * $2 + $3 " " $4 }' so for above example it would output: 6040200 AvamarClient-6.4.200-400-x86_64 And voila we have a magic comparable number SORT and TAIL Since we may have more than one file in our repo, the above will be a list of them and because we have the magic number we can use it to get the latest one. Use sort -n to sort and use tail -n1to grab the very last one (sort is ascending order). So now in AVAMAR_CANDIDATE we would have 6040200 AvamarClient-6.4.200-400-x86_64 Let's make life easier and put this into two variables: AVAMAR_CANDIDATE_FILE=$(echo $AVAMAR_CANDIDATE | cut -f2 -d' ')AVAMAR_CANDIDATE_MAGIC=$(echo $AVAMAR_CANDIDATE | cut -f1 -d' ') Let's do the same with the installed version: AVAMAR_INSTALLED=$(rpm -qa | grep AvamarClient)AVAMAR_INSTALLED_MAGIC=$(echo $AVAMAR_INSTALLED | \ sed -e 's/^AvamarClient-//' \ -e 's/-[0-9].*x86_64$//' \-e 's/\./:/g' | \ awk -F: '{ print 1000000 * $1 + 10000 * $2 + $3 }' ) Now all you have to do is compare the value of the two magic numbers: if [ $AVAMAR_INSTALLED_MAGIC -lt $AVAMAR_CANDIDATE_MAGIC ] ; thenrpm -ivU /ava/repo/$AVAMAR_CANDIDATE_FILE fi I hope that this will get you to learn shell scripting as it is an amazingly powerful tool.
Recommended Posts