<?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 Searching the MGMT CLI in General Topics</title>
    <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197049#M33036</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there a way to "find" the Cluster object name through the CLI, either from the SMS or one of the ClusterXL HA members?&lt;/P&gt;
&lt;P&gt;I want to send to Install policies, from the SMS CLI, using the "mgmt_cli...." but the syntax asks me to declare the name of the OBJECT of my CLUSTER, and currently, I don't have yet a license to access through the SmartConsole.&lt;/P&gt;
&lt;P&gt;I don't remember the name that the Cluster has in the SmartConsole, so I want to know, if there is a way to find out what name this object has (when we enter the SmartConsole)....&lt;/P&gt;
&lt;P&gt;I hope you can clarify the doubt.&lt;/P&gt;
&lt;P&gt;Greetings.&lt;/P&gt;</description>
    <pubDate>Fri, 03 Nov 2023 15:14:34 GMT</pubDate>
    <dc:creator>Matlu</dc:creator>
    <dc:date>2023-11-03T15:14:34Z</dc:date>
    <item>
      <title>Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197049#M33036</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;Is there a way to "find" the Cluster object name through the CLI, either from the SMS or one of the ClusterXL HA members?&lt;/P&gt;
&lt;P&gt;I want to send to Install policies, from the SMS CLI, using the "mgmt_cli...." but the syntax asks me to declare the name of the OBJECT of my CLUSTER, and currently, I don't have yet a license to access through the SmartConsole.&lt;/P&gt;
&lt;P&gt;I don't remember the name that the Cluster has in the SmartConsole, so I want to know, if there is a way to find out what name this object has (when we enter the SmartConsole)....&lt;/P&gt;
&lt;P&gt;I hope you can clarify the doubt.&lt;/P&gt;
&lt;P&gt;Greetings.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 15:14:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197049#M33036</guid>
      <dc:creator>Matlu</dc:creator>
      <dc:date>2023-11-03T15:14:34Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197053#M33037</link>
      <description>&lt;P&gt;On the management server:&lt;/P&gt;
&lt;P&gt;mgmt_cli -f json -r true show gateways-and-servers | jq -c '.objects[]|[.type,.name]'&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 15:48:57 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197053#M33037</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-11-03T15:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197055#M33038</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have tried to use the shared option, but I get unfavorable results.&lt;/P&gt;
&lt;P&gt;I have tried using other syntaxes of the "mgmt_cli..." that I found on the internet, but I still get bad results.&lt;/P&gt;
&lt;P&gt;Maybe I am misapplying the syntax?&lt;BR /&gt;&lt;BR /&gt;&lt;STRONG&gt;[Expert@Smartcenter:0]# mgmt_cli -f json -r true show gateways-and-servers | jq -c '.objects[]|[.type,.name]'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: Failed to login to the management server&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Expert@Smartcenter:0]#&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Expert@Smartcenter:0]#&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Expert@Smartcenter:0]# mgmt_cli show host name "CP_GW01" -r true --format json | jq '."ipv4-address"'&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;Error: Failed to login to the management server&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Expert@Smartcenter:0]# ^C&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;[Expert@Smartcenter:0]#&lt;/STRONG&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 16:10:35 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197055#M33038</guid>
      <dc:creator>Matlu</dc:creator>
      <dc:date>2023-11-03T16:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197058#M33040</link>
      <description>&lt;P&gt;For that to fail, something must be very wrong with your management server. What do these three commands return?&lt;/P&gt;
&lt;P&gt;fwm ver&lt;/P&gt;
&lt;P&gt;api status&lt;/P&gt;
&lt;P&gt;cpwd_admin list&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:16:49 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197058#M33040</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-11-03T17:16:49Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197059#M33041</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;I have an R81 version.&lt;/P&gt;
&lt;P&gt;My processes look good. I have the impression that it is a MGMT LICENSE issue (Actually my MGMT is not licensed yet), maybe that is why the command is not working.&lt;/P&gt;
&lt;P&gt;I have tested the command on another MGMT that does have a license, and it does work.&lt;/P&gt;
&lt;P&gt;Anyway I share the result of the suggested commands.&lt;/P&gt;
&lt;P&gt;&lt;EM&gt;&lt;STRONG&gt;In addition to this query, is the "mgmt_cli..." able to show us the POLICY PACKETS that the SMS has created?&lt;/STRONG&gt;&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;Greetings.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:48:03 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197059#M33041</guid>
      <dc:creator>Matlu</dc:creator>
      <dc:date>2023-11-03T17:48:03Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197060#M33042</link>
      <description>&lt;P&gt;In that case what does &lt;STRONG&gt;cplic print&lt;/STRONG&gt; show?&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 17:50:20 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197060#M33042</guid>
      <dc:creator>Tal_Paz-Fridman</dc:creator>
      <dc:date>2023-11-03T17:50:20Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197061#M33043</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;It shows that the license we had already &lt;STRONG&gt;expired on 29Oct&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;I have the impression that this is why, on this computer (Open Server), the suggested command does not work.&lt;/P&gt;
&lt;P&gt;It seems that for the use of &lt;STRONG&gt;"mgmt_cli..."&lt;/STRONG&gt; it is mandatory to have a license on the device.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 18:05:44 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197061#M33043</guid>
      <dc:creator>Matlu</dc:creator>
      <dc:date>2023-11-03T18:05:44Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197074#M33046</link>
      <description>&lt;P&gt;That is correct: without a license, you cannot use the API.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 19:25:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197074#M33046</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2023-11-03T19:25:28Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197076#M33047</link>
      <description>&lt;P&gt;Thank you for the clarification.&lt;/P&gt;
&lt;P&gt;Even so, I would like to know, if there is a syntax with the "mgmt_cli..." that shows me, how many "Policy Packages" have been created in my SMS.&lt;/P&gt;
&lt;P&gt;Is this possible?&lt;/P&gt;
&lt;P&gt;I want to validate it in a SMS that has a license.&lt;/P&gt;
&lt;P&gt;Thank you.&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 20:14:19 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197076#M33047</guid>
      <dc:creator>Matlu</dc:creator>
      <dc:date>2023-11-03T20:14:19Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197080#M33048</link>
      <description>&lt;P&gt;Sure, it’s possible.&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;mgmt_cli -f json -r true show packages&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 03 Nov 2023 20:51:34 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197080#M33048</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2023-11-03T20:51:34Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197088#M33054</link>
      <description>&lt;P&gt;I dont believe thats accurate. I just tested api commands on the box without valid license and worked fine.&lt;/P&gt;
&lt;P&gt;Andy&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 01:19:52 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197088#M33054</guid>
      <dc:creator>the_rock</dc:creator>
      <dc:date>2023-11-04T01:19:52Z</dc:date>
    </item>
    <item>
      <title>Re: Searching the MGMT CLI</title>
      <link>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197092#M33056</link>
      <description>&lt;P&gt;You already left me with the doubt&amp;nbsp;&lt;span class="lia-unicode-emoji" title=":face_with_tears_of_joy:"&gt;😂&lt;/span&gt;&lt;span class="lia-unicode-emoji" title=":expressionless_face:"&gt;😑&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 04 Nov 2023 05:38:58 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/General-Topics/Searching-the-MGMT-CLI/m-p/197092#M33056</guid>
      <dc:creator>Matlu</dc:creator>
      <dc:date>2023-11-04T05:38:58Z</dc:date>
    </item>
  </channel>
</rss>

