<?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: How to script setting concurrent connection limit on VSX? in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247791#M9033</link>
    <description>&lt;P&gt;As you know, the number of concurrent connections permitted in a VS is set via SmartConsole in the VS object.&lt;BR /&gt;Unfortunately, there is no API support for legacy VSX objects.&lt;BR /&gt;Which means this is not scriptable.&lt;/P&gt;</description>
    <pubDate>Wed, 30 Apr 2025 12:49:36 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2025-04-30T12:49:36Z</dc:date>
    <item>
      <title>How to script setting concurrent connection limit on VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247755#M9032</link>
      <description>&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;We are looking into having to adjust the concurrent connection limit slightly, due to contractual obligations with our customers and I would like to know if there is any way, API, CLI or other, that would allow us to set a new value, instead of having to go into the GUI and setting a new individual value on 130+ Virtual Systems.&lt;/P&gt;&lt;P&gt;I have not found evidence that vsx_provisioning_tool can do it, unless I missed something.&lt;/P&gt;&lt;P&gt;Any ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;We are currently running R81.10 and looking into upgrading to 81.20.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 08:32:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247755#M9032</guid>
      <dc:creator>NoMaD_dk</dc:creator>
      <dc:date>2025-04-30T08:32:42Z</dc:date>
    </item>
    <item>
      <title>Re: How to script setting concurrent connection limit on VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247791#M9033</link>
      <description>&lt;P&gt;As you know, the number of concurrent connections permitted in a VS is set via SmartConsole in the VS object.&lt;BR /&gt;Unfortunately, there is no API support for legacy VSX objects.&lt;BR /&gt;Which means this is not scriptable.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 12:49:36 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247791#M9033</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2025-04-30T12:49:36Z</dc:date>
    </item>
    <item>
      <title>Re: How to script setting concurrent connection limit on VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247797#M9034</link>
      <description>&lt;P&gt;Same cannot find anything related to this in the API guide.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Extra tip:&lt;/P&gt;
&lt;P&gt;Do you already monitor connection limit with SNMP? This is possible.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Alternative is to run&amp;nbsp;vsx stat-l and the systems and collect the info from there.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Plus not 100% sure ( dont have my notes with me) but i think in r82 on vsx you can now use the option auto for the connection limit.&lt;/P&gt;</description>
      <pubDate>Wed, 30 Apr 2025 13:57:00 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247797#M9034</guid>
      <dc:creator>Lesley</dc:creator>
      <dc:date>2025-04-30T13:57:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to script setting concurrent connection limit on VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247926#M9035</link>
      <description>&lt;P&gt;Yes, we already monitor it. The question is if the value could be manipulated in another way than through the GUI, which I see is not possible.&lt;/P&gt;&lt;P&gt;Setting the value to auto is not an option either, due to billing and contracts obligations.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 12:51:13 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247926#M9035</guid>
      <dc:creator>NoMaD_dk</dc:creator>
      <dc:date>2025-05-01T12:51:13Z</dc:date>
    </item>
    <item>
      <title>Re: How to script setting concurrent connection limit on VSX?</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247927#M9036</link>
      <description>&lt;P&gt;For what is worth, this is what came from AI.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;
&lt;P&gt;*************************************************************************&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="" data-start="0" data-end="319"&gt;To script setting the &lt;STRONG data-start="22" data-end="53"&gt;concurrent connection limit&lt;/STRONG&gt; on &lt;STRONG data-start="57" data-end="91"&gt;VSX (Virtual System Extension)&lt;/STRONG&gt; in Check Point firewalls, you'll typically use &lt;STRONG data-start="139" data-end="155"&gt;CLI commands&lt;/STRONG&gt;, particularly through &lt;STRONG data-start="178" data-end="190"&gt;&lt;CODE data-start="180" data-end="188"&gt;fw ctl&lt;/CODE&gt;&lt;/STRONG&gt; or &lt;STRONG data-start="194" data-end="237"&gt;SmartConsole/SmartCenter CLI (mgmt_cli)&lt;/STRONG&gt; depending on whether you're modifying kernel parameters or object configurations.&lt;/P&gt;
&lt;P class="" data-start="321" data-end="417"&gt;Here’s a practical approach, assuming you want to set connection limits per Virtual System (VS):&lt;/P&gt;
&lt;HR data-start="419" data-end="422" /&gt;
&lt;H3 class="" data-start="424" data-end="505"&gt;&lt;span class="lia-unicode-emoji" title=":wrench:"&gt;🔧&lt;/span&gt; Option 1: Using &lt;CODE data-start="447" data-end="463"&gt;fw ctl set int&lt;/CODE&gt; for runtime kernel limit (not persistent)&lt;/H3&gt;
&lt;P class="" data-start="506" data-end="582"&gt;This sets the concurrent connection limit in memory, not surviving a reboot.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]"&gt;bash&lt;/DIV&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs"&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex gap-1 items-center select-none px-4 py-1" aria-label="Copy"&gt;Copy&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex items-center gap-1 px-4 py-1 select-none"&gt;Edit&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre! language-bash"&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-comment"&gt;# Example for setting max concurrent connections to 500,000 on VSID 2&lt;/SPAN&gt;
vsenv 2
fw ctl &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; int fw_conn_table_limit 500000
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="overflow-visible!" data-start="584" data-end="715"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P class="" data-start="717" data-end="727"&gt;To verify:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]"&gt;bash&lt;/DIV&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs"&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex gap-1 items-center select-none px-4 py-1" aria-label="Copy"&gt;Copy&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex items-center gap-1 px-4 py-1 select-none"&gt;Edit&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre! language-bash"&gt;&lt;SPAN&gt;fw ctl get int fw_conn_table_limit
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="overflow-visible!" data-start="728" data-end="774"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;BLOCKQUOTE data-start="776" data-end="832"&gt;
&lt;P class="" data-start="778" data-end="832"&gt;&lt;span class="lia-unicode-emoji" title=":warning:"&gt;⚠️&lt;/span&gt; Not persistent — use &lt;CODE data-start="802" data-end="815"&gt;fwkern.conf&lt;/CODE&gt; for persistence.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;HR data-start="834" data-end="837" /&gt;
&lt;H3 class="" data-start="839" data-end="894"&gt;&lt;span class="lia-unicode-emoji" title=":locked_with_key:"&gt;🔐&lt;/span&gt; Option 2: Make persistent via &lt;CODE data-start="876" data-end="894"&gt;/etc/fwkern.conf&lt;/CODE&gt;&lt;/H3&gt;
&lt;P class="" data-start="895" data-end="954"&gt;Add the following to &lt;CODE data-start="916" data-end="934"&gt;/etc/fwkern.conf&lt;/CODE&gt; on the VSX gateway:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]"&gt;bash&lt;/DIV&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs"&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex gap-1 items-center select-none px-4 py-1" aria-label="Copy"&gt;Copy&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex items-center gap-1 px-4 py-1 select-none"&gt;Edit&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre! language-bash"&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-comment"&gt;# For VSID 2 (set while in that VS context)&lt;/SPAN&gt;
fw_conn_table_limit=500000
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="overflow-visible!" data-start="956" data-end="1038"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;BLOCKQUOTE data-start="1040" data-end="1158"&gt;
&lt;P class="" data-start="1042" data-end="1158"&gt;You must do this from within the VS context (&lt;CODE data-start="1087" data-end="1101"&gt;vsenv &amp;lt;VSID&amp;gt;&lt;/CODE&gt;), and reboot or run &lt;CODE data-start="1122" data-end="1138"&gt;fw ctl set int&lt;/CODE&gt; afterward to apply.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;HR data-start="1160" data-end="1163" /&gt;
&lt;H3 class="" data-start="1165" data-end="1240"&gt;🧠 Option 3: Using &lt;CODE data-start="1188" data-end="1198"&gt;mgmt_cli&lt;/CODE&gt; or API to configure SmartConsole settings&lt;/H3&gt;
&lt;P class="" data-start="1241" data-end="1344"&gt;If you want to set limits as part of a policy object (e.g., per gateway or VS), use the management API.&lt;/P&gt;
&lt;P class="" data-start="1346" data-end="1433"&gt;Example with &lt;CODE data-start="1359" data-end="1369"&gt;mgmt_cli&lt;/CODE&gt; (not directly for connection limits but to modify VSX objects):&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]"&gt;bash&lt;/DIV&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs"&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex gap-1 items-center select-none px-4 py-1" aria-label="Copy"&gt;Copy&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex items-center gap-1 px-4 py-1 select-none"&gt;Edit&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre! language-bash"&gt;&lt;SPAN&gt;mgmt_cli &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; simple-gateway name &lt;SPAN class="hljs-string"&gt;"My_VSX_Gateway"&lt;/SPAN&gt; max-concurrent-connections 500000 --domain &lt;SPAN class="hljs-string"&gt;"MyDomain"&lt;/SPAN&gt; -r &lt;SPAN class="hljs-literal"&gt;true&lt;/SPAN&gt; -s session.json
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="overflow-visible!" data-start="1435" data-end="1574"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;BLOCKQUOTE data-start="1576" data-end="1665"&gt;
&lt;P class="" data-start="1578" data-end="1665"&gt;You’ll need to check your exact object type (&lt;CODE data-start="1623" data-end="1639"&gt;simple-gateway&lt;/CODE&gt;, &lt;CODE data-start="1641" data-end="1646"&gt;vsx&lt;/CODE&gt;, etc.) and fields.&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;HR data-start="1667" data-end="1670" /&gt;
&lt;H3 class="" data-start="1672" data-end="1693"&gt;&lt;span class="lia-unicode-emoji" title=":light_bulb:"&gt;💡&lt;/span&gt; Script Example&lt;/H3&gt;
&lt;P class="" data-start="1694" data-end="1749"&gt;Here’s a shell script to set the limit on multiple VSs:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="contain-inline-size rounded-md border-[0.5px] border-token-border-medium relative bg-token-sidebar-surface-primary"&gt;
&lt;DIV class="flex items-center text-token-text-secondary px-4 py-2 text-xs font-sans justify-between h-9 bg-token-sidebar-surface-primary dark:bg-token-main-surface-secondary select-none rounded-t-[5px]"&gt;bash&lt;/DIV&gt;
&lt;DIV class="sticky top-9"&gt;
&lt;DIV class="absolute end-0 bottom-0 flex h-9 items-center pe-2"&gt;
&lt;DIV class="bg-token-sidebar-surface-primary text-token-text-secondary dark:bg-token-main-surface-secondary flex items-center rounded-sm px-2 font-sans text-xs"&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex gap-1 items-center select-none px-4 py-1" aria-label="Copy"&gt;Copy&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;SPAN class="" data-state="closed"&gt;&lt;BUTTON class="flex items-center gap-1 px-4 py-1 select-none"&gt;Edit&lt;/BUTTON&gt;&lt;/SPAN&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;DIV class="overflow-y-auto p-4" dir="ltr"&gt;&lt;CODE class="whitespace-pre! language-bash"&gt;&lt;SPAN&gt;&lt;SPAN class="hljs-meta"&gt;#!/bin/bash&lt;/SPAN&gt;

LIMIT=500000
&lt;SPAN class="hljs-keyword"&gt;for&lt;/SPAN&gt; VSID &lt;SPAN class="hljs-keyword"&gt;in&lt;/SPAN&gt; 2 3 4; &lt;SPAN class="hljs-keyword"&gt;do&lt;/SPAN&gt;
    &lt;SPAN class="hljs-built_in"&gt;echo&lt;/SPAN&gt; &lt;SPAN class="hljs-string"&gt;"Setting connection limit for VSID &lt;SPAN class="hljs-variable"&gt;$VSID&lt;/SPAN&gt;&lt;/SPAN&gt;"
    vsenv &lt;SPAN class="hljs-variable"&gt;$VSID&lt;/SPAN&gt;
    fw ctl &lt;SPAN class="hljs-built_in"&gt;set&lt;/SPAN&gt; int fw_conn_table_limit &lt;SPAN class="hljs-variable"&gt;$LIMIT&lt;/SPAN&gt;
&lt;SPAN class="hljs-keyword"&gt;done&lt;/SPAN&gt;
&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&lt;LI-WRAPPER&gt;&lt;/LI-WRAPPER&gt;&lt;/P&gt;
&lt;PRE class="overflow-visible!" data-start="1751" data-end="1928"&gt;&amp;nbsp;&lt;/PRE&gt;
&lt;P class="" data-start="1930" data-end="2007"&gt;To make this persistent, you’d script editing &lt;CODE data-start="1976" data-end="1994"&gt;/etc/fwkern.conf&lt;/CODE&gt; for each VS.&lt;/P&gt;</description>
      <pubDate>Thu, 01 May 2025 13:04:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/How-to-script-setting-concurrent-connection-limit-on-VSX/m-p/247927#M9036</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2025-05-01T13:04:29Z</dc:date>
    </item>
  </channel>
</rss>

