The tungsten_read_master_events Command
The tungsten_read_master_events displays the raw contents of the primary datasource for the given THL records. It
implements the Tungsten Script Interface as well as these additional options.
tungsten_read_master_events [options]
Where:
| Option | Description |
|---|---|
--directory | The $CONTINUENT_ROOT directory to use for running this command. It will default to the directory you use to run the script. |
--force | Continue operation even if script validation fails. |
--helpAliases: -h | Show the help text. |
--high | Display events ending with this sequence number. |
--infoAliases: -i | Display info, notice, warning, and error messages. |
--json | Output all messages and the return code as a JSON object. |
--low | Display events starting with this sequence number. |
--net-ssh-option | Provide custom SSH options to use for SSH communication to other hosts. This allows you to set explicit SSH options, such as changing the default network communication port, password, or other information. For example, using--net-ssh-option=port=80 will use port 80 for SSH communication in place of the default port 22. |
--noticeAliases: -n | Display notice, warning, and error messages. |
--service | Replication service to read information from. |
--source | Determine metadata for the --after, --low, --high statements from this host. |
--validate | Only run script validation. |
--verboseAliases: -v | Show verbose information during processing. |
Compatibility
The script only works with MySQL at this time.
Display all information after a specific sequence number
This may be used when you have had a primary failover or would like to see everything that happened after a certain event. It will read the start position from the sequence number passed and allow you to see all events, even if they were not extracted by the replication service.
shell> tungsten_read_master_events --after=1792
If you provide the --source option, the script will SSH to the host in question and read its THL information.
Display information between two sequence numbers
This will show the raw primary data between the two sequence numbers. It is inclusive so the information for the --low option
will be included. This will only work if the sourceId for both sequence numbers is the same.
shell> tungsten_read_master_events --low=4582 --high=4725