dmgetsubscriptionstatus - Get subscription status
Use this command to retrieve status information for the CDC Replication staging store on your source system and the Continuous Capture feature.
This command can be issued
on Linux®, UNIX and Windows source replication engines
only, not on target replication engines.
Syntax
dmgetsubscriptionstatus [-I <name>] [-p] -A|-s <subscription ...>
[-L <locale>]Parameters
- -I <name>
- Specifies the name of the CDC Replication instance. Alternatively, you can specify the TSINSTANCE environment variable in place of this value.
- [-p]
- Specifies that CDC Replication sends status information to standard output.
- -A
- Specifies that CDC Replication retrieves status information for all subscriptions.
- -s <subscription ...>
- Specifies the name of the subscription for which status information is retrieved.
- [-L <locale>]
- The name of the locale used for the CDC Replication instance. The default is your machine's locale.
Result
This command returns one of the following statuses for each subscription:
- Recovering
- The subscription is in an undetermined state.
- Idle
- The subscription is not running.
- Starting
- The subscription is in start up mode and is not currently replicating data.
- Running
- The subscription is running and replicating data.
Examples
dmgetsubscriptionstatus
-I MYINSTANCE -p -ACDC Replication retrieves status information for all subscriptions and sends the results to standard output for the specified instance.