<?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: CpmiClusterMember objects missing information in API / CLI Discussion</title>
    <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132014#M6342</link>
    <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 18 Oct 2021 20:35:14 GMT</pubDate>
    <dc:creator>PhoneBoy</dc:creator>
    <dc:date>2021-10-18T20:35:14Z</dc:date>
    <item>
      <title>CpmiClusterMember objects missing information</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/131872#M6339</link>
      <description>&lt;P&gt;I'm running SmartCenter R80.40 jumbo 126.&amp;nbsp;While trying to learn to ingest cluster objects and their members, I ran into a &lt;EM&gt;lot&lt;/EM&gt; of weird inconsistencies:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;LI-CODE lang="markup"&gt;[Expert@LabSC]# mgmt_cli --format json -r true show gateways-and-servers details-level full
{
  "objects" : [ {
    ...
  }, {
    "uid" : "b4105bbc-602f-4fe8-8ac7-b3cd0f754b48",
    "name" : "NormalCluster",
    "type" : "CpmiGatewayCluster",
    "domain" : {...},
    "policy" : { },
    "operating-system" : "Gaia",
    "hardware" : "Open server",
    "version" : "R80.40",
    "ipv4-address" : "10.100.1.1",
    "interfaces" : [ {...}, {...} ],
    "network-security-blades" : {
      "firewall" : true
    },
    "management-blades" : { },
    "cluster-member-names" : [ "NormalMember1", "NormalMember2" ],
    ...
  }, {
    "uid" : "37e305c9-5050-4c69-a2e5-d7aa1578af01",
    "name" : "NormalMember1",
    "type" : "CpmiClusterMember",
    "domain" : {...},
    "policy" : { },
    "ipv4-address" : "10.100.1.2",
    "interfaces" : [ {...} ],
...

[Expert@LabSC]# mgmt_cli --format json -r true show object details-level full uid b4105bbc-602f-4fe8-8ac7-b3cd0f754b48
{
  "object" : {
    "uid" : "b4105bbc-602f-4fe8-8ac7-b3cd0f754b48",
    "name" : "NormalCluster",
    "type" : "simple-cluster",
    "domain" : {...},
    "cluster-mode" : "cluster-xl-ha",
    "cluster-members" : [ {
      "name" : "NormalMember1",
      "sic-state" : "uninitialized",
      "sic-message" : "Uninitialized",
      "ip-address" : "10.100.1.2",
      "interfaces" : [ {
        "name" : "eth0",
        "ipv4-address" : "10.100.1.2",
        "ipv4-network-mask" : "255.255.255.0",
        "ipv4-mask-length" : 24,
        "ipv6-address" : ""
      }, {
        "name" : "eth1",
        "ipv4-address" : "10.100.0.1",
        "ipv4-network-mask" : "255.255.255.252",
        "ipv4-mask-length" : 30,
        "ipv6-address" : ""
      }, {
        "name" : "eth2",
        "ipv4-address" : "10.100.2.2",
        "ipv4-network-mask" : "255.255.255.0",
        "ipv4-mask-length" : 24,
        "ipv6-address" : ""
      } ]
    }, {...} ],
    "interfaces" : {
      "total" : 3,
      "from" : 1,
      "to" : 3,
      "objects" : [ {
...

[Expert@LabSC]# mgmt_cli --format json -r true show object details-level full uid 37e305c9-5050-4c69-a2e5-d7aa1578af01
{
  "object" : {
    "uid" : "37e305c9-5050-4c69-a2e5-d7aa1578af01",
    "name" : "NormalMember1",
    "type" : "CpmiClusterMember",
    "domain" : {...},
    "color" : "black",
    "natSummaryText" : "None",
    "meta-info" : {...},
    "tags" : [ ],
    "icon" : "NetworkObjects/Cluster_member",
    "comments" : "",
    "display-name" : "",
    "customFields" : null,
    "ipv4-address" : "10.100.1.2",
    "ipv6-address" : ""
  }
}&lt;/LI-CODE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;UL&gt;
&lt;LI&gt;
&lt;P&gt;The cluster changes type. In 'show gateways-and-servers', its type is&amp;nbsp;CpmiGatewayCluster. In 'show object', its type is "simple-cluster".&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;In 'show gateways-and-servers', there is no 'cluster-mode' property for the cluster.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;In 'show gateways-and-servers', the cluster's 'interfaces' property is an array. In 'show object', it's a single JSON object which then contains an array of objects.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;In 'show gateways-and-servers', there is a 'cluster-member-names' property, which then changes to a 'cluster-members' property in 'show object'. Neither version seems to have an option to include the members' UUIDs.&lt;/P&gt;
&lt;/LI&gt;
&lt;LI&gt;
&lt;P&gt;In 'show gateways-and-servers', the member has an array of interfaces. In 'show object', that's totally missing.&lt;/P&gt;
&lt;/LI&gt;
&lt;/UL&gt;</description>
      <pubDate>Tue, 19 Oct 2021 19:33:43 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/131872#M6339</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-10-19T19:33:43Z</dc:date>
    </item>
    <item>
      <title>Re: CpmiClusterMember objects missing information</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132014#M6342</link>
      <description>&lt;P&gt;&lt;a href="https://community.checkpoint.com/t5/user/viewprofilepage/user-id/37502"&gt;@Omer_Kleinstern&lt;/a&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Oct 2021 20:35:14 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132014#M6342</guid>
      <dc:creator>PhoneBoy</dc:creator>
      <dc:date>2021-10-18T20:35:14Z</dc:date>
    </item>
    <item>
      <title>Re: CpmiClusterMember objects missing information</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132082#M6343</link>
      <description>&lt;P&gt;The command show-object for cluster returns the reply of&amp;nbsp;&lt;SPAN&gt;show-simple-cluster :&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-simple-cluster~v1.6.1%20" target="_blank"&gt;https://sc1.checkpoint.com/documents/latest/APIs/index.html#cli/show-simple-cluster~v1.6.1%20&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 10:43:29 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132082#M6343</guid>
      <dc:creator>Omer_Kleinstern</dc:creator>
      <dc:date>2021-10-19T10:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: CpmiClusterMember objects missing information</title>
      <link>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132147#M6347</link>
      <description>&lt;P&gt;Okay, but that doesn't really address the inconsistencies. A simple-gateway object's interfaces property is an array. A simple-cluster object's interfaces property is an object which contains an array (same container schema as 'show objects'). I would also really like the cluster member's UUID in its representation in the cluster object, and the member's interfaces in its 'show object' representation.&lt;/P&gt;
&lt;P&gt;It's weird that these various views of the objects don't give me consistent or complete information about them. I would expect at least one of those properties.&lt;/P&gt;
&lt;P&gt;Separately, I just realized a possible implication of the simple-cluster object's interfaces being in a container object with from, to, and total properties: all the other contexts where I've seen that wrapper have the ability to show starting at an offset. What happens if the cluster has more than 500 interfaces? Do I only get some of them?&lt;/P&gt;
&lt;P&gt;Are interfaces full objects with a UUID internally?&lt;/P&gt;</description>
      <pubDate>Tue, 19 Oct 2021 19:46:17 GMT</pubDate>
      <guid>https://community.checkpoint.com/t5/API-CLI-Discussion/CpmiClusterMember-objects-missing-information/m-p/132147#M6347</guid>
      <dc:creator>Bob_Zimmerman</dc:creator>
      <dc:date>2021-10-19T19:46:17Z</dc:date>
    </item>
  </channel>
</rss>

