I'm running SmartCenter R80.40 jumbo 126. While trying to learn to ingest cluster objects and their members, I ran into a lot of weird inconsistencies:
[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" : ""
}
}
-
The cluster changes type. In 'show gateways-and-servers', its type is CpmiGatewayCluster. In 'show object', its type is "simple-cluster".
-
In 'show gateways-and-servers', there is no 'cluster-mode' property for the cluster.
-
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.
-
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.
-
In 'show gateways-and-servers', the member has an array of interfaces. In 'show object', that's totally missing.