<?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: adding network object with mgmt_cli batch CSV file in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66476#M4092</link>
    <description>what's the command syntax which you use to do batch work?</description>
    <pubDate>Mon, 04 Nov 2019 08:24:32 GMT</pubDate>
    <dc:creator>Martin_Valenta</dc:creator>
    <dc:date>2019-11-04T08:24:32Z</dc:date>
    <item>
      <title>adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66473#M4090</link>
      <description>&lt;P&gt;i try to add number of network object with cli tool but i received an error.&lt;/P&gt;&lt;P&gt;i followed&amp;nbsp;sk113078 and did exactly the same and received the error&lt;SPAN&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Line 2: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [name]"&lt;/P&gt;&lt;P&gt;Line 3: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [name]"&lt;/P&gt;&lt;P&gt;Line 4: code: "generic_err_invalid_parameter_name"&lt;BR /&gt;message: "Unrecognized parameter [name]"&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Executed command failed. Changes are discarded.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the csv is:&lt;/P&gt;&lt;P&gt;name,subnet,subnet-mask&lt;BR /&gt;network1,10.10.10.0,255.255.255.0&lt;BR /&gt;network2,20.20.20.0,255.255.255.0&lt;BR /&gt;network3,30.30.30.0,255.255.255.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;i have R80.20 take: 103&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 08:07:47 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66473#M4090</guid>
      <dc:creator>israelgl</dc:creator>
      <dc:date>2019-11-04T08:07:47Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66476#M4092</link>
      <description>what's the command syntax which you use to do batch work?</description>
      <pubDate>Mon, 04 Nov 2019 08:24:32 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66476#M4092</guid>
      <dc:creator>Martin_Valenta</dc:creator>
      <dc:date>2019-11-04T08:24:32Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66499#M4093</link>
      <description>&lt;P&gt;mgmt_cli add network --batch network.csv&lt;/P&gt;</description>
      <pubDate>Mon, 04 Nov 2019 12:06:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66499#M4093</guid>
      <dc:creator>israelgl</dc:creator>
      <dc:date>2019-11-04T12:06:49Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66504#M4094</link>
      <description>Sounds like a bug to be honest. Without being able to test it on my own it seems like you specified everything in the correct way. Could you try to run the same command with "--version 1.1" in the end to force the API down to version 1.1? I used this command before and I'm quite sure that it worked. Also; do you experience this issue only via the batch mode or also via "manually" creating one network with the specified parameters?</description>
      <pubDate>Mon, 04 Nov 2019 13:01:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66504#M4094</guid>
      <dc:creator>Maik</dc:creator>
      <dc:date>2019-11-04T13:01:02Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66512#M4095</link>
      <description>This seems like a bug to me.&lt;BR /&gt;In R80.30, the above works using both the 1.5 (R80.30) and 1.3 (R80.20) versions of the API. &lt;BR /&gt;Suggest opening a TAC case.</description>
      <pubDate>Mon, 04 Nov 2019 14:52:51 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66512#M4095</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-11-04T14:52:51Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66559#M4096</link>
      <description>&lt;P&gt;i tried with "--version 1.1", same error.&lt;/P&gt;&lt;P&gt;manually adding with "mgmt_cli", works fine.&lt;/P&gt;</description>
      <pubDate>Tue, 05 Nov 2019 07:15:08 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/66559#M4096</guid>
      <dc:creator>israelgl</dc:creator>
      <dc:date>2019-11-05T07:15:08Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/75447#M4395</link>
      <description>&lt;P&gt;I had the same issue on R80.10 with --version 1.1 and on R80.30 with --version 1.1, 1.5, 1.6&lt;/P&gt;&lt;P&gt;Constructing the command and "eval"ing it solved it:&lt;/P&gt;&lt;P&gt;&amp;lt;code&amp;gt;&lt;/P&gt;&lt;P&gt;#!/bin/bash&lt;/P&gt;&lt;P&gt;(...)&lt;/P&gt;&lt;P&gt;COMMAND="mgmt_cli add network (...)"&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;eval&lt;/STRONG&gt; $COMMAND&lt;/P&gt;&lt;P&gt;&amp;lt;/code&amp;gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 17 Feb 2020 10:45:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/75447#M4395</guid>
      <dc:creator>FMU</dc:creator>
      <dc:date>2020-02-17T10:45:33Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/75481#M4397</link>
      <description>The actual problem here was that you did not use the full path for the csv file. A very common error.</description>
      <pubDate>Mon, 17 Feb 2020 13:21:40 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/75481#M4397</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2020-02-17T13:21:40Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/136183#M6497</link>
      <description>&lt;P&gt;I think, you create the file on a windows OS. I have the same issue when i create a file on a windows os and then put the file on the&amp;nbsp; management server. To bypass this problem i copy the text on a clippoard and then i create a file by utility vi on the management server then i do a paste in the file (by vi). Maybe you can use the utility dos2unix on the server management to convert the windows file ?&lt;/P&gt;</description>
      <pubDate>Mon, 13 Dec 2021 15:49:23 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/136183#M6497</guid>
      <dc:creator>LaurentFr</dc:creator>
      <dc:date>2021-12-13T15:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/136240#M6499</link>
      <description>&lt;P&gt;I just used WinSCP and changed the file encoding.&lt;/P&gt;&lt;P&gt;It fixed the problem for me.&lt;/P&gt;</description>
      <pubDate>Tue, 14 Dec 2021 07:28:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/136240#M6499</guid>
      <dc:creator>israelgl</dc:creator>
      <dc:date>2021-12-14T07:28:34Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/160093#M7216</link>
      <description>&lt;P&gt;Can you please elaborate the solution&amp;nbsp;&lt;/P&gt;&lt;P&gt;What exactly you did to resolve this&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 20 Oct 2022 21:34:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/160093#M7216</guid>
      <dc:creator>anandkochar123</dc:creator>
      <dc:date>2022-10-20T21:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/178011#M7623</link>
      <description>&lt;P&gt;Checked on 81.10&lt;/P&gt;&lt;P&gt;Example:&lt;BR /&gt;name,ip-address,color,comments&lt;BR /&gt;1.1.1.1,1.1.1.1,blue,test&lt;/P&gt;&lt;P&gt;UTF-8-BOM&lt;/P&gt;&lt;P&gt;cd /tmp&lt;BR /&gt;cat &amp;gt; test.csv&lt;BR /&gt;CTRL+C&lt;BR /&gt;vi test.csv&lt;BR /&gt;Press I&lt;BR /&gt;Copy your list of hosts and press ESC, then :wq&lt;BR /&gt;Checking the file cat test.csv&lt;BR /&gt;If everything is ok, publish&lt;BR /&gt;mgmt_cli add host --batch test.csv&lt;/P&gt;&lt;P&gt;P.S. Requires UTF-8-BOM encoding (at least on 81.10)&lt;BR /&gt;and do not use name/host in the file name.&lt;/P&gt;&lt;P&gt;P.S.S. if you need to add a network, then the subnet and mask-length columns and the publish command mgmt_cli add network --batch test.csv are added&lt;/P&gt;</description>
      <pubDate>Thu, 13 Apr 2023 12:23:31 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/178011#M7623</guid>
      <dc:creator>Yar_Ko</dc:creator>
      <dc:date>2023-04-13T12:23:31Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/178203#M7625</link>
      <description>&lt;P&gt;In your example you use 1.1.1.1 as the name, you're not allowed to use numbers to start the name with. Minor detail.&lt;/P&gt;</description>
      <pubDate>Mon, 17 Apr 2023 04:38:15 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/178203#M7625</guid>
      <dc:creator>Maarten_Sjouw</dc:creator>
      <dc:date>2023-04-17T04:38:15Z</dc:date>
    </item>
    <item>
      <title>Re: adding network object with mgmt_cli batch CSV file</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/204859#M8332</link>
      <description>&lt;P&gt;Logged in just to say thank you for this!&lt;/P&gt;</description>
      <pubDate>Fri, 02 Feb 2024 04:42:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/adding-network-object-with-mgmt-cli-batch-CSV-file/m-p/204859#M8332</guid>
      <dc:creator>vishardb</dc:creator>
      <dc:date>2024-02-02T04:42:03Z</dc:date>
    </item>
  </channel>
</rss>

