<?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: mgmt_cli vsx_provisioning_tool failing in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267821#M9354</link>
    <description>&lt;P&gt;If the API command fails you could test using the &lt;STRONG&gt;vsx_provisioning_tool&lt;/STRONG&gt; directly on the command line of the MDS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_VSX_AdminGuide/Content/Topics-VSXG/CLI/vsx_provisioning_tool.htm?tocpath=Command%20Line%20Reference%7Cvsx_provisioning_tool%7C_____0" target="_blank"&gt;https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_VSX_AdminGuide/Content/Topics-VSXG/CLI/vsx_provisioning_tool.htm?tocpath=Command%20Line%20Reference%7Cvsx_provisioning_tool%7C_____0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="mc-main-content" role="main"&gt;
&lt;DIV class="No_Page_Break_Inside"&gt;
&lt;P class="Procedure_Heading"&gt;&lt;STRONG&gt;Example 2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Run the tool on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_mds variable"&gt;Multi-Domain Server&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the context of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_dms variable"&gt;Domain Management Server&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;MyDomain&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Create a new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_vsx_vs variable"&gt;Virtual System&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;VS1&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_vsx_cl variable"&gt;VSX Cluster&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;VSXCluster1&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;In the new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_vsx_vs variable"&gt;Virtual System&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object, on the interface&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;eth4&lt;/CODE&gt;, add a VLAN interface with VLAN ID 100 and IPv4 address 1.1.1.1/24.&lt;/P&gt;
&lt;TABLE class="TableStyle-TP_Table_Code_with_Small_Font_Size_in_PDF_70percent" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR class="TableStyle-TP_Table_Code_with_Small_Font_Size_in_PDF_70percent-Body-Row"&gt;
&lt;TD class="TableStyle-TP_Table_Code_with_Small_Font_Size_in_PDF_70percent-BodyD--Row"&gt;
&lt;P&gt;&lt;CODE&gt;mdsenv MyDomain&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;vsx_provisioning_tool -s localhost -u admin -p mypassword -o add vd name VS1 vsx VSXCluster1, add interface name eth4.100 ip 1.1.1.1/24&lt;/CODE&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jan 2026 18:08:37 GMT</pubDate>
    <dc:creator>Don_Paterson</dc:creator>
    <dc:date>2026-01-19T18:08:37Z</dc:date>
    <item>
      <title>mgmt_cli vsx_provisioning_tool failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267809#M9352</link>
      <description>&lt;P&gt;Hey CheckMates,&lt;/P&gt;
&lt;P&gt;I've got a lab environment set up and I'd like to test the mgmt_cli vsx_provisioning_tool api capability. I'm running the command (with a couple of parameters set) locally from the mgmt server cli, however the command fails to complete and generates an error. I can't see any issues with the syntax and the job fails to complete.&lt;/P&gt;
&lt;P&gt;Syntax:&amp;nbsp;mgmt_cli -r true -d x.x.x.x vsx-provisioning-tool operation "add-vd" add-vd-params.vd "VFW1" add-vd-params.vsx-name "VSX-GATEWAY" add-vd-params.type "vs" add-vd-params.ipv4-instances "2" add-vd-params.ipv4-address "192.168.103.1" add-vd-params.interfaces.1.name "bond1.103" add-vd-params.interfaces.1.ipv4-address "192.168.103.1/24" --format json&lt;/P&gt;
&lt;P&gt;The job appears to execute, but then very quickly fails with the following error:&lt;/P&gt;
&lt;P&gt;---------------------------------------------&lt;BR /&gt;Time: [16:19:20] 19/1/2026&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"VSX add vd operation" in progress (21%)&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [16:19:30] 19/1/2026&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"VSX add vd operation" failed (100%) &lt;BR /&gt;{&lt;BR /&gt;"tasks" : [ {&lt;BR /&gt;"task-id" : "01234567-8xxxxxxxxxxxxx",&lt;BR /&gt;"task-name" : "VSX add vd operation",&lt;BR /&gt;"status" : "failed",&lt;BR /&gt;"progress-percentage" : 100,&lt;BR /&gt;"suppressed" : false,&lt;BR /&gt;"task-details" : [ {&lt;BR /&gt;"fault-message" : "Action Failed due to an Internal Error"&lt;BR /&gt;} ]&lt;BR /&gt;} ]&lt;BR /&gt;}&lt;BR /&gt;Executed command failed. Changes are discarded.&lt;/P&gt;
&lt;P&gt;I've checked the api.elg &amp;amp; fwm.elg files, but can't see anything obvious.&lt;/P&gt;
&lt;P&gt;If I run a basic API show command (mgmt_cli -r true -d x.x.x.x show-gateways-and-servers -f json), it successfully returns the details stored within the target domain. I'm not able to locate anything on the Check Point Support Center.&lt;/P&gt;
&lt;P&gt;I've rebooted the MDM and VSX Gateway, validated the target VSX Gateway has sufficient licensing, but it hasn't helped the situation.&lt;/P&gt;
&lt;P&gt;Has anyone else experienced this issue?&lt;/P&gt;
&lt;P&gt;Mgmt - R82 T44&lt;/P&gt;
&lt;P&gt;VSX Gateway - R82 T44&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 17:14:56 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267809#M9352</guid>
      <dc:creator>AaronCP</dc:creator>
      <dc:date>2026-01-19T17:14:56Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli vsx_provisioning_tool failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267811#M9353</link>
      <description>&lt;P&gt;Looks like you are following the API reference docs example.&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":thumbs_up:"&gt;👍&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Does this work (using your domain DMS IP and other details)?&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli login user fwadmin password vpn123 domain "TargetDomain" &amp;gt; sid.txt 

mgmt_cli vsx-provisioning-tool operation "add-vd" add-vd-params.vd "VFW1" add-vd-params.vsx-name "VSX-GATEWAY" add-vd-params.type "vs" add-vd-params.ipv4-instances "2" add-vd-params.ipv4-address "192.168.103.1" add-vd-params.interfaces.1.name "bond1.103" add-vd-params.interfaces.1.ipv4-address "192.168.103.1/24" -s sid.txt

mgmt_cli publish –s sid.txt

mgmt_cli logout –s sid.txt&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;For future reference. This is a good way to store and use the SID.&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SID=$(mgmt_cli login user "fwadmin" --format json | jq -r '.sid')

mgmt_cli --session-id "$SID" vsx-provisioning-tool ...&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Example:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;SID=$(mgmt_cli login user "fwadmin" --format json | jq -r '.sid')

mgmt_cli --session-id "$SID" vsx-provisioning-tool operation "add-vd" add-vd-params.vd "VFW1" add-vd-params.vsx-name "VSX-GATEWAY" add-vd-params.type "vs" add-vd-params.ipv4-instances "2" add-vd-params.ipv4-address "192.168.103.1" add-vd-params.interfaces.1.name "bond1.103" add-vd-params.interfaces.1.ipv4-address "192.168.103.1/24" -s sid.txt

mgmt_cli publish –s sid.txt

mgmt_cli logout –s sid.txt&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;EDIT:&lt;/P&gt;
&lt;P&gt;Using &lt;STRONG&gt;-r true&lt;/STRONG&gt; can be useful sometimes but maybe not for VSX tasks and other big jobs.&lt;/P&gt;
&lt;P&gt;Better to try to stick to best practices and work in proper authenticated sessions.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;API reference docs example:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/#cli/vsx-provisioning-tool~v2%20" target="_blank" rel="noopener"&gt;https://sc1.checkpoint.com/documents/latest/APIs/#cli/vsx-provisioning-tool~v2%20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;H4&gt;vsx-provisioning-tool add-vd&lt;/H4&gt;
&lt;DIV class="collapse in"&gt;
&lt;P&gt;Add a new Virtual System to an existing VSX cluster&lt;/P&gt;
&lt;P class="example-sec-title"&gt;Command&lt;/P&gt;
&lt;PRE class="code"&gt;mgmt_cli vsx-provisioning-tool operation "add-vd" add-vd-params.vd "NEW_VD" add-vd-params.vsx-name "VSX_CLUSTER" add-vd-params.type "vs" add-vd-params.ipv4-instances "2" add-vd-params.ipv4-address "192.168.1.1" add-vd-params.interfaces.1.name "eth1" add-vd-params.interfaces.1.ipv4-address "192.168.1.1/24"  --format json
 • "--format json" is optional. By default the output is presented in plain text.&lt;/PRE&gt;
&lt;/DIV&gt;</description>
      <pubDate>Mon, 19 Jan 2026 17:43:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267811#M9353</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2026-01-19T17:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli vsx_provisioning_tool failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267821#M9354</link>
      <description>&lt;P&gt;If the API command fails you could test using the &lt;STRONG&gt;vsx_provisioning_tool&lt;/STRONG&gt; directly on the command line of the MDS.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_VSX_AdminGuide/Content/Topics-VSXG/CLI/vsx_provisioning_tool.htm?tocpath=Command%20Line%20Reference%7Cvsx_provisioning_tool%7C_____0" target="_blank"&gt;https://sc1.checkpoint.com/documents/R82/WebAdminGuides/EN/CP_R82_VSX_AdminGuide/Content/Topics-VSXG/CLI/vsx_provisioning_tool.htm?tocpath=Command%20Line%20Reference%7Cvsx_provisioning_tool%7C_____0&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV id="mc-main-content" role="main"&gt;
&lt;DIV class="No_Page_Break_Inside"&gt;
&lt;P class="Procedure_Heading"&gt;&lt;STRONG&gt;Example 2&lt;/STRONG&gt;&lt;/P&gt;
&lt;P&gt;Run the tool on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_mds variable"&gt;Multi-Domain Server&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;in the context of the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_dms variable"&gt;Domain Management Server&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;MyDomain&lt;/CODE&gt;.&lt;/P&gt;
&lt;P&gt;Create a new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_vsx_vs variable"&gt;Virtual System&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;VS1&lt;/CODE&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;on the&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_vsx_cl variable"&gt;VSX Cluster&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object called&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;VSXCluster1&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;In the new&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN class="mc-variable Vars_BladesFeatures.tp_vsx_vs variable"&gt;Virtual System&lt;/SPAN&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;object, on the interface&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;CODE&gt;eth4&lt;/CODE&gt;, add a VLAN interface with VLAN ID 100 and IPv4 address 1.1.1.1/24.&lt;/P&gt;
&lt;TABLE class="TableStyle-TP_Table_Code_with_Small_Font_Size_in_PDF_70percent" cellspacing="0"&gt;
&lt;TBODY&gt;
&lt;TR class="TableStyle-TP_Table_Code_with_Small_Font_Size_in_PDF_70percent-Body-Row"&gt;
&lt;TD class="TableStyle-TP_Table_Code_with_Small_Font_Size_in_PDF_70percent-BodyD--Row"&gt;
&lt;P&gt;&lt;CODE&gt;mdsenv MyDomain&lt;/CODE&gt;&lt;/P&gt;
&lt;P&gt;&lt;CODE&gt;vsx_provisioning_tool -s localhost -u admin -p mypassword -o add vd name VS1 vsx VSXCluster1, add interface name eth4.100 ip 1.1.1.1/24&lt;/CODE&gt;&lt;/P&gt;
&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 18:08:37 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267821#M9354</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2026-01-19T18:08:37Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli vsx_provisioning_tool failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267849#M9355</link>
      <description>&lt;P&gt;Hey&amp;nbsp;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/18248"&gt;@Don_Paterson&lt;/a&gt;.&lt;/P&gt;
&lt;P&gt;Thanks for the info! I had to tweak the syntax ever so slightly, but you've put me on the right track and I can now create VS's via the API - so thank you!&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":smiling_face_with_smiling_eyes:"&gt;😊&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;FYI - this was the tweak I made:&lt;/P&gt;
&lt;P&gt;SID=$(mgmt_cli login user "fwadmin" -d "$DOMAIN" --format json | jq -r '.sid')&lt;/P&gt;
&lt;P&gt;mgmt_cli --session-id "$SID" - "$DOMAIN" vsx-provisioning-tool operation "add-vd" add-vd-params.vd "VFW1" add-vd-params.vsx-name "VSX-GATEWAY" add-vd-params.type "vs" add-vd-params.ipv4-instances "2" add-vd-params.ipv4-address "192.168.103.1" add-vd-params.interfaces.1.name "bond1.103" add-vd-params.interfaces.1.ipv4-address "192.168.103.1/24" -s sid.txt&lt;/P&gt;
&lt;P&gt;mgmt_cli logout --session-id "$SID"&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 19:22:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267849#M9355</guid>
      <dc:creator>AaronCP</dc:creator>
      <dc:date>2026-01-19T19:22:59Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli vsx_provisioning_tool failing</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267857#M9356</link>
      <description>&lt;P&gt;Hey Aaron,&lt;/P&gt;
&lt;P&gt;Excellent.&amp;nbsp;You're welcome.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks for the feedback.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;One small thing. It's my mistake - You can take out the last part, -s sid.txt.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;That's only for when the SID is saved to file.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;All the best,&lt;/P&gt;
&lt;P&gt;Don&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jan 2026 23:04:53 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-vsx-provisioning-tool-failing/m-p/267857#M9356</guid>
      <dc:creator>Don_Paterson</dc:creator>
      <dc:date>2026-01-19T23:04:53Z</dc:date>
    </item>
  </channel>
</rss>

