Skip to main content
Common Reference

tpm find-seqno

For convenience, a wrapper script tungsten_find_seqno is also available. In all the examples below, simply replace tpm find-seqno with tungsten_find_seqno or vice versa.

The tpm find-seqno assists with locating event information in the THL and producing a dsctl set command as output.

OptionDescriptionVersion
--debug
Aliases: -d
Displays debug-level status messages.
--help
Aliases: -h
--path
Aliases: -p
Pass full path to replicator executables e.g. --path /opt/replicator/tungsten/tungsten-replicator/bin
--quiet
Aliases: -q
Hides status output whenever possible.
--service
Aliases: -s
Specify the service name to use with the various commands.7.0.3
--test
Aliases: -t
Test mode - do not perform the actual update on the files.
--thlPath and name of thl executable (Ignores --path if also supplied)
--trepctlPath and name of trepctl executable (Ignores --path if also supplied)
-vDisplays verbose-level status messages.7.0.3

The tpm find-seqno command performs the following steps:

  • Get the Replicator sequence number to search for from the CLI and validate
  • Validate paths and commands
  • Load all available service names and validate any specified service against that list
  • Check if this Replicator is in the primary (master) role
  • Locate the supplied seqno in the available THL
  • Parse the THL found, if any
  • Generate the dsctl command and display

Below is a sample session:

shell> tpm find-seqno 4
dsctl set -reset -seqno 4 -epoch 2 -event-id "mysql-bin.000030:0000000000001981;-1" -source-id "db1"