You are here: Scripting commands > ConID

ConID

Command CONID
Description
  • Allows you to to assign the value of a connection ID to a variable
  • Lists the target and replication set for all connection IDs for a source
Syntax
  • <variable>=CONID <repset> TO <target>
  • CONID LIST [source]
Options
  • variable—Name of the variable that you want to use to store the connection ID
  • repset—Replication set that was used to establish the connection
  • target—Name of the target, an IP address on the target, or a virtual IP address
  • source—Name of the source
Examples
  • $con_id=conid DataFiles to beta
  • $ConnectionNumber=conid UserData to beta
  • conid list alpha conid list alpha
Notes
  • The conid list and variable=conid commands are two separate commands.
  • If no machine name is specified in the conid list command, the active source will be used.
  • Options Machine names that contain non-alphanumeric characters must be enclosed in quotation marks.