<?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: CLI Help in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7854#M651</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the link... Unfortunately my current access is RO for all FW's we manage and cant get to expert mode to be able to execute those commands/scripts in the links shared. Will have to request our service provider for what i am after.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 04 Jan 2019 00:28:04 GMT</pubDate>
    <dc:creator>Manny_Mekala</dc:creator>
    <dc:date>2019-01-04T00:28:04Z</dc:date>
    <item>
      <title>CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7848#M645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hey everybody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am new to Checkpoint CLI and I want to organize and view certain things.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How would I be able to view all network objects, rules, etc?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess what commands would I use?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 15:41:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7848#M645</guid>
      <dc:creator>Edwin_Graham</dc:creator>
      <dc:date>2017-10-23T15:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7849#M646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The answer is largely version dependent.&lt;/P&gt;&lt;P&gt;If your management is R80+, then I'd start with the mgmt_cli tool, documented here:&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/introduction~v1.1" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/introduction~v1.1"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you're using R77.30 and earlier, then I'd start with the dbedit command, documented here:&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/R77/CP_R77_CLI_ReferenceGuide_WebAdmin/html_frameset.htm" title="https://sc1.checkpoint.com/documents/R77/CP_R77_CLI_ReferenceGuide_WebAdmin/html_frameset.htm"&gt;Command Line Interface R77&lt;/A&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I would also have a look through the &lt;A href="https://community.checkpoint.com/space/2003"&gt;Developers (Code Hub)&lt;/A&gt;‌ space, which has a lot of discussion on the API/CLI.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 23 Oct 2017 21:03:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7849#M646</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2017-10-23T21:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7850#M647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the checkpoint equal-ant command to cisco command show running-config ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 04:17:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7850#M647</guid>
      <dc:creator>Prashan_Attanay</dc:creator>
      <dc:date>2017-10-25T04:17:29Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7851#M648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;From an OS perspective (network/routing), you can use the the clish command &lt;STRONG&gt;show configuration&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;Depending on the version, you may not be able to use this (as is) to recreate the running configuration.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For the security gateway functions, there is no equivalent to show running-config on Cisco IOS.&lt;/P&gt;&lt;P&gt;This configuration is only stored on the local gateway in compiled form and cannot easily be dumped.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Oct 2017 11:16:42 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7851#M648</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2017-10-25T11:16:42Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7852#M649</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Dameon,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We are on R80+ for Mgmt and the Mgmt API reference you have pointed doesn't really help in listing all network objects...There is a limit on the number of items listed 0-500 ad even then the output doesnt list the objects and their members. it only displays the object names which we can export form smart console\object explorer anyways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 01:47:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7852#M649</guid>
      <dc:creator>Manny_Mekala</dc:creator>
      <dc:date>2019-01-02T01:47:35Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7853#M650</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes, the API has a limit to the number of items that can be output at once.&lt;/P&gt;&lt;P&gt;You would need to iterate with multiple API calls using the offset parameter to get the next 500 objects.&lt;/P&gt;&lt;P&gt;You also have to request the correct detail level in the API and correctly parse the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One example that exports various objects in CSV format:&amp;nbsp;&lt;A href="https://community.checkpoint.com/docs/DOC-1911"&gt;CLI API Example for exporting, importing, and deleting different objects using CSV files (v 00.29.02 and later)&lt;/A&gt;‌&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Jan 2019 05:19:41 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7853#M650</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-01-02T05:19:41Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7854#M651</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you for the link... Unfortunately my current access is RO for all FW's we manage and cant get to expert mode to be able to execute those commands/scripts in the links shared. Will have to request our service provider for what i am after.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 00:28:04 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7854#M651</guid>
      <dc:creator>Manny_Mekala</dc:creator>
      <dc:date>2019-01-04T00:28:04Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7855#M652</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can do this with the API, but you're going to have to make successive API calls, like I said.&lt;/P&gt;&lt;P&gt;I managed to do the following from the CLI of a different Linux host (not the management server) running bash.&lt;/P&gt;&lt;P&gt;This assumes that "curl" and "jq" are installed, which are fairly common utilities (curl fetches web content, jq parses JSON output).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;SID=`curl --silent --insecure -XPOST "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.6.5.250/web_api/v1.3/login" rel="nofollow"&gt;https://10.6.5.250/web_api/v1.3/login&lt;/A&gt;&lt;SPAN&gt;" --data-binary "{\"user\": \"aa\", \"password\": \"aaaa\" }" -H "Content-Type: application/json" | jq -r .sid`&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;curl --silent --insecure -XPOST &lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.6.5.250/web_api/v1.3/show-hosts" rel="nofollow"&gt;https://10.6.5.250/web_api/v1.3/show-hosts&lt;/A&gt;&lt;SPAN&gt; --data-binary "{ \"offset\": 0, \"limit\": 500, \"details-level\": \"full\" }" -H "Content-Type: application/json" -H "X-chkp-sid: $SID" | jq -r '.objects[] | .name + "," + ."ipv4-address"'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;SPAN&gt;curl --silent --insecure -XPOST "&lt;/SPAN&gt;&lt;A class="jive-link-external-small" href="https://10.6.5.250/web_api/v1.3logout" rel="nofollow"&gt;https://10.6.5.250/web_api/v1.3logout&lt;/A&gt;&lt;SPAN&gt;" --data-binary "{}" -H "Content-Type: application/json" -H "X-chkp-sid: $SID"&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The first command (starting with SID) does a login to the API with username aa / password aaaa, obtaining a session ID, and storing it in the shell variable SID.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The second command calls curl and will fetch the first 500 host objects from the management and output the name and IPv4 address of the object in a comma separated list.&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;SPAN class=""&gt;You will need to repeat this command with different values for offset until you get all the objects.&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;You will also need similar commands to get other object types (e.g. networks, groups).&lt;/LI&gt;&lt;LI&gt;This is where the API documentation will help you:&amp;nbsp;&lt;A class="link-titled" href="https://sc1.checkpoint.com/documents/latest/APIs/index.html" title="https://sc1.checkpoint.com/documents/latest/APIs/index.html"&gt;Check Point - Management API reference&lt;/A&gt;&amp;nbsp;&lt;/LI&gt;&lt;/UL&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;The third command (also a curl command) issues a logout command, invalidating the SID.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;There are probably programmatic ways to automate this further, but that should get you started.&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P class=""&gt;&lt;SPAN class=""&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Jan 2019 04:34:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/7855#M652</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-01-04T04:34:02Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/52217#M3386</link>
      <description>&lt;P&gt;Hi PhoneBoy,&lt;/P&gt;&lt;P&gt;Finally gave this a try, Looks like having only 'Read Only' access isn't helping. I kept getting 'Null SID' error and tested in another tool (Postman) only to figure out that i do not have access to login via API.&lt;/P&gt;&lt;P&gt;Is there a tool in pipeline to allow read only users have access to take information dumps from the Management server, similar to the old 'Web Visualisation tool'?&lt;/P&gt;</description>
      <pubDate>Tue, 30 Apr 2019 04:32:27 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/52217#M3386</guid>
      <dc:creator>Manny_Mekala</dc:creator>
      <dc:date>2019-04-30T04:32:27Z</dc:date>
    </item>
    <item>
      <title>R77.30 export all rules into excel.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61338#M3825</link>
      <description>&lt;P&gt;Phoneboy.&amp;nbsp; Hope all is well.&amp;nbsp; Can you direct an old networking dude, no scripting background on how to export all the rules into a spreadsheet that I can see source, dest and ports?&amp;nbsp; I need to upgrade and I want all of the rules sets in had to check one by one afterwards.&amp;nbsp; Nothing else matters as far as content...just what I have noted above.&amp;nbsp; Many Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 16:53:21 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61338#M3825</guid>
      <dc:creator>dannyclee</dc:creator>
      <dc:date>2019-08-27T16:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: CLI Help</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61342#M3826</link>
      <description>There is a specific permission for API access.&lt;BR /&gt;If your permission profile has this enabled, you will have API access consistent with the other permissions in the permissions profile.</description>
      <pubDate>Tue, 27 Aug 2019 20:56:02 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61342#M3826</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-08-27T20:56:02Z</dc:date>
    </item>
    <item>
      <title>Re: R77.30 export all rules into excel.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61343#M3827</link>
      <description>odump/ofiller.&lt;BR /&gt;&lt;A href="https://community.checkpoint.com/t5/Policy-Management/Exporting-Importing-R77-x-and-Earlier-Configuration-odumper-and/m-p/51536" target="_blank"&gt;https://community.checkpoint.com/t5/Policy-Management/Exporting-Importing-R77-x-and-Earlier-Configuration-odumper-and/m-p/51536&lt;/A&gt;</description>
      <pubDate>Tue, 27 Aug 2019 20:57:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61343#M3827</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2019-08-27T20:57:57Z</dc:date>
    </item>
    <item>
      <title>Re: R77.30 export all rules into excel.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61346#M3828</link>
      <description>&lt;P&gt;Personally I prefer &lt;A href="http://supportcontent.checkpoint.com/solutions?id=sk64501" target="_self"&gt;WebVis R77.x&lt;/A&gt; to export all rules, objects and services into either a single html page (cpdb2html) or xml files (cpdb2web). Should be easy to copy the rules into Excel from HTML.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 21:06:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61346#M3828</guid>
      <dc:creator>Danny</dc:creator>
      <dc:date>2019-08-27T21:06:58Z</dc:date>
    </item>
    <item>
      <title>Re: R77.30 export all rules into excel.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61348#M3829</link>
      <description>&lt;P&gt;Thanks Danny how does one use this tool?&amp;nbsp; I believe I have the tool but I have never used it.&amp;nbsp; Thanks Danny.&lt;/P&gt;</description>
      <pubDate>Tue, 27 Aug 2019 21:29:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61348#M3829</guid>
      <dc:creator>dannyclee</dc:creator>
      <dc:date>2019-08-27T21:29:29Z</dc:date>
    </item>
    <item>
      <title>Re: R77.30 export all rules into excel.</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61388#M3832</link>
      <description>&lt;P&gt;The old confwiz tool might be another viable option:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://downloads.checkpoint.com/dc//filedetails.htm?ID=12945&amp;amp;product=Confwiz&amp;amp;version=1007&amp;amp;os=1074&amp;amp;appID=4" target="_blank"&gt;https://downloads.checkpoint.com/dc//filedetails.htm?ID=12945&amp;amp;product=Confwiz&amp;amp;version=1007&amp;amp;os=1074&amp;amp;appID=4&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Aug 2019 12:17:12 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CLI-Help/m-p/61388#M3832</guid>
      <dc:creator>Timothy_Hall</dc:creator>
      <dc:date>2019-08-28T12:17:12Z</dc:date>
    </item>
  </channel>
</rss>

