<?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 show vpn-communities-star does not retrieve all communities in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-vpn-communities-star-does-not-retrieve-all-communities/m-p/71626#M4271</link>
    <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have written a script uses " show vpn-communities-star" to collect all star communities list from a CMA.&lt;/P&gt;&lt;P&gt;mgmt_cli show vpn-communities-star --format json -s /tmp/session | jq -r '.objects | .[] | .name'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the output does not list all communities and some of them are missed (validating via smart console).&lt;/P&gt;&lt;P&gt;I did search "show-generic-objects " to compare two communities one of them listed and the other one missed and it seems they are pretty same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;====================================Does not exist in show vpn-communities-star output=====&lt;/P&gt;&lt;P&gt;[Expert@MDSXXXX:0]# mgmt_cli show-generic-objects name Mxyz-ABC --format json -s /session | jq -r '.'&lt;BR /&gt;{&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"uid": "79a70f1e-b2db-44ce-936b-1bc9c390c501",&lt;BR /&gt;"name": "Mxyz-ABC",&lt;BR /&gt;"type": "vpn-community-star",&lt;BR /&gt;"domain": {&lt;BR /&gt;"uid": "c69f3b38-6f03-224b-b6d6-56a179f3d59b",&lt;BR /&gt;"name": "CUSTXXX",&lt;BR /&gt;"domain-type": "domain"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"from": 1,&lt;BR /&gt;"to": 1,&lt;BR /&gt;"total": 1&lt;BR /&gt;}&lt;BR /&gt;[Expert@MDSXXX:0]#&lt;BR /&gt;=================================Does exist in&amp;nbsp;show vpn-communities-star output=====&lt;BR /&gt;[Expert@MDSXXX:0]# mgmt_cli show-generic-objects name ABCD_EFG_IJK --format json -s /session | jq -r '.'&lt;BR /&gt;{&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"uid": "38ceaf25-e2b1-48f1-936e-4363b86a1d92",&lt;BR /&gt;"name": "ABCD_EFG_IJK",&lt;BR /&gt;"type": "vpn-community-star",&lt;BR /&gt;"domain": {&lt;BR /&gt;"uid": "c69f3b38-6f03-224b-b6d6-56a179f3d59b",&lt;BR /&gt;"name": "CUSTXXX",&lt;BR /&gt;"domain-type": "domain"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"from": 1,&lt;BR /&gt;"to": 1,&lt;BR /&gt;"total": 1&lt;BR /&gt;}&lt;BR /&gt;[Expert@MDSXXX:0]#&lt;/P&gt;&lt;P&gt;Anyone had same issue with "show vpn-communities-star" retrieved communities list?&lt;/P&gt;</description>
    <pubDate>Mon, 06 Jan 2020 05:20:33 GMT</pubDate>
    <dc:creator>Hadi</dc:creator>
    <dc:date>2020-01-06T05:20:33Z</dc:date>
    <item>
      <title>show vpn-communities-star does not retrieve all communities</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-vpn-communities-star-does-not-retrieve-all-communities/m-p/71626#M4271</link>
      <description>&lt;P&gt;Hello All,&lt;/P&gt;&lt;P&gt;I have written a script uses " show vpn-communities-star" to collect all star communities list from a CMA.&lt;/P&gt;&lt;P&gt;mgmt_cli show vpn-communities-star --format json -s /tmp/session | jq -r '.objects | .[] | .name'&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;the output does not list all communities and some of them are missed (validating via smart console).&lt;/P&gt;&lt;P&gt;I did search "show-generic-objects " to compare two communities one of them listed and the other one missed and it seems they are pretty same.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;====================================Does not exist in show vpn-communities-star output=====&lt;/P&gt;&lt;P&gt;[Expert@MDSXXXX:0]# mgmt_cli show-generic-objects name Mxyz-ABC --format json -s /session | jq -r '.'&lt;BR /&gt;{&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"uid": "79a70f1e-b2db-44ce-936b-1bc9c390c501",&lt;BR /&gt;"name": "Mxyz-ABC",&lt;BR /&gt;"type": "vpn-community-star",&lt;BR /&gt;"domain": {&lt;BR /&gt;"uid": "c69f3b38-6f03-224b-b6d6-56a179f3d59b",&lt;BR /&gt;"name": "CUSTXXX",&lt;BR /&gt;"domain-type": "domain"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"from": 1,&lt;BR /&gt;"to": 1,&lt;BR /&gt;"total": 1&lt;BR /&gt;}&lt;BR /&gt;[Expert@MDSXXX:0]#&lt;BR /&gt;=================================Does exist in&amp;nbsp;show vpn-communities-star output=====&lt;BR /&gt;[Expert@MDSXXX:0]# mgmt_cli show-generic-objects name ABCD_EFG_IJK --format json -s /session | jq -r '.'&lt;BR /&gt;{&lt;BR /&gt;"objects": [&lt;BR /&gt;{&lt;BR /&gt;"uid": "38ceaf25-e2b1-48f1-936e-4363b86a1d92",&lt;BR /&gt;"name": "ABCD_EFG_IJK",&lt;BR /&gt;"type": "vpn-community-star",&lt;BR /&gt;"domain": {&lt;BR /&gt;"uid": "c69f3b38-6f03-224b-b6d6-56a179f3d59b",&lt;BR /&gt;"name": "CUSTXXX",&lt;BR /&gt;"domain-type": "domain"&lt;BR /&gt;}&lt;BR /&gt;}&lt;BR /&gt;],&lt;BR /&gt;"from": 1,&lt;BR /&gt;"to": 1,&lt;BR /&gt;"total": 1&lt;BR /&gt;}&lt;BR /&gt;[Expert@MDSXXX:0]#&lt;/P&gt;&lt;P&gt;Anyone had same issue with "show vpn-communities-star" retrieved communities list?&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 05:20:33 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-vpn-communities-star-does-not-retrieve-all-communities/m-p/71626#M4271</guid>
      <dc:creator>Hadi</dc:creator>
      <dc:date>2020-01-06T05:20:33Z</dc:date>
    </item>
    <item>
      <title>Re: show vpn-communities-star does not retrieve all communities</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/show-vpn-communities-star-does-not-retrieve-all-communities/m-p/71697#M4275</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/30433"&gt;@Hadi&lt;/a&gt;&amp;nbsp;3 things to watch;&lt;/P&gt;
&lt;P&gt;1. limit - default is to display the first 50 results. Max is 500&lt;/P&gt;
&lt;P&gt;2. off-set - default is 0 you can move this around to display different results&lt;/P&gt;
&lt;P&gt;3. details-level - if your missing info then this will be where you want to set. Setting to Full will get you the most details&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE class="code"&gt;mgmt_cli show vpn-communities-star limit 500 offset 0 details-level "full"&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This is where I would start and didn't see it in your command. If you have more VPN communities than 500 you can do a while loop to cycle through.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 06 Jan 2020 19:21:28 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/show-vpn-communities-star-does-not-retrieve-all-communities/m-p/71697#M4275</guid>
      <dc:creator>Adam_Forester</dc:creator>
      <dc:date>2020-01-06T19:21:28Z</dc:date>
    </item>
  </channel>
</rss>

