<?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: Changing NAT settings via API in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7705#M641</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it was two things&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;TRUE to lower case &amp;nbsp;(thanks Andrew)&lt;/P&gt;&lt;P&gt;2. my header columns in CSV had an extra space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all the responses&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 20 Oct 2017 12:51:34 GMT</pubDate>
    <dc:creator>Neil_ZInk</dc:creator>
    <dc:date>2017-10-20T12:51:34Z</dc:date>
    <item>
      <title>Changing NAT settings via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7701#M637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear CheckMates&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to batch out large number of NAT changes on existing objects.&amp;nbsp; CLI command looks like:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;set host name &lt;STRONG&gt;"NatTest"&lt;/STRONG&gt; nat-settings.auto-rule "true" nat-settings.ip-address &lt;STRONG&gt;"X.X.X.X" &lt;/STRONG&gt;nat-settings.method "hide" nat-settings.install-on &lt;STRONG&gt;"checkPointCluster"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I tried using Batch method with following CSV.&lt;/P&gt;&lt;P&gt;name,nat-settings.auto-rule ,nat-settings.ip-address ,nat-settings.method ,nat-settings.install-on&lt;/P&gt;&lt;P&gt;NatTest,TRUE,x.x.x.x,hide,checkPointCluster&lt;/P&gt;&lt;P&gt;The Batch method did not like NAT settings:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;C:\Program Files (x86)\CheckPoint\SmartConsole\R80.10\PROGRAM&amp;gt;mgmt_cli.exe -m x.x.x.x -d x.x.x.x set host --batch \scripts\nattest.csv --ignore-errors false --debug on&lt;/P&gt;&lt;P&gt;Username:&lt;/P&gt;&lt;P&gt;Password:&lt;/P&gt;&lt;P&gt;Line 2: code: "generic_err_invalid_parameter"&lt;/P&gt;&lt;P&gt;message: "Parameter [auto-rule] value is not valid (full path: nat-settings.auto-rule)"&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Can you make these kinds of changes via batch mode?&amp;nbsp; If not, is there another method?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:19:55 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7701#M637</guid>
      <dc:creator>Neil_ZInk</dc:creator>
      <dc:date>2017-10-19T14:19:55Z</dc:date>
    </item>
    <item>
      <title>Re: Changing NAT settings via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7702#M638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible, that the reason for failure is that these rules are automatically created? If this is the case, then you'll have to change the object properties, rather than Nat rules.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:31:10 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7702#M638</guid>
      <dc:creator>Vladimir</dc:creator>
      <dc:date>2017-10-19T14:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Changing NAT settings via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7703#M639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This CLI command works:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;set host name&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #333333; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;"NatTest"&lt;/STRONG&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;nat-settings.auto-rule "true" nat-settings.ip-address&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #333333; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;"X.X.X.X"&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; background-color: #ffffff;"&gt;nat-settings.method "hide" nat-settings.install-on&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #333333; background-color: #ffffff; border: 0px; font-weight: bold;"&gt;"checkPointCluster"&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the batch process does not.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 14:46:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7703#M639</guid>
      <dc:creator>Neil_ZInk</dc:creator>
      <dc:date>2017-10-19T14:46:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing NAT settings via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7704#M640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try changing the "TRUE" in your CSV to lowercase.&lt;BR /&gt;I was able to replicate the issue and switching to lowercase seems to have fixed it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-Andrew&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 19 Oct 2017 18:26:39 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7704#M640</guid>
      <dc:creator>Andrew_Gillmore</dc:creator>
      <dc:date>2017-10-19T18:26:39Z</dc:date>
    </item>
    <item>
      <title>Re: Changing NAT settings via API</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7705#M641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it was two things&lt;/P&gt;&lt;P&gt;1. &amp;nbsp;TRUE to lower case &amp;nbsp;(thanks Andrew)&lt;/P&gt;&lt;P&gt;2. my header columns in CSV had an extra space.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for all the responses&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 20 Oct 2017 12:51:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/Changing-NAT-settings-via-API/m-p/7705#M641</guid>
      <dc:creator>Neil_ZInk</dc:creator>
      <dc:date>2017-10-20T12:51:34Z</dc:date>
    </item>
  </channel>
</rss>

