<?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: SmartConsole CLI in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140258#M6578</link>
    <description>&lt;P&gt;The CLI in SmartConsole doesn't support pipes (incidentally, nor does clish). It feeds the full command you enter to something a little like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -s session.txt %&lt;/LI-CODE&gt;
&lt;P&gt;With the full text you entered replacing the %.&lt;/P&gt;</description>
    <pubDate>Wed, 02 Feb 2022 15:22:43 GMT</pubDate>
    <dc:creator>Bob_Zimmerman</dc:creator>
    <dc:date>2022-02-02T15:22:43Z</dc:date>
    <item>
      <title>SmartConsole CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140217#M6577</link>
      <description>&lt;P&gt;Hello Everyone!&lt;/P&gt;&lt;P&gt;I'm trying to export groups from my SmartConsole to CSV file.&lt;/P&gt;&lt;P&gt;I ran this script via expert mode and it worked correctly:&lt;/P&gt;&lt;P&gt;mgmt_cli -r true show-group name "My_Group" details-level full -f json | jq '.members[] | [.name, ."ipv4-address", .comments] |@csv'&lt;/P&gt;&lt;P&gt;But when I'm trying to run this script via SmartConsole CLI it's failing.&lt;/P&gt;&lt;P&gt;This is the SmartConsole CLI I'm trying to run:&lt;/P&gt;&lt;P&gt;show-group name "My_Group" details-level full -f json | jq '.members[] | [.name, ."ipv4-address", .comments] |@csv'&lt;/P&gt;&lt;P&gt;And this is the error:&lt;/P&gt;&lt;P&gt;Error: The parameters of show-group command should be provided in pairs (key and value). You have provided an odd number of parameters which suggests that you are probably missing a parameter.&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 12:06:50 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140217#M6577</guid>
      <dc:creator>TomMor</dc:creator>
      <dc:date>2022-02-02T12:06:50Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140258#M6578</link>
      <description>&lt;P&gt;The CLI in SmartConsole doesn't support pipes (incidentally, nor does clish). It feeds the full command you enter to something a little like this:&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;mgmt_cli -s session.txt %&lt;/LI-CODE&gt;
&lt;P&gt;With the full text you entered replacing the %.&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 15:22:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140258#M6578</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2022-02-02T15:22:43Z</dc:date>
    </item>
    <item>
      <title>Re: SmartConsole CLI</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140268#M6579</link>
      <description>&lt;P&gt;OK, so if t&lt;SPAN&gt;he CLI in SmartConsole doesn't support pipes, there is any other way I can export groups via SmartConsole CLI?&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 02 Feb 2022 16:19:48 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/SmartConsole-CLI/m-p/140268#M6579</guid>
      <dc:creator>TomMor</dc:creator>
      <dc:date>2022-02-02T16:19:48Z</dc:date>
    </item>
  </channel>
</rss>

