<?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: Using Logs API to see Endpoint VPN Client version used over the last 30 days in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106650#M5451</link>
    <description>&lt;P&gt;Hello Andreas,&lt;/P&gt;
&lt;P&gt;on the main thread you can find a reporting / view template&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/IMPORTANT-Client-VPN-Endpoint-versions-E81-10-or-earlier-MUST/m-p/106436#M20363" target="_blank"&gt;https://community.checkpoint.com/t5/General-Topics/IMPORTANT-Client-VPN-Endpoint-versions-E81-10-or-earlier-MUST/m-p/106436#M20363&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-peter&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Wed, 30 Dec 2020 12:25:13 GMT</pubDate>
    <dc:creator>Peter_Elmer</dc:creator>
    <dc:date>2020-12-30T12:25:13Z</dc:date>
    <item>
      <title>Using Logs API to see Endpoint VPN Client version used over the last 30 days</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106467#M5442</link>
      <description>&lt;P&gt;Sharing my limited API skills. Below script can be used to query logs API for the Endpoint VPN Client version used over the last 30 days into a json formatted file 'vpnclientversion.json'&lt;/P&gt;
&lt;P&gt;You need R80.40 JHF Take 78 or later to use Logs API (&lt;A title="API documentation" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html?#api_versions~v1.6.1%20" target="_self"&gt;link&lt;/A&gt;)&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;# Login as admin apiUser to query Logs API
mgmt_cli login user "apiUser" password "vpn123" &amp;gt; sessionID.txt

# show logs
echo "show logs" 2&amp;gt;&amp;amp;1 | tee -a sessionlog.out
/bin/date 2&amp;gt;&amp;amp;1 | tee -a sessionlog.out
mgmt_cli set session new-name "show VPN Client Versions" description "show VPN Client Versions" -s sessionID.txt
mgmt_cli show logs new-query.time-frame "last-30-days" new-query.filter "blade:\"Mobile Access"\" -s sessionID.txt --format json &amp;gt; ./vpnclientversion.json


echo "All done.." 2&amp;gt;&amp;amp;1 | tee -a sessionlog.out
/bin/date 2&amp;gt;&amp;amp;1 | tee -a sessionlog.out
mgmt_cli logout -s sessionID.txt&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Then you can use jq to see the client versions found per logs message.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; cat vpnclientversion.json | jq -r '["client_name","client_version"], ( .logs[] | .client_name as $clientname | .client_version as $clientversion | [$clientname, $clientversion] )'
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is far from perfect but may help.&lt;/P&gt;
&lt;P&gt;-pelmer&lt;/P&gt;</description>
      <pubDate>Mon, 28 Dec 2020 19:47:09 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106467#M5442</guid>
      <dc:creator>Peter_Elmer</dc:creator>
      <dc:date>2020-12-28T19:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Using Logs API to see Endpoint VPN Client version used over the last 30 days</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106602#M5444</link>
      <description>&lt;P&gt;That’s handy.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 04:51:24 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106602#M5444</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2020-12-30T04:51:24Z</dc:date>
    </item>
    <item>
      <title>Re: Using Logs API to see Endpoint VPN Client version used over the last 30 days</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106630#M5446</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/177"&gt;@Peter_Elmer&lt;/a&gt;, if you wrap it nicely and give it a name, this is a ToolBox material. Please let me know&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 10:27:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106630#M5446</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2020-12-30T10:27:42Z</dc:date>
    </item>
    <item>
      <title>Re: Using Logs API to see Endpoint VPN Client version used over the last 30 days</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106635#M5450</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;why is there no &lt;STRONG&gt;smartlog report option&lt;/STRONG&gt; available to find out which vpn dial in software versions are used?&lt;/P&gt;&lt;P&gt;Informations like&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Name:&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; Check Point Mobile&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Version:&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; E81.40&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Are in the log?&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 11:24:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106635#M5450</guid>
      <dc:creator>Andreas_Hofmann</dc:creator>
      <dc:date>2020-12-30T11:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Using Logs API to see Endpoint VPN Client version used over the last 30 days</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106650#M5451</link>
      <description>&lt;P&gt;Hello Andreas,&lt;/P&gt;
&lt;P&gt;on the main thread you can find a reporting / view template&lt;/P&gt;
&lt;P&gt;&lt;A href="https://community.checkpoint.com/t5/General-Topics/IMPORTANT-Client-VPN-Endpoint-versions-E81-10-or-earlier-MUST/m-p/106436#M20363" target="_blank"&gt;https://community.checkpoint.com/t5/General-Topics/IMPORTANT-Client-VPN-Endpoint-versions-E81-10-or-earlier-MUST/m-p/106436#M20363&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;-peter&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 30 Dec 2020 12:25:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Using-Logs-API-to-see-Endpoint-VPN-Client-version-used-over-the/m-p/106650#M5451</guid>
      <dc:creator>Peter_Elmer</dc:creator>
      <dc:date>2020-12-30T12:25:13Z</dc:date>
    </item>
  </channel>
</rss>

