Product Documentation

Replication is checked by verifying the output of two commands as the strongauth user.

 

Check Replication Connection:

Run below command to confirm if all required connections for replication between servers are there or not.

shell> zmq

If you have 2 servers, you should see 6 lines (there may be more) in the output and each server should be connected to each other on ports 7001, 7002, 7003.

EX: Using two servers addressed 10.0.2.207 and 10.0.2.208, if all required connections are present the zmq command will output something like this:

::ffff:10.0.2.207:43486              ::ffff:10.0.2.208:7001 ESTABLISHED
::ffff:10.0.2.207:45486              ::ffff:10.0.2.208:7002 ESTABLISHED
::ffff:10.0.2.207:44612              ::ffff:10.0.2.208:7003 ESTABLISHED
::ffff:10.0.2.207:7001               ::ffff:10.0.2.208:46458 ESTABLISHED
::ffff:10.0.2.207:7002               ::ffff:10.0.2.208:42434 ESTABLISHED
::ffff:10.0.2.207:7003               ::ffff:10.0.2.208:54661 ESTABLISHED

In the first 3 rows you will notice that 10.0.2.207 is connected to 10.0.2.208 on all required ports and the next 3 rows tell you that 10.0.2.208 has connected to 10.0.2.207 on all required ports. Duplicates may be shown and will not cause problems, but missing a port connection will result in replication problems.

 

Check Replication Backlog:

Run below command to check if there are any records currently in the replication backlog queue.

shell> repl

In the output, the first column is the Target Server ID (TSID) and the second column displays how many replication records are in queue for that TSID. If this command returns nothing then replication is up to date.

Time to time you might see some number of records in the backlog and it is normal. But, if you see a count number increasing consistently, there may be an issue with replication.