- Products
- Learn
- Local User Groups
- Partners
- More
Access Control and Threat Prevention Best Practices
5 November @ 5pm CET / 11am ET
Firewall Uptime, Reimagined
How AIOps Simplifies Operations and Prevents Outages
Overlap in Security Validation
Help us to understand your needs better
CheckMates Go:
Spark Management Portal and More!
 
		
		
		
		
		
	
			
		
		
			
					
		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\|(|%|%|%|%|%|%|%|)|'|column -t -s'|'|sed '/(.*)/ s/./-/g'|sed 's/\bNone\b/\x1b[1;31m&\x1b[m/g;s/\bEvaluation\b/\x1b[1;36m&\x1b[m/g;s/\bEntitled\b/\x1b[1;32m&\x1b[m/g;';echo;echo "$lic"|grep :|grep -v "xpiration\|ctivation";echo -n "Support expiration:  ";date -d @$(echo "$lic"|grep :|grep xpiration|awk '{print $NF}') 2>/dev/null;[ $? == 1 ] && echo;echo "$lic"|grep :|tail -n1;unset licIntegrated with our ccc script.
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 _Val_
		
			_Val_
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
		
		
		
		
		
	
			
		
		
			
					
		 
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
		
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
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
; 
					
				
		
 
		
		
		
		
		
	
			
		
		
			
					
		 Sergei_Shir
		
			Sergei_Shir
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		In addition, please refer to this new tool:
In addition, please refer to this new tool:
; 
					
				
		
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.
 
		
		
		
		
		
	
			
		
		
			
					
		 danielbun
		
			danielbun
		
		
		
		
		
		
		
		
	
			
		
		
			
					
		 
					
				
				
			
		
About CheckMates
Learn Check Point
Advanced Learning
YOU DESERVE THE BEST SECURITY
