<?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 Identity Awareness Client Statistics in Scripts</title>
    <link>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268234#M1351</link>
    <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H2&gt;&lt;span class="lia-unicode-emoji" title=":bar_chart:"&gt;📊&lt;/span&gt; IDA Statistics Analyzer - Comprehensive Analysis for PDP &amp;amp; PEP Sessions&lt;/H2&gt;
&lt;P&gt;I've created a Python script that analyzes Check Point Identity Awareness data from &lt;CODE&gt;ida_tables_util&lt;/CODE&gt; and generates detailed statistics reports.&lt;/P&gt;
&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":direct_hit:"&gt;🎯&lt;/span&gt; What it does&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;STRONG&gt;PDP Session Analysis&lt;/STRONG&gt; - Organizations, domains, authentication methods, client types, IP ranges, hourly patterns&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;PEP Client Database Analysis&lt;/STRONG&gt; - Session TTL, user types, geographic distribution&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Demo Mode&lt;/STRONG&gt; - Generate synthetic data for testing (no real data exposure)&lt;/LI&gt;
&lt;LI&gt;&lt;STRONG&gt;Automated Reports&lt;/STRONG&gt; - Saves results to &lt;CODE&gt;pdp_stats.txt&lt;/CODE&gt; and &lt;CODE&gt;pep_stats.txt&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;� Usage&lt;/H3&gt;
&lt;H4&gt;Help / No Parameters&lt;/H4&gt;
&lt;PRE&gt;python3 ida_stats.py
usage: ida_stats.py [-h] [-f FILE] [--generate] [--demo] [--table {pdp,pep,both}]

Analyze Check Point IDA Statistics (PDP Sessions and PEP Client Database)

options:
  -h, --help            show this help message and exit
  -f FILE, --file FILE  Input CSV file
  --generate            Run ida_tables_util to generate CSV file
  --demo                Use demo data (synthetic data for demonstration)
  --table {pdp,pep,both}
                        Which table to analyze (default: both)

Examples:
  # Analyze both PDP and PEP (demo mode):
  python ida_stats.py --demo

  # Analyze specific table with file:
  python ida_stats.py --table pdp -f ida_tab_pdp_sessions.csv
  python ida_stats.py --table pep -f ida_tab_pep_client_db.csv

  # Generate and analyze (requires Check Point system):
  python ida_stats.py --table pdp --generate
  python ida_stats.py --table pep --generate
  python ida_stats.py --table both --generate
&lt;/PRE&gt;
&lt;H4&gt;Generate Mode Example&lt;/H4&gt;
&lt;PRE&gt;[Expert@gateway:0]# python3 ida_stats.py --table both --generate
Running: ida_tables_util -t pdp_sessions
CSV file created: ida_tab_pdp_sessions.csv
Parsing PDP CSV file: ida_tab_pdp_sessions.csv
Found 8542 PDP sessions
PDP statistics saved to: pdp_stats.txt
Running: ida_tables_util -t pep_client_db
CSV file created: ida_tab_pep_client_db.csv
Parsing PEP CSV file: ida_tab_pep_client_db.csv
Found 7891 PEP entries
PEP statistics saved to: pep_stats.txt
&lt;/PRE&gt;
&lt;H4&gt;Demo Mode (Privacy-Safe)&lt;/H4&gt;
&lt;PRE&gt;python ida_stats.py --demo&lt;/PRE&gt;
&lt;H4&gt;Analyze Existing CSV Files&lt;/H4&gt;
&lt;PRE&gt;python ida_stats.py --table pdp -f ida_tab_pdp_sessions.csv
python ida_stats.py --table pep -f ida_tab_pep_client_db.csv&lt;/PRE&gt;
&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":chart_increasing:"&gt;📈&lt;/span&gt; Sample Output&lt;/H3&gt;
&lt;PRE&gt;================================================================================
  PDP SESSION STATISTICS
================================================================================

Total Sessions: 500
  - User Sessions: 475 (95.0%)
  - Machine Sessions: 25 (5.0%)
  - Terminal Server Sessions: 120 (24.0%)

--- Client Type Distribution ---
  Identity Agent                            380 ( 76.0%) ###################
  Terminal Server Identity Agent            120 ( 24.0%) ######
  Identity Collector                          0 (  0.0%)

--- Top 15 Organizations ---
 1. Global Insurance Corp                                 62 ###############
 2. TechSecure Solutions                                  58 ##############
 3. Finance Bank International                            54 #############
 4. Manufacturing Industries Ltd                          51 ############
 5. Healthcare Systems Group                              48 ###########

--- Domain Distribution ---
  company.local                             285 ( 60.0%) ############
  corp.internal                             120 ( 25.3%) #####
  enterprise.net                             70 ( 14.7%) ###

--- IP Address Analysis ---
  Internal IPs: 300 (60.0%)
  External IPs: 200 (40.0%)

--- Connections by Hour of Day ---
    07:00 - 07:59   42 ################
    08:00 - 08:59   78 ####################
    09:00 - 09:59   85 ####################
&lt;/PRE&gt;
&lt;H4&gt;Generate Fresh Data from Checkpoint System&lt;/H4&gt;
&lt;PRE&gt;python ida_stats.py --generate&lt;/PRE&gt;
&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Key Features&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; No external dependencies - uses Python standard library only&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Works with CSV output from &lt;CODE&gt;ida_tables_util -t pdp_sessions&lt;/CODE&gt; and &lt;CODE&gt;-t pep_client_db&lt;/CODE&gt;&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Handles both active and inactive PDP/PEP services gracefully&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Generates separate reports for easier analysis&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Demo mode with synthetic data for presentations&lt;/LI&gt;
&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt; Cross-platform (Windows, Linux, macOS)&lt;/LI&gt;
&lt;/UL&gt;
&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":clipboard:"&gt;📋&lt;/span&gt; Statistics Included&lt;/H3&gt;
&lt;TABLE border="1" cellpadding="5"&gt;
&lt;TBODY&gt;
&lt;TR&gt;
&lt;TH&gt;PDP Sessions&lt;/TH&gt;
&lt;TH&gt;PEP Client Database&lt;/TH&gt;
&lt;/TR&gt;
&lt;TR&gt;
&lt;TD valign="top"&gt;• Session types (User/Machine)&lt;BR /&gt;• Top organizations&lt;BR /&gt;• Authentication domains&lt;BR /&gt;• Client types &amp;amp; versions&lt;BR /&gt;• Authentication methods&lt;BR /&gt;• PDP server distribution&lt;BR /&gt;• IP analysis (internal/external)&lt;BR /&gt;• Hourly connection patterns&lt;BR /&gt;• User type analysis&lt;BR /&gt;• Terminal Server details&lt;/TD&gt;
&lt;TD valign="top"&gt;• Total PEP entries&lt;BR /&gt;• Top organizations&lt;BR /&gt;• PDP server distribution&lt;BR /&gt;• Client IP analysis&lt;BR /&gt;• User type classification&lt;BR /&gt;• Session TTL statistics&lt;BR /&gt;• Internal vs external IPs&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":graduation_cap:"&gt;🎓&lt;/span&gt; Example Workflow&lt;/H3&gt;
&lt;PRE&gt;# On Check Point Gateway
[Expert@gateway]# python3 ida_stats.py --demo

# Output
============================================================
PDP DEMO MODE - Using synthetic data
============================================================
Generating demo data...
Generated 500 demo sessions
Found 500 PDP sessions
PDP statistics saved to: pdp_stats.txt
============================================================
PEP DEMO MODE - Using synthetic data
============================================================
Generating PEP demo data...
Generated 400 PEP demo entries
Found 400 PEP entries
PEP statistics saved to: pep_stats.txt
&lt;/PRE&gt;
&lt;H3&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; Notes&lt;/H3&gt;
&lt;UL&gt;
&lt;LI&gt;All status messages go to stderr, statistics go to files - no console clutter&lt;/LI&gt;
&lt;LI&gt;Use &lt;CODE&gt;--demo&lt;/CODE&gt; mode when sharing examples publicly (synthetic data only)&lt;/LI&gt;
&lt;LI&gt;Reports use ASCII characters for maximum compatibility&lt;/LI&gt;
&lt;LI&gt;Handles large datasets efficiently (tested with 13,000+ sessions)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&lt;STRONG&gt;Questions? Feedback? Let me know!&lt;/STRONG&gt;&lt;/P&gt;
&lt;HR /&gt;
&lt;P&gt;&lt;EM&gt;Tested on Check Point R82 with Python 3.13&lt;/EM&gt;&lt;/P&gt;</description>
    <pubDate>Tue, 24 Feb 2026 16:20:54 GMT</pubDate>
    <dc:creator>Vincent_Bacher</dc:creator>
    <dc:date>2026-02-24T16:20:54Z</dc:date>
    <item>
      <title>Identity Awareness Client Statistics</title>
      <link>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268234#M1351</link>
      <description>4</description>
      <pubDate>Tue, 24 Feb 2026 16:20:54 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268234#M1351</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-24T16:20:54Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Awareness Client Statistics</title>
      <link>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268352#M1363</link>
      <description>&lt;P&gt;Will try this in the lab Friday.&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 02:46:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268352#M1363</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-23T02:46:15Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Awareness Client Statistics</title>
      <link>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268465#M1376</link>
      <description>&lt;P&gt;Just tried it, no issues!&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 18:10:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268465#M1376</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2026-01-23T18:10:08Z</dc:date>
    </item>
    <item>
      <title>Re: Identity Awareness Client Statistics</title>
      <link>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268466#M1377</link>
      <description>&lt;P&gt;Thanks!&lt;/P&gt;
&lt;P&gt;bV&lt;/P&gt;</description>
      <pubDate>Fri, 23 Jan 2026 18:11:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/Scripts/Identity-Awareness-Client-Statistics/m-p/268466#M1377</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-01-23T18:11:49Z</dc:date>
    </item>
  </channel>
</rss>

