Hey @Jack132897 if you do mgmt_cli -r true show software-packages-per-targets targets.1 "GFG" display.installed "yes" --format json ; it will come back with any installed jumbo beyond the base take. Other wise you could use FWM Ver and FW Ver doing run script to pull the base version and you just have to reference back when that image was released. It's why the display.installed is nice cause it shows a particular take.
But if you want a single command that formats it you could do;
mgmt_cli -r true show software-packages-per-targets targets.1 "GFG" display.installed "yes" --format json | jq -r '.targets[].packages.installed[]["package-id"] | split("_") as $p | "R\($p[2] | ltrimstr("R")).\($p[3]) Take \(($p[] | select(startswith("T") and length > 1 and (.[1:2] >= "0" and .[1:2] <= "9")))[1:])"'
R82.10 Take 24
{
"targets" : [ {
"packages" : {
"installed" : [ {
"package-id" : "Check_Point_R82_10_jumbo_hf_main_Bundle_T24_FULL.tgz",
"category" : "jumbo"
} ],
"available" : [ ]
},
"name" : "GFG",
"uid" : "3fc5f0c0-ca04-4df8-919b-3e572bf94cc7"
} ]
}