show geo role

To view the current role of GR instance, use the following command:

show role instance-id gr_instanceId 
Note

The following is a list of possible values for the role:

  • PRIMARY

  • STANDBY

  • FAILOVER_INIT

  • FAILOVER_COMPLETE

  • STANDBY_ERROR

  • FAILBACK_STARTED

Example

The following is a list of few configuration examples:

show role instance-id 1
result 
"PRIMARY"
show role instance-id 2          
result 
"STANDBY"