Create a Post
cancel
Showing results for 
Search instead for 
Did you mean: 

Licensing overview - One-liner

Danny
Champion Champion
Champion

One-liner (Bash) to show the licensing table on Check Point Gaia systems.

Login to be able to copy the full code!

In expert mode run:


    echo;echo "Licensing table";lic=$(cpstat os -f licensing);echo "$(echo "$lic"|grep "|ID";echo "$lic"|grep "|"|sed '1d'|sed 's/Not Entitled.*/None|0/;'|awk -F"|" '{if($5!=0){print "|"$2"|"$3"|"$4"|"strftime("%c",$5)"|"$6"|"$7"|"$8"|"$9"|"}else{print "|"$2"|"$3"|"$4"|-|"$6"|"$7"|"$8"|"$9"|"}}'|sort -k1)"|sed '1,2 i\|(|%|%|%|%|%|%|%|)|'|c
...;
TO ACCESS CHECKMATES TOOLBOX it's simple and free

Disclaimer: Check Point does not provide maintenance services or technical or customer support for third party content provided on this Site, including in CheckMates Toolbox. See also our Third Party Software Disclaimer.




(1)
9 Replies

_Val_
Admin
Admin

Very nice, Danny!

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


the_rock
Legend
Legend

As I always say...you are a TRUE SCRIPTING CHAMPION  @Danny 

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

the_rock
Legend
Legend

Got same on mine, so cool  @Danny , your scripts are indeed truly too valuable and helpful.

Andy

Screenshot_1.png

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


Pedro_Madeira
Contributor

Hello Danny,

 

First of all, let me congratulate you on this one liner since it's a lot useful for me and I'm sure for others as well.

The output on a management is perfect as well.

Do you know if in a vsx platform it will return the number of VS in use and the allowed quota?

Thank you once again,

Pedro Madeira

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Petr_Hantak
Advisor
Advisor

This is really cool! Thank you for new amazing one-liner.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

Sergei_Shir
Employee
Employee

In addition, please refer to this new tool:

sk180447 - License Status Collector tool

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

George_Ellis
Advisor

Danny, you are leading the charge to what will be a new Check Point certification, CCLE - Certified Checkpoint Licensing Engineer.

CCLE is a joke folks, but after more than a decade, it does ring true as a super skill.

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


(1)

the_rock
Legend
Legend

I hear ya, it might not be a joke after all... : - )

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos

danielbun
Employee
Employee

👍

;
TO ACCESS CHECKMATES TOOLBOX it's simple and free


0 Kudos