You can determine the state of a DB2® High Availability Disaster Recovery (HADR) standby database by issuing the GET SNAPSHOT command with the DATABASE ON option.
For example, if you have standby database MUSIC, you can issue the following command to see its state:
get snapshot for database on music
The following output shows the HADR status section returned by the GET SNAPSHOT command:
HADR status
Role = Primary
State = Peer
Synchronization mode = Sync
Connection status = Connected, 11-03-2002 12:23:09.35092
Heartbeat missed = 0
Local host = host1.ibm.com
Local service = hadr_service
Remote host = host2.ibm.com
Remote service = hadr_service
Remote instance = dbinst2
timeout(seconds) = 120
Primary log position(file, page, LSN) = S0001234.LOG, 12, 0000000000BB800C
Standby log position(file, page, LSN) = S0001234.LOG, 12, 0000000000BB800C
Log gap running average(bytes) = 8723