Table 9.24. dsctl Command-line Options
Option | Description |
---|---|
-ascmd | Generates the command required to set the datasource to the current position |
Returns the current datasource status and position, returning the information as a JSON string. The example below has been formatted for clarity:
shell> dsctl get
[
{
"extract_timestamp":"2025-02-19 15:47:34.0",
"eventid":"mysql-bin.000011:0000000000072857;8196",
"fragno":0,
"last_frag":true,
"seqno":214,
"update_timestamp":"2025-02-19 15:47:34.0",
"shard_id":"hr",
"applied_latency":0,
"epoch_number":0,
"task_id":0,
"source_id":"db1"
}
]
When the -ascmd
option is used, the
information is output in form of a command:
shell> dsctl get -ascmd
dsctl set -seqno 214 -epoch 0 -event-id "mysql-bin.000011:0000000000072857;8196" -source-id "db1"
If the -reset
is used, then the
generated command also includes the option. For example:
shell> dsctl get -ascmd -reset
dsctl set -seqno 214 -epoch 0 -event-id "mysql-bin.000011:0000000000072857;8196" -source-id "db1" -reset