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

How to get all licenses with a lot of gateways

Hi,

Did anyone figure out an easy way to get all the license information from all gateways?

The overview in "Manage Licensing and Products" is not exportable in my experience to something I can forward to a procurement person. It lacks information.

 

The closest I have come up with is running the following 2 command's per gateway:

cpstat os -f licensing

cplic print

But that is a lot of work with a lot of gateways and no automation framework in place.

So I am curious if someone else has figured this out.

Regards, Hugo.

<< We make miracles happen while you wait. The impossible jobs take just a wee bit longer. >>
0 Kudos
3 Replies
Mate_K
Explorer

Hugo, assuming you are running R80.X would the built-in view and report provide the information in a useable format?

LOGS & MONITORS | Views | License Status

LOGS & MONITORS | Reports | License Inventory.

0 Kudos
Martin_Valenta
Advisor

#!/bin/sh
source /opt/CPshared/5.0/tmp/.CPprofile.sh
if [ -f logfile ]; then rm logfile; fi
for CMA_NAME in $($MDSVERUTIL AllCMAs); do mdsenv $CMA_NAME; echo "CMA $CMA_NAME"; cpmiquerybin attr "" network_objects " (type='cluster_member' & vsx_cluster_member='true' & vs_cluster_member='true') | (type='cluster_member' & (! vs_cluster_member='true')) | (vsx_netobj='true') | (type='gateway'&cp_products_installed='true' & (! vs_netobj='true') & connection_state='communicating')" -a __name__,ipaddr; done 1>> logfile 2>> logfile


while read line; do
if [ `echo "$line" | grep -c ^CMA` -gt 0 ]; then
CMA_NAME=`echo "$line" | awk '{print $2}'`
mdsenv $CMA_NAME
else
GW=`echo "$line" | awk '{print $1}'`
IP=`echo "$line" | awk '{print $2}'`
license=`$CPDIR/bin/cprid_util -server $IP -verbose rexec -rcmd bash -c 'cplic print -n'`;



echo "$IP,$GW",$license


fi

done < logfile

 

 

try to use this, it's for MDS

0 Kudos
Timothy_Hall
Champion
Champion

Try the "License Report" from the Actions menu on the Gateways & Servers tab:

LicReport.png

Gateway Performance Optimization R81.20 Course
now available at maxpowerfirewalls.com
0 Kudos

Leaderboard

Epsum factorial non deposit quid pro quo hic escorol.

Upcoming Events

    CheckMates Events