Examine Management Instances (mgmtExamine)
The mgmtExamine
command examines the management instances and recommends any necessary corrective action. Run the suggested commands.
ttGridAdmin mgmtExamine
Examples
This example shows output when both management instances are up. Aside from the opening note that they are both up, the output is the same as for the mgmtStatus
command. See Display Status of Management Instances (mgmtStatus) for descriptions of the columns. (For brevity, the Message column, which had no entries, is not shown in this example.)
% ttGridAdmin mgmtExamine Both active and standby management instances are up. No action required. Host Instance Reachable RepRole(Self) Role(Self) Seq RepAgent RepActive ----------- --------- --------- ------------- ---------- --- -------- --------- mysys1host gridmgmt1 Yes Active Active 554 Up Yes mysys2host gridmgmt1 Yes Standby Standby 554 Up No
This example shows output when the active management instance is down, including recommended actions and commands to run:
% ttGridAdmin mgmtExamine Standby management instance is up, but active is down Promote the standby to active Host Instance Reachable RepRole(Self) Role(Self) Seq RepAgent RepActive Message ----------- --------- --------- ------------- ---------- --- -------- --------- ------------------- ---------------- mysys1host gridmgmt1 No Unknown Unknown Down No Management database is not available mysys2host gridmgmt1 Yes Standby Standby 557 Up No Recommended commands: ssh -o StrictHostKeyChecking=yes -o PasswordAuthentication=no -x host1.example.com /sw/tten/gridsetup/ttinstances/gridmgmt1/bin/ttenv ttGridAdmin mgmtActiveSwitch
Notes
One use case is if both management instances fail, and you are not certain which one was the active. Run this command to examine them both and determine which one is "current" or "most recent", then start that one as the active management instance.