I have a HA MDS configuration with HA CMAs is there a way through the API that I can run a command to check which CMA/MDS is active and which is standby?
I can check the active CMA using this command:
run-script script-name "Check HA Status" script "cpstat mg" targets.1 "UID of Device" --format json
However I get the following error when I run that against the standby.
{
"code" : "err_validation_failed",
"message" : "Running a script from SmartConsole on the management is not supported"
}
Any ideas as to how this can be accomplished would be great.