<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: R80.x - Mobile User License Tool   -   Replaces &amp;quot;dtps lic&amp;quot; in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/80176#M375</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;It doesn't work for me I run it from "curl_cli", at the end when I try run command "sclic" I get notification "command not found", admin has UID 0&amp;nbsp; if it is relevant. thank you for help&amp;nbsp;&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;</description>
    <pubDate>Mon, 30 Mar 2020 09:16:46 GMT</pubDate>
    <dc:creator>marcinw</dc:creator>
    <dc:date>2020-03-30T09:16:46Z</dc:date>
    <item>
      <title>Easy Mobile User License Tool   -   Replaces "dtps lic"</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78848#M351</link>
      <description>&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="emlt123.JPG" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/9434iCFDCAB0047C1DD16/image-size/large?v=v2&amp;amp;px=999" role="button" title="emlt123.JPG" alt="emlt123.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;TABLE style="border: 1px solid #c6c6c6; border-collapse: separate; border-radius: 5px; background-color: #e15180; padding: 6px; text-indent: 10px; border-style: hidden; width: 100%;" width="100%"&gt;
&lt;THEAD&gt;
&lt;TR style="border-style: none;"&gt;
&lt;TH align="left"&gt;&lt;FONT size="4" color="#ffffff"&gt;Introduction&lt;/FONT&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #f8f8fa;"&gt;&lt;SPAN&gt;In the past days I have been working on a CLI script that can display all Secure Client, SSL VPN&amp;nbsp; and Mobile Access Portal license information centrally.&amp;nbsp;This script creates a new command on the management server to read the licenses. It displays all Secure Client, SSL VPN and Mobile Access Portal licenses in total (sum). Furthermore if a connection to the gateway can be established, it can read out the currently used user counters and peaks on the gateway. It replaces the old "dtps lic" tool.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;DIV&gt;This tool checks the following &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;licenses&lt;/FONT&gt;&lt;/STRONG&gt; and &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;user counters central&lt;/FONT&gt;&lt;/STRONG&gt; on the &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;SMS&lt;/FONT&gt;&lt;/STRONG&gt;:&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #f8f8fa;"&gt;- Secure Client&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #f8f8fa;"&gt;- SSL VPN&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&lt;FONT style="background-color: #f8f8fa;"&gt;- Mobile Access Portal &lt;BR /&gt;&lt;BR /&gt;Or use this one-liner to show quick and easy a&amp;nbsp;&lt;STRONG&gt; summary&lt;/STRONG&gt; of all available&amp;nbsp; &lt;STRONG&gt;licensses&lt;/STRONG&gt;&amp;nbsp; on the management server: &lt;A href="https://community.checkpoint.com/t5/General-Topics/One-liner-for-Remote-Access-VPN-License-Summary/td-p/79205" target="_self"&gt;One-liner for Remote Access VPN License Summary&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;TABLE style="border: 1px solid #c6c6c6; border-collapse: separate; border-radius: 5px; background-color: #e15180; padding: 6px; text-indent: 10px;" width="100%"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH align="left"&gt;&lt;FONT size="4" color="#ffffff"&gt;Description&lt;BR /&gt;&lt;/FONT&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;DIV&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;DIV&gt;
&lt;P&gt;If you execute the script via "copy and past" on the management server or start the auto install script, a new CLI command "sclic" is created. Afterwards you can use this command to display all licenses in an overview. If you give this CLI command "sclic" the IP address of the gateway, the current data of the gateway will be read. You have to use the IP address of the gateway from the topology. All available gateways from the topology can be displayed with the option -g.&lt;/P&gt;
&lt;P&gt;Note: &lt;BR /&gt;- Eval licenses are not displayed.&lt;BR /&gt;- It doesn't currently work with VSX systems but I am working on it.&lt;BR /&gt;- Please note that the execution of the command may take a few seconds. This is a normal behaviour.&lt;/P&gt;
&lt;TABLE border="1" width="100%"&gt;
&lt;TBODY&gt;
&lt;TR style="background-color: #c0c0c0; height: 46px;"&gt;
&lt;TD width="30%" height="46px"&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;Syntax&amp;nbsp;&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="70%" height="46px"&gt;&lt;STRONG&gt;Description&lt;/STRONG&gt;&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;sclic&lt;/FONT&gt; -g&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD height="24px"&gt;The option &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-g&lt;/FONT&gt;&lt;/STRONG&gt; shows all possible remote gateways from the topology (for option &lt;FONT color="#FF0000"&gt;&amp;lt;remote gateway ip address&amp;gt;&lt;/FONT&gt;)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="30%" height="112px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;sclic&lt;/FONT&gt; - s &amp;lt;remote gateway ip address&amp;gt;&lt;/FONT&gt;&amp;nbsp;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="70%" height="112px"&gt;The option &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-s&lt;/FONT&gt;&lt;/STRONG&gt; shows the number of logged in users and the peak value of the gateway for Secure Client, SSLVPN, Mobile Access Portal.&amp;nbsp;Furthermore, existing licenses on the management server are displayed for Secure Client and SSLVPN.&lt;BR /&gt;IP address of the gateway from the topology (which is used to connect the gateway from/to the management)&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="30%" height="46px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;sclic&lt;/FONT&gt; -r &amp;lt;remote gateway ip address&amp;gt;&amp;nbsp;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD width="70%" height="46px"&gt;The option &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-r&lt;/FONT&gt;&lt;/STRONG&gt; shows the full license informations from a remote gateway.&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD height="24px"&gt;&lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;&lt;FONT color="#000000"&gt;sclic&lt;/FONT&gt; -m&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/TD&gt;
&lt;TD height="24px"&gt;The option &lt;STRONG&gt;&lt;FONT color="#FF0000"&gt;-m&lt;/FONT&gt;&lt;/STRONG&gt; shows the full license informations from the SMS&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD width="30%" height="46px"&gt;&lt;FONT color="#000000"&gt;&lt;STRONG&gt;sclic&lt;/STRONG&gt;&lt;/FONT&gt;&lt;/TD&gt;
&lt;TD width="70%" height="46px"&gt;Shows the available Secure Client, SSL VPN&amp;nbsp; and Mobile Access Portal licenses summary on the management server.&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;TABLE style="border: 1px solid #c6c6c6; border-collapse: separate; border-radius: 5px; background-color: #e15180; padding: 6px; text-indent: 10px;" width="100%"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH align="left"&gt;&lt;FONT size="4" color="#ffffff"&gt;Example&lt;/FONT&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;P&gt;# &lt;FONT color="#FF0000"&gt;sclic - s 192.168.1.1&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SC_B1.JPG" style="width: 792px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5049iF83E47E206783BCE/image-size/large?v=v2&amp;amp;px=999" role="button" title="SC_B1.JPG" alt="SC_B1.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;# &lt;FONT color="#FF0000"&gt;sclic -g&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SC_B2.JPG" style="width: 800px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5052iA98EB2741CD58137/image-size/large?v=v2&amp;amp;px=999" role="button" title="SC_B2.JPG" alt="SC_B2.JPG" /&gt;&lt;/span&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;# sclic -r 192.168.1.2&lt;/FONT&gt;&lt;/P&gt;
&lt;P&gt;&lt;FONT color="#FF0000"&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SC_B3.JPG" style="width: 800px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5053i526EDE06A9525245/image-dimensions/800x316?v=v2" width="800" height="316" role="button" title="SC_B3.JPG" alt="SC_B3.JPG" /&gt;&lt;/span&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;TABLE style="border: 1px solid #c6c6c6; border-collapse: separate; border-radius: 5px; background-color: #e15180; padding: 6px; text-indent: 10px;" width="100%"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH align="left"&gt;&lt;FONT size="4" color="#ffffff"&gt;Install this script&lt;/FONT&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;P&gt;Use this auto installer script on the&amp;nbsp;&lt;FONT color="#FF0000"&gt;management server &lt;/FONT&gt;as CLI command:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;curl_cli -k http://www.ankenbrand24.de/inst_sclic &amp;gt; /tmp/inst_sclic &amp;amp;&amp;amp; chmod 770 /tmp/inst_sclic &amp;amp;&amp;amp; /tmp/inst_sclic&lt;/LI-CODE&gt;
&lt;P&gt;Or "&lt;FONT color="#FF0000"&gt;copy and past&lt;/FONT&gt;" the following script block to your &lt;FONT color="#FF0000"&gt;management server&lt;/FONT&gt;:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;cat &amp;lt;&amp;lt;EOT &amp;gt; /usr/local/bin/sclic
#!/bin/bash
printf '%.s-' {1..78};echo;
echo '- Mobile User License Tool v1.0            - Copyright Heiko Ankenbrand 2020 -';
printf '%.s-' {1..78};echo;
SHOW_SUM="1";

mSITIONAL=()
while [[ \$# -gt 0 ]]
do
key="\$1"
case \$key in
    -g|--gateways)
       shift # past argument
       echo;echo 'Gateways from topology:';echo;
       mgmt_cli -r true show gateways-and-servers details-level full --format json | \$CPDIR/jq/jq -r '.objects[] | select(.type | contains("Member","simple-gateway")) | ."ipv4-address",."name"  ' |xargs -n 2 | grep -v 0.0.0. | awk '{print \$1 "\t\t" \$2}' ;
       echo;printf '%.s-' {1..78};echo;
       SHOW_SUM="0";
    ;;

    -m|--management)
       shift # past argument
       echo;echo "Licenses on management server:";echo;
       cplic print;
       printf '%.s-' {1..78};echo;
       SHOW_SUM="0";
    ;;


    -r|--remote)
       REMOTEIP="\$2"
       shift # past argument
       shift # past value
       $CPDIR/bin/cprid_util -server \$REMOTEIP -verbose rexec -rcmd bash -c 'cplic print' &amp;gt; /tmp/cplic_print_lic.txt ;
       if [ ! -s /tmp/cplic_print_lic.txt ]
       then
       echo;echo 'This IP is not from a gateway. Use the option "sclic -g" to show all gateways.';echo;
       else
       echo; echo -n "Licenses on gateway "; echo -n \$REMOTEIP;echo ":";echo;
       more /tmp/cplic_print_lic.txt
       echo;
       fi
       printf '%.s-' {1..78};echo;
       SHOW_SUM="0";
    ;;

    -s|--summary)
       REMOTEIP="\$2"
       shift # past argument
       shift # past value       
       $CPDIR/bin/cprid_util -server \$REMOTEIP -verbose rexec -rcmd bash -c 'fw tab -t userc_users -s' |grep localhost &amp;gt; /tmp/sclic.txt ;
       if [ ! -s /tmp/sclic.txt ]
       then
       echo;echo 'This IP is not from a gateway. Use the option "sclic -g" to show all gateways.';
       else
       $CPDIR/bin/cprid_util -server \$REMOTEIP -verbose rexec -rcmd bash -c 'fw tab -t sslt_om_ip_params -s' |grep localhost &amp;gt; /tmp/snxlic.txt ;
       $CPDIR/bin/cprid_util -server \$REMOTEIP -verbose rexec -rcmd bash -c 'fw tab -t cvpn_session -s' |grep localhost &amp;gt; /tmp/moblic.txt ;
       echo;
       echo; echo -n "User counters on gateway "; echo -n \$REMOTEIP;echo ":";echo;
       echo -n '  Endpoint Security VPN (SecureClient) now on the gateway    : ';
       more /tmp/sclic.txt | awk {'print \$4'};
       echo -n '  Endpoint Security VPN users on the gateway (peak)          : ';
       more /tmp/sclic.txt | awk {'print \$5'};
       fi
       if [ ! -s /tmp/snxlic.txt ]
       then
       echo -n '';
       else
       echo -n '  SNX (SSL VPN not MOB) users now on the gateway             : ';
       more /tmp/snxlic.txt | awk {'print \$4'};
       echo -n '  SNX (SSLVPN not MOB) users on the gateway (peak)           : ';
       more /tmp/snxlic.txt | awk {'print \$5'};
       fi
       if [ ! -s /tmp/moblic.txt ]
       then
       echo -n '';
       else
       echo -n '  Mobile Access Portal users now on the gateway              : ';
       more /tmp/moblic.txt | awk {'print \$4'};
       echo -n '  Mobile Access Portal users on the gateway (peak)           : ';
       more /tmp/moblic.txt | awk {'print \$5'};
       fi
       echo;
       printf '%.s-' {1..78};echo;
       SHOW_SUM="1";
    ;;


    *)    # unknown option
    #echo "Unbekannt"
    POSITIONAL+=("\$1") # save it in an array for later
    shift # past argument
    SHOW_SUM="1";
    ;;

esac
done


if [ \$SHOW_SUM == "1" ] 
then
    echo;echo  'Remote Access Licenses on SMS:';echo;
    echo -n '  Endpoint Security VPN (SecureClient)  (CPVP-VSC-5-NGX-XXX) : ';
    cplic print |grep never | grep -o -E 'CPVP-VSC-5-NGX\+.*' |sed 's/CPVP-VSC-5-NGX+//g' |awk '{ total = total + \$1 } END { print total }';
    echo -n '  Endpoint Security VPN (SecureClient)  (CPVP-VSC-XXX-NGX)   : ';
    cplic print |grep never |grep -v 'CPVP-VSC-5-NGX\+' |grep -o -E 'CPVP-VSC-.*NGX' | sed 's/CPVP-VSC-//g' | sed 's/-NGX//g' | awk '{ total = total+ \$1 } END { print total }'
    echo -n '  SNX (not MOB)                         (CPVP-SNX-XXX-NGX)   : ';
    cplic print |grep never | grep SNX | sed 's/.*\sCPVP\-SNX\-//' | sed 's/\-NGX.*//' |awk '{ total2 = total2 + \$1 } END { print total2 }'
    echo -n '  Mobile Access Blade                   (CPSB-SSLVPN-XXX)    : ';
    cplic print |grep never | grep SSLVPN | sed 's/.*\sCPSB\-SSLVPN\-//' | awk '{ total3 = total3 + \$1 } END { print total3 }'
    # printf '%.s-' {1..78};echo;
    echo;echo 'User Center keys: ';echo;
    echo '  Endpoint Security VPN (SecureClient): ';
    cplic print |grep never | grep 'CPVP-VSC-' | grep -o -E 'SWB CK-............'| awk '{print \$2}' |sed 's/CK-//g' | awk '{print "    " \$1}'; 
    echo '  SNX: '; 
    cplic print |grep never | grep 'CPVP-SNX-' | sed 's/.*\sCK-//' | awk '{print "    " \$1}'; 
    echo '  MOB: ';
    cplic print |grep never | grep 'CPSB-SSLVPN-' | sed 's/.*\sCK-//' | awk '{print "    " \$1}'; 
    echo;printf '%.s-' {1..78};echo;
fi

EOT
chmod 770 /usr/local/bin/sclic&lt;/LI-CODE&gt;&lt;/DIV&gt;
&lt;TABLE style="border: 1px solid #c6c6c6; border-collapse: separate; border-radius: 5px; background-color: #e15180; padding: 6px; text-indent: 10px;" width="100%"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH align="left"&gt;&lt;FONT size="4" color="#ffffff"&gt;More "Easy Tools"&lt;/FONT&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;P&gt;&lt;BR /&gt;- &lt;SPAN class="lia-message-read"&gt;&lt;A class="page-link lia-link-navigation lia-custom-event" href="https://community.checkpoint.com/t5/General-Topics/Easy-Backup-Tool-migrate-export-all-GAIA-configs/td-p/79632/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Easy Backup Tool - (migrate export + all GAIA configs)&lt;/A&gt;&lt;/SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; Easy backup of all gateway GAIA configs + migrate export with one CLI command.&lt;BR /&gt;- &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-on-all-gateways-simultaneously/m-p/50883/highlight/true#M3783" target="_self"&gt;Easy execute CLI commands on all gateways simultaneously&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt;&amp;nbsp; Now you can use the new command to execute bash or clish commands on all gateway simultaneously.&lt;BR /&gt;- &lt;A href="https://community.checkpoint.com/t5/Enterprise-Appliances-and-Gaia/GAIA-Easy-execute-CLI-commands-from-management-on-gateways/m-p/50764/highlight/true#M3759" target="_self"&gt;Easy execute CLI commands from management on gateways&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &lt;SPAN class="lia-message-read"&gt;Easy execute CLI commands from management on gateways&lt;BR /&gt;&lt;/SPAN&gt;- &lt;A class="page-link lia-link-navigation lia-custom-event" href="https://community.checkpoint.com/t5/General-Topics/R80-x-Mobile-User-License-Tool-replaced-quot-dtps-lic-quot/td-p/78848/jump-to/first-unread-message" target="_blank" rel="noopener"&gt;Mobile User License Tool - replaced "dtps lic"&lt;/A&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;gt; &lt;FONT style="background-color: #f8f8fa;"&gt;&lt;SPAN&gt;It displays all Secure Client, SSL VPN and Mobile Access Portal licenses in total (sum) on the SMS.&lt;BR /&gt;- &lt;A href="https://community.checkpoint.com/t5/General-Topics/Easy-View-Tool-system-infos-from-all-gateways-simultaneously/td-p/81438" target="_self"&gt;Easy View Tool - (system infos from all gateways simultaneously)&lt;/A&gt; -&amp;gt; This toll shows you quickly an overview of status information of all your gateways with only one CLI command.&lt;/SPAN&gt;&lt;/FONT&gt;&lt;/P&gt;
&lt;TABLE style="border: 1px solid #c6c6c6; border-collapse: separate; border-radius: 5px; background-color: #e15180; padding: 6px; text-indent: 10px;" width="100%"&gt;
&lt;THEAD&gt;
&lt;TR&gt;
&lt;TH align="left"&gt;&lt;FONT size="4" color="#ffffff"&gt;Version&lt;/FONT&gt;&lt;/TH&gt;
&lt;/TR&gt;
&lt;/THEAD&gt;
&lt;/TABLE&gt;
&lt;P&gt;0.1&amp;nbsp; &amp;nbsp; 03-15-2020&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; oneliner to show Secure Client licenses&lt;BR /&gt;0.2&amp;nbsp; &amp;nbsp; 03-17-2020&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; create "sclic" tool as script&lt;BR /&gt;0.3&amp;nbsp; &amp;nbsp; 03-19-2020&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; add remote user check on the gateway&lt;BR /&gt;0.4&amp;nbsp; &amp;nbsp; 03-20-2020&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; add SNX licenses and MOB licenses,&amp;nbsp; &amp;nbsp;renamed to "&lt;SPAN&gt;Mobile User License Tool"&lt;BR /&gt;0.5&amp;nbsp; &amp;nbsp; 03-21-2020&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp; option -g shows all gateways from topology&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-22-2020&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add auto installer one-liner&lt;BR /&gt;0.6&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-23-2020&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; add parameters -m, -s, -r, -g; &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option -r show full remote gateway licenses&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option -m show&amp;nbsp; full SMS licenses &lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; option -g shows remote IP and gateway name from topology&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;1.0&amp;nbsp;&amp;nbsp;&amp;nbsp; 03-29-2020&amp;nbsp;&amp;nbsp;&amp;nbsp; -&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; bug fixed&lt;BR /&gt;2.0&amp;nbsp; &amp;nbsp; 01-26-2026&amp;nbsp; &amp;nbsp; -&amp;nbsp; &amp;nbsp; &amp;nbsp;R82 + R82.10 Upgrade&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Jan 2026 11:22:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78848#M351</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2026-01-28T11:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: Secure Client License Overview Oneliner (Covid 19)</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78854#M352</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;This is a very nice solution and it works great.&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 20:09:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78854#M352</guid>
      <dc:creator>Harry_Morgan</dc:creator>
      <dc:date>2020-03-19T20:09:36Z</dc:date>
    </item>
    <item>
      <title>Re: Secure Client License Overview Oneliner (Covid 19)</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78869#M353</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;I have another Suggestion&lt;/FONT&gt;.&amp;nbsp;&lt;FONT&gt;You could also include the used office mode IP addresses:-)&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;fw tab -t om_assigned_ips -s&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Jan&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 19 Mar 2020 20:49:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78869#M353</guid>
      <dc:creator>Jan_Elbers</dc:creator>
      <dc:date>2020-03-19T20:49:31Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78895#M354</link>
      <description>&lt;P&gt;I'm not sure this will always work.&lt;/P&gt;&lt;P&gt;I have encountered Endpoint licenses with the key format "CPVP-VSC-25-NGX" instead of "CPVP-VSC-5-NGX+30", and your one line specifically search for "CPVP-VSC-5-NGX+"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For instance (anonymised, but from an actual manager):&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+100 CPEP-SUBSCR CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+30 CPEP-SUBSCR CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-25-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-25-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+10 CPEP-PERP CPSB-SWB CK-1ABCD123A123 &lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Notice the two&amp;nbsp;CPVP-VSC-25-NGX licenses.&amp;nbsp; They're weird static Endpoint container licenses from days of yore. It's a 25 endpoint container with a 25 user count that is welded into the container.&lt;/P&gt;&lt;P&gt;Your one liner will report 140 licenses, buts it's actually 190.&amp;nbsp;&lt;/P&gt;&lt;P&gt;See my &lt;A href="https://community.checkpoint.com/t5/Remote-Access-Solutions/Endpoint-Office-Mode-license-count/m-p/78884#M2680" target="_self"&gt;other post&lt;/A&gt; for some interesting musings on endpoint licenses and how they are actually enforced.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 00:20:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78895#M354</guid>
      <dc:creator>MattElkington</dc:creator>
      <dc:date>2020-03-20T00:20:41Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78931#M355</link>
      <description>&lt;P&gt;I will extend the script.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 05:54:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78931#M355</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-20T05:54:09Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78935#M356</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/43401"&gt;@MattElkington&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;THX for the information. I have modified the scripts accordingly. Can you test it again.&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 06:39:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78935#M356</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-20T06:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78956#M357</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;, thanks, I gave it a test and it didn't show any up.&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Secure Client licenses (CPVP-VSC-5-NGX): 140
Secure Client licenses (CPVP-VSC-25-NGX):&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I think you're not checking the string correctly.&lt;/P&gt;&lt;P&gt;With&amp;nbsp;CPVP-VSC-25-NGX it's the 25 which changes to reflect the number of seats, so you can't check for&amp;nbsp;CPVP-VSC-25-NGX, as there probably exist&amp;nbsp;CPVP-VSC-50-NGX and&amp;nbsp;CPVP-VSC-100-NGX out there.&lt;/P&gt;&lt;P&gt;My regex skills aren't good enough to work out how to extract just the 25/50/100 out of the string.&amp;nbsp; I would assume something like "CPVP-VSC-[0-9]+-NGX \b".&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you put the following into a text file and replace the "cplic print" with "cat textfile" you can test it out yourself:&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+100 CPEP-SUBSCR CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+30 CPEP-SUBSCR CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-25-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-25-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+10 CPEP-PERP CPSB-SWB CK-1ABCD123A123&lt;/LI-CODE&gt;</description>
      <pubDate>Fri, 20 Mar 2020 10:59:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78956#M357</guid>
      <dc:creator>MattElkington</dc:creator>
      <dc:date>2020-03-20T10:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78968#M358</link>
      <description>&lt;P&gt;It works fine with your textfile:-)&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert]# cat test.txt |grep never | grep -o -E "CPVP-VSC-25-NGX|CPVP-VSC-50-NGX|CPVP-VSC-100-NGX" | sed 's/CPVP-VSC-//g' | sed 's/-NGX//g' | awk '{ total1 = total1 + $1 } END { print total1 }'

50&lt;/LI-CODE&gt;
&lt;P&gt;I can see the &lt;STRONG&gt;50&lt;/STRONG&gt; CPVP-VSC-25-NGX licenses.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 12:03:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78968#M358</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-20T12:03:20Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78970#M359</link>
      <description>&lt;LI-CODE lang="markup"&gt;echo -n "Secure Client licenses (CPVP-VSC-5-NGX+xx): "; cplic print |grep never | grep -v -E "CPVP-VSC-[0-9]+-NGX " |grep -o -E "CPVP-VSC-5-NGX+........" |sed 's/CPVP-VSC-5-NGX+//g' |awk '{ total = total + $1 } END { print total }'; echo -n "Secure Client licenses (CPVP-VSC-xx-NGX): "; cplic print |grep never | grep -o -E "CPVP-VSC-[0-9]+-NGX " | sed 's/CPVP-VSC-//g' | sed 's/-NGX//g' | awk '{ total1 = total1 + $1 } END { print total1 }' ; echo "User Center Key:"; cplic print |grep never | grep "CPVP-VSC-" | grep -o -E "SWB CK-............"| awk '{print $2}' |sed 's/CK-//g'&lt;/LI-CODE&gt;&lt;P&gt;I modified your's slight so it can deal with arbitrary license values:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;cat test.txt |grep never | grep -o -E "CPVP-VSC-[0-9]+-NGX " | sed 's/CPVP-VSC-//g' | sed 's/-NGX//g' | awk '{ total1 = total1 + $1 } END { print total1 }'
175&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the [0-9]+ matches one or more numbers, plus the space after NGX means that it won't accidentally count&amp;nbsp;CPVP-VSC-5-NGX+yy ones.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I updated the cplic test file to the below to validate&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+100 CPEP-SUBSCR CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+30 CPEP-SUBSCR CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-25-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-25-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-5-NGX+10 CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-50-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123
1.2.3.4        never       CPVP-VPS-1-NGX CPVP-VSC-75-NGX CPEP-PERP CPSB-SWB CK-1ABCD123A123&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;[Expert@FWMGMT01:0]# cat licensetest.txt |grep never | grep -o -E "CPVP-VSC-[0-9]+-NGX " | sed 's/CPVP-VSC-//g' | sed 's/-NGX//g' | awk '{ total1 = total1 + $1 } END { print total1 }'

175&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Now we just need to get it shoved back into the one liner... &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;edit:&lt;/P&gt;&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I modified your full one liner above to deal with brbitrary valuse for the "other" style.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;echo -n "Secure Client licenses (CPVP-VSC-5-NGX+xx): "; cplic print |grep never | grep -v -E "CPVP-VSC-[0-9]+-NGX " |grep -o -E "CPVP-VSC-5-NGX+........" |sed 's/CPVP-VSC-5-NGX+//g' |awk '{ total = total + $1 } END { print total }'; echo -n "Secure Client licenses (CPVP-VSC-xx-NGX): "; cplic print |grep never | grep -o -E "CPVP-VSC-[0-9]+-NGX " | sed 's/CPVP-VSC-//g' | sed 's/-NGX//g' | awk '{ total1 = total1 + $1 } END { print total1 }' ; echo "User Center Key:"; cplic print |grep never | grep "CPVP-VSC-" | grep -o -E "SWB CK-............"| awk '{print $2}' |sed 's/CK-//g'&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The output when I pass it across the license file as above is:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="markup"&gt;Secure Client licenses (CPVP-VSC-5-NGX): 140
Secure Client licenses (CPVP-VSC-25-NGX): 175
User Center Key:
1ABCD123A123
1ABCD123A123
1ABCD123A123
1ABCD123A123
1ABCD123A123
1ABCD123A123
1ABCD123A123&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Which looks absolutely perfect to me.&lt;/P&gt;&lt;P&gt;Thanks so much for this, as I spent most of Monday this week counting bloody licenses in cplic prints.&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 12:25:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78970#M359</guid>
      <dc:creator>MattElkington</dc:creator>
      <dc:date>2020-03-20T12:25:30Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78972#M360</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/43401"&gt;@MattElkington&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;FYI:&lt;/P&gt;
&lt;P&gt;I made a CLI command from the onliner.&lt;BR /&gt;You can now also check the used licenses on the gateway &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Regards&lt;/P&gt;
&lt;P&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 12:26:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78972#M360</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-20T12:26:24Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78974#M361</link>
      <description>&lt;P&gt;I found this on a license:&lt;/P&gt;
&lt;P&gt;CPVP-VPS-1-NGX &lt;FONT color="#0000FF"&gt;CPVP-VSC-25-NGX&lt;/FONT&gt; &lt;FONT color="#FF0000"&gt;CPVP-VSC-5-NGX+25&lt;/FONT&gt; CPEP-SUBSCR CPSB-SWB CK-XXXXXXXXXX&lt;/P&gt;
&lt;P&gt;Hmmm&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 12:31:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/78974#M361</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-20T12:31:51Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79001#M362</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;nice tool!&lt;/P&gt;&lt;P&gt;Maybe you can also add SNX and MOB licenses.&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Mike&lt;/P&gt;</description>
      <pubDate>Fri, 20 Mar 2020 16:05:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79001#M362</guid>
      <dc:creator>mike123</dc:creator>
      <dc:date>2020-03-20T16:05:36Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79118#M363</link>
      <description>&lt;P&gt;Now for following:&lt;BR /&gt;- Secure Client licenses&lt;BR /&gt;- Mobile Access Portal licenses&lt;BR /&gt;- SSLVPN licenses&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 12:23:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79118#M363</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-21T12:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79141#M364</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;,&amp;nbsp;&lt;/P&gt;&lt;P&gt;great job!&lt;/P&gt;&lt;P&gt;&lt;FONT&gt;Best greetings&lt;BR /&gt;Sabil&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 19:13:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79141#M364</guid>
      <dc:creator>sabil</dc:creator>
      <dc:date>2020-03-21T19:13:30Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79151#M365</link>
      <description>&lt;P&gt;Great Work!&lt;/P&gt;&lt;P&gt;Does it work for VSX?&lt;/P&gt;&lt;P&gt;Regards!&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 20:51:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79151#M365</guid>
      <dc:creator>Fernando_Lopez</dc:creator>
      <dc:date>2020-03-21T20:51:55Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Secure Client License Counter Overview</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79152#M366</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/9111"&gt;@Fernando_Lopez&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I still have some ideas!&lt;/P&gt;
&lt;P&gt;- Support for VSX will follow.&lt;BR /&gt;- Automatic detection of all gateways with a selection list&lt;/P&gt;
&lt;P&gt;Regards&lt;BR /&gt;Heiko&lt;/P&gt;</description>
      <pubDate>Sat, 21 Mar 2020 21:07:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79152#M366</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-21T21:07:58Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Mobile User License Tool   -   replaced "dtps lic"</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79197#M367</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;,&lt;/P&gt;&lt;P&gt;The automatic installation is great, but you may need a firewall rule from SMS to internet.&lt;/P&gt;</description>
      <pubDate>Sun, 22 Mar 2020 07:16:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79197#M367</guid>
      <dc:creator>uror</dc:creator>
      <dc:date>2020-03-22T07:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Mobile User License Tool   -   Replaces "dtps lic"</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79276#M368</link>
      <description>&lt;P&gt;New in v0.5:&lt;/P&gt;
&lt;P&gt;- shows&amp;nbsp;&lt;SPAN&gt;gateways from the topology (IP, gateway name) as list ( option -g)&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- read endpoint &lt;STRONG&gt;VPN user statistics&lt;/STRONG&gt; from gateway -&amp;gt;&amp;nbsp;&lt;STRONG&gt;centralized&lt;/STRONG&gt; from management server&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- now for Endpoint VPN User (old Secure Client), SSL VPN user and MOB &lt;STRONG&gt;user statistics&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;- now for Endpoint VPN- , SSL VPN- and MOB &lt;STRONG&gt;licenses&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 06:06:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79276#M368</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-23T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Mobile User License Tool   -   Replaces "dtps lic"</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79310#M369</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/21670"&gt;@HeikoAnkenbrand&lt;/a&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;how about including the VPN licenses coming with every SandBlast Agent license?&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SandBlast-license.PNG" style="width: 999px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5017i80EE965C666A0D7A/image-size/large?v=v2&amp;amp;px=999" role="button" title="SandBlast-license.PNG" alt="SandBlast-license.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;Wolfgang&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 07:59:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79310#M369</guid>
      <dc:creator>Wolfgang</dc:creator>
      <dc:date>2020-03-23T07:59:42Z</dc:date>
    </item>
    <item>
      <title>Re: R80.x - Mobile User License Tool   -   Replaces "dtps lic"</title>
      <link>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79319#M370</link>
      <description>&lt;P&gt;Hi &lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/1447"&gt;@Wolfgang&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;THX - Is included in v0.5&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="SC_Bild10.JPG" style="width: 817px;"&gt;&lt;img src="https://community.checkpoint.com/t5/image/serverpage/image-id/5019i59EAACE1E7D59CA5/image-size/large?v=v2&amp;amp;px=999" role="button" title="SC_Bild10.JPG" alt="SC_Bild10.JPG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 23 Mar 2020 09:05:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Easy-Mobile-User-License-Tool-Replaces-quot-dtps-lic-quot/m-p/79319#M370</guid>
      <dc:creator>HeikoAnkenbrand</dc:creator>
      <dc:date>2020-03-23T09:05:53Z</dc:date>
    </item>
  </channel>
</rss>

