I'm working on some code to interact with domains on multi-domain systems. Increasingly, it looks like a SmartCenter is actually a multi-domain system with weird names (or maybe on an MDS, the empty domain name and the name "MDS" are aliases for "System Data"?) constrained to only a single domain named "SMC User". I can show this domain with 'show domains' and with 'show object', but 'show object ... details-level full' and 'show domain' both fail:
[Expert@DallasSA]# mgmt_cli -f json -r true -d "System Data" show domains
{
"objects" : [ {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"type" : "domain",
"domain" : {
"uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
"name" : "System Data",
"domain-type" : "mds"
},
"icon" : "Objects/domain",
"color" : "black"
} ],
"from" : 1,
"to" : 1,
"total" : 1
}
[Expert@DallasSA]# smcUserUuid=$(!! | jq '.objects[]|.uid')
smcUserUuid=$(mgmt_cli -f json -r true -d "System Data" show domains | jq '.objects[]|.uid')
[Expert@DallasSA]# mgmt_cli -f json -r true -d "System Data" show object uid "${smcUserUuid}"
{
"object" : {
"uid" : "41e821a0-3720-11e3-aa6e-0800200c9fde",
"name" : "SMC User",
"type" : "domain",
"domain" : {
"uid" : "a0eebc99-afed-4ef8-bb6d-fedfedfedfed",
"name" : "System Data",
"domain-type" : "mds"
},
"icon" : "Objects/domain",
"color" : "black"
}
}
[Expert@DallasSA]# !! details-level full
mgmt_cli -f json -r true -d "System Data" show object uid "${smcUserUuid}" details-level full
{
"code" : "generic_err_object_not_found",
"message" : "Requested object [41e821a0-3720-11e3-aa6e-0800200c9fde] not found"
}
[Expert@DallasSA]# mgmt_cli -f json -r true -d "System Data" show domain uid "${smcUserUuid}"
{
"code" : "generic_err_object_not_found",
"message" : "Requested object [41e821a0-3720-11e3-aa6e-0800200c9fde] not found"
}
This indicates to me some kind of internal inconsistency.
Incidentally, every SmartCenter seems to have the same UUID for the "SMC User" domain. I've checked R81.10 jumbo 150, R81.20 jumbo 65, and a few on lower jumbos. So far, I've found these UUIDs to be consistent:
8bf4ac51-2df7-40e1-9bce-bedbedbedbed - APPI Data type: CPDataDomain or data domain
a0bbbc99-adef-4ef8-bb6d-defdefdefdef - Check Point Data type: CPDataDomain or data domain
a0bbbc99-adef-4ef8-bb6d-cebcebcebceb - IPS Data type: CPDataDomain or data domain
41e821a0-3720-11e3-aa6e-0800200c9fde - SMC User type: domain
a0eebc99-afed-4ef8-bb6d-fedfedfedfed - System Data type: SystemDomain or mds
All except SMC User are present on both SmartCenters and MDSs. The type of most of the included domains depends on how you look at them. The first three show up in 'show object' as CPDataDomain, and in the domain field of other objects as "data domain". For "System Data", in 'show object', it's SystemDomain, and in the domain field of other objects, it's "mds". It looks like 'show object ... details-level full' works on all of the domains except "SMC User". 'show domain' doesn't work on any of them, even though they can appear in the 'domain' field of other objects.