<?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 add host --batch fails with &amp;quot;Unrecognized parameter [name]&amp;quot; in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271119#M9388</link>
    <description>&lt;P&gt;Good Day All,&lt;/P&gt;&lt;P&gt;THANK YOU everyone for your help/suggestions/time.&amp;nbsp; dos2unix got me over my hurdle (thx Alex).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TERMINAL EXPERIENCE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[Expert@-CPM:0]# md5sum shodan-hosts.csv&lt;BR /&gt;e1a4f5569938eccaebfee0af07c058a5 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# ls -l shodan-hosts.csv&lt;BR /&gt;-rwx------ 1 admin users 3028 Feb 16 10:11 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# dos2unix shodan-hosts.csv&lt;BR /&gt;dos2unix: converting file shodan-hosts.csv to Unix format ...&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# ls -l shodan-hosts.csv&lt;BR /&gt;-rwx------ 1 admin users 2944 Feb 17 07:55 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# md5sum shodan-hosts.csv&lt;BR /&gt;a9c350270a79a3e247bdeb3f193b73d5 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# mgmt_cli add host --batch ./shodan-hosts.csv&lt;BR /&gt;Username:&amp;nbsp;&lt;BR /&gt;Password:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [07:58:25] 17/2/2026&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" in progress (10%)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [07:58:35] 17/2/2026&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" succeeded (100%)&lt;BR /&gt;[Expert@-CPM:0]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take Care&lt;/P&gt;</description>
    <pubDate>Tue, 17 Feb 2026 13:13:41 GMT</pubDate>
    <dc:creator>Slip-Rizzo</dc:creator>
    <dc:date>2026-02-17T13:13:41Z</dc:date>
    <item>
      <title>mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271026#M9379</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;First post, pardon my ignorance.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENVIRONMENT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;FW1 build number:&lt;BR /&gt;This is Check Point Security Management Server R82 - Build 009&lt;BR /&gt;This is Check Point's software version R82 - Build 013&lt;BR /&gt;[SecurePlatform]&lt;BR /&gt;HOTFIX_GAIA_API_AUTOUPDATE&lt;BR /&gt;HOTFIX_R82_JUMBO_HF_MAIN Take: 60&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;WHAT:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I am trying to use &lt;EM&gt;mgmt_cli add host --batch&lt;/EM&gt; to create 80 objects that are Shodan scanners.&lt;/P&gt;&lt;P&gt;I created a CSV files that looks like this:&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;# head shodan-hosts.csv&lt;BR /&gt;name,ip-address,comments&lt;BR /&gt;shodan-01,64.225.74.178,20260216&lt;BR /&gt;shodan-02,64.226.86.7,20260216&lt;BR /&gt;shodan-03,64.227.90.185,20260216&lt;BR /&gt;shodan-04,66.240.192.138,20260216&lt;BR /&gt;shodan-05,66.240.205.34,20260216&lt;BR /&gt;shodan-06,66.240.219.133,20260216&lt;BR /&gt;shodan-07,66.240.219.146,20260216&lt;BR /&gt;shodan-08,66.240.236.119,20260216&lt;BR /&gt;shodan-09,71.6.135.131,20260216&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TERMINAL EXPERIENCE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;mgmt_cli add host --batch /tmp/shodan-hosts.csv&lt;BR /&gt;Username:&amp;nbsp;&lt;BR /&gt;Password:&lt;BR /&gt;Line 2: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [name]"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Line 3: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [name]"&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;Line 4: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [name]"&lt;/P&gt;&lt;P&gt;... and so on for all 81 lines.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TSHOOTING I HAVE DONE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;I initially uploaded my CSV.&amp;nbsp; I also used the SMS's vi to create the file on the server. No luck.&lt;/P&gt;&lt;P&gt;vi set list to show any odd whitespace. All good.&lt;/P&gt;&lt;P&gt;added a blank line at the end of the csv as shown in some examples (e.g., &lt;A href="https://support.checkpoint.com/results/sk/sk113078" target="_blank"&gt;https://support.checkpoint.com/results/sk/sk113078&lt;/A&gt;).&amp;nbsp; No luck.&lt;/P&gt;&lt;P&gt;Read/watched resources and I am not seeing what I am missing.&lt;/P&gt;&lt;P&gt;Assistance appreciated, thank you!&lt;/P&gt;</description>
      <pubDate>Mon, 16 Feb 2026 16:25:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271026#M9379</guid>
      <dc:creator>Slip-Rizzo</dc:creator>
      <dc:date>2026-02-16T16:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271096#M9380</link>
      <description>&lt;P&gt;I think you are missing quote marks for the comments string. Try adding a simple host, not from CSV, but by manually typing the parameters. It will be clearer that's going wrong. Also, consult with the API guide:&amp;nbsp;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-host~v2.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/?#cli/add-host~v2.1%20&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:35:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271096#M9380</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2026-02-17T11:35:18Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271097#M9381</link>
      <description>&lt;P&gt;Interesting:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@r82_10-lab-mgmt:0]# cat tst.txt
name,ip-address,comments
shodan-01,64.225.74.178,20260216
shodan-02,64.226.86.7,20260216
[Expert@r82_10-lab-mgmt:0]# mgmt_cli add host -d CMA_ZWO --batch tst.txt
Username: admin
Password:


---------------------------------------------
Time: [12:44:32] 17/2/2026
---------------------------------------------
"Publish operation"  succeeded  (100%)
&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt; mgmt_cli -r true show  host -d CMA_ZWO name shodan-01
uid: "3a49859d-0be6-4134-92dc-41e739620a83"
name: "shodan-01"
type: "host"
domain:
  uid: "044c9978-2152-47c8-96a6-93ca58e7c17a"
  name: "CMA_ZWO"
  domain-type: "domain"
ipv4-address: "64.225.74.178"
&lt;/LI-CODE&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:46:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271097#M9381</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-17T11:46:49Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271098#M9382</link>
      <description>&lt;P&gt;dos2unix&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:54:30 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271098#M9382</guid>
      <dc:creator>Alex-</dc:creator>
      <dc:date>2026-02-17T11:54:30Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271099#M9383</link>
      <description>&lt;P&gt;Well, it was a guess, and I missed. File format, maybe?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:56:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271099#M9383</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2026-02-17T11:56:29Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271100#M9384</link>
      <description>&lt;P&gt;On my end it worked even without dos2unix. Just copied the txt from here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 11:56:59 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271100#M9384</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-17T11:56:59Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271101#M9385</link>
      <description>&lt;P&gt;Where did you create your txt file? If on the host, dos2unix is not required. I guess that CSV was copied from a Windows machine, then format adjustment is highly recommended&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 12:01:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271101#M9385</guid>
      <dc:creator>_Val_</dc:creator>
      <dc:date>2026-02-17T12:01:58Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271103#M9386</link>
      <description>&lt;P&gt;What do you mean with file format?&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 12:06:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271103#M9386</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-17T12:06:10Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271104#M9387</link>
      <description>&lt;P&gt;I copied it from this thread here &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;BR /&gt;But yes author should try dos2unix.&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 12:07:18 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271104#M9387</guid>
      <dc:creator>Vincent_Bacher</dc:creator>
      <dc:date>2026-02-17T12:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: mgmt_cli add host --batch fails with "Unrecognized parameter [name]"</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271119#M9388</link>
      <description>&lt;P&gt;Good Day All,&lt;/P&gt;&lt;P&gt;THANK YOU everyone for your help/suggestions/time.&amp;nbsp; dos2unix got me over my hurdle (thx Alex).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;TERMINAL EXPERIENCE:&lt;/STRONG&gt;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;[Expert@-CPM:0]# md5sum shodan-hosts.csv&lt;BR /&gt;e1a4f5569938eccaebfee0af07c058a5 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# ls -l shodan-hosts.csv&lt;BR /&gt;-rwx------ 1 admin users 3028 Feb 16 10:11 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# dos2unix shodan-hosts.csv&lt;BR /&gt;dos2unix: converting file shodan-hosts.csv to Unix format ...&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# ls -l shodan-hosts.csv&lt;BR /&gt;-rwx------ 1 admin users 2944 Feb 17 07:55 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# md5sum shodan-hosts.csv&lt;BR /&gt;a9c350270a79a3e247bdeb3f193b73d5 shodan-hosts.csv&lt;BR /&gt;[Expert@-CPM:0]#&lt;BR /&gt;[Expert@-CPM:0]# mgmt_cli add host --batch ./shodan-hosts.csv&lt;BR /&gt;Username:&amp;nbsp;&lt;BR /&gt;Password:&amp;nbsp;&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [07:58:25] 17/2/2026&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" in progress (10%)&lt;/P&gt;&lt;P class="lia-indent-padding-left-30px"&gt;&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;Time: [07:58:35] 17/2/2026&lt;BR /&gt;---------------------------------------------&lt;BR /&gt;"Publish operation" succeeded (100%)&lt;BR /&gt;[Expert@-CPM:0]#&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Take Care&lt;/P&gt;</description>
      <pubDate>Tue, 17 Feb 2026 13:13:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/mgmt-cli-add-host-batch-fails-with-quot-Unrecognized-parameter/m-p/271119#M9388</guid>
      <dc:creator>Slip-Rizzo</dc:creator>
      <dc:date>2026-02-17T13:13:41Z</dc:date>
    </item>
  </channel>
</rss>

