cancel
Showing results for 
Search instead for 
Did you mean: 
Post a Question
Bryce_Myers
Nickel

How do you get the Jumbo Take Version on R80.X

Previously - in R77.X envrionments - I had a script that used the command:

     # installed_jumbo_take -n

This command appears to have been deprecated in the R80.X code train.

What do you use to get the current jumbo version thats installed?


It looks like I can use cpinfo or the regsitry - but I'm just curious if anyone has a one-liner they've found to be easy and accurate like # installed_jumbo_take -n used to provide?

Thanks

Labels (1)
5 Replies
Employee+
Employee+

Re: How do you get the Jumbo Take Version on R80.X

Using cpinfo is a quick option.

[Expert@gw01:0]# cpinfo -y all 2>&1 | grep  JUMBO  | uniq
        HOTFIX_R80_20_JUMBO_HF_MAIN     Take:  33
        BUNDLE_R80_20_JUMBO_HF_MAIN     Take:  33

Bryce_Myers
Nickel

Re: How do you get the Jumbo Take Version on R80.X

After doing a little digging in R77.30 it appears that it uses a simple bash script to return the pretty jumbo output.

Located in: $FWDIR/bin/installed_jumbo_take

The piece I care about: 

JUMBO_NAME='R77_30_JUMBO_HF'

$CPDIR/bin/cpprod_util CPPROD_GetValue "CPUpdates/6.0/BUNDLE_${JUMBO_NAME}" SU_Build_Take 0

I just tested it on R80.10 and R80.20 and it appears to work, but the naming standard doesn't seem to follow:

R80.10

JUMBO_NAME='R80_10_JUMBO_HF'

$CPDIR/bin/cpprod_util CPPROD_GetValue "CPUpdates/6.0/BUNDLE_R80_10_JUMBO_HF" SU_Build_Take 0

R80.20

JUMBO_NAME='R80_20_JUMBO_HF_MAIN'

$CPDIR/bin/cpprod_util CPPROD_GetValue "CPUpdates/6.0/BUNDLE_R80_20_JUMBO_HF_MAIN" SU_Build_Take 0

I'm thinking about just tweaking the installed_jumbo_take command and pushing it out as a custom clish command on R80.20 gateway.  But I'll check with support to see if they is any reason not to use this logic.  I think as long as the R80.10 and R80.20 code train use a consistent naming convention, this should work...

Anyways -- I'm still curious if others have a different solution for this problem.

Bryce_Myers
Nickel

Re: How do you get the Jumbo Take Version on R80.X

For those that are curious about the cpprod_util, it is pulling from the registry:

   $CPDIR/registry/HKLM_registry.data

Example from R80.20:

: (CPUpdates
:CurrentVersion (6.0)
: (6.0
: (HotFixes
:BUNDLE_R80_20_JUMBO_HF_MAIN (1)
)
: (BUNDLE_R80_20_JUMBO_HF_MAIN
:SilentUninstall (NONE)
:ping_package (1)
:RollbackPackage ("/opt/CPda/backup/")
:PackageFile (Check_Point_R80_20_JUMBO_HF_Bundle_T33_sk137592_FULL.tgz)
:SU_Build_Take (33)
)
)
)

Re: How do you get the Jumbo Take Version on R80.X

You can find the syntax for different versions here sk98028 - Jumbo Hotfix Accumulator FAQ

Danny
Pearl

Re: How do you get the Jumbo Take Version on R80.X

You can also use the routine I have implemented in our ccc script.

cpinfo -y all 2>/dev/null | grep JUMBO | tail -n1 | awk '{print $3}'