@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
<variable> = CONID <repset_target_mapping>
COMPRESSion SET <conid> <level>
       | LIST
       | ENABLE <conid>
       | DISABLE <conid>
CONID LIST [machine]
CONnect <repset> TO <target_machine> 
        MAP EXACT
        | MAP BASE <target_path>
        | MAP <source_path> TO <target_path> [, ...] 
        [MIRror|NOMIRror] [, REPlicate|NOREPlicate] [, MONitor|NOMONitor]
        [,ORPHANS|NOORPHANS][,COMPRESSion <level>] [CLEARRESTOREREQUIRED]
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
DEVice LIST [ALL|ONSOURCE|ONTARGET] [ON machine]
DISCONnect <con_id>
EMAIL ADD <email_address>
      | DISABLE
      | ENABLE
      | FROMADDRESS <email_address>
      | GET EMAILCONFIG
            | FILTER
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
      | MAILSERVER <server_name | IP_address> [username] [password]
      | REMOVE <email_address>
      | SETFILTERINCLUDE [INFO, WARNING, ERROR]
                         [EXLUDEIDS <ID1,ID2-ID4,...>]
      | SUBJECT [PREFIX <prefix> | NOPREFIX] [DESCRIPTION | NODESCRIPTION]
      | TEST [SENDTO <email_address[,email_address,...]>]
             [TEXT <message_text>]
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
ENVironment [machine]
EXIT
FAILBACK <monitor> [ON <target_machine>] [REMONITOR|NOREMONITOR]
FAILOVER <monitor> [ON <target_machine>]
GET <option> [machine]
GETENVSTR <env_variable> $<variable_name>
GETLOCAL <option>
HELP
LIMIT BANDWIDTH <bytes>,<seconds> TO <target_machine>   
LOAD SOURCE <machine>
     | TARGET <machine>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
LOGIN <machine> <username> <password> [domain]
LOGOUT <machine>
MIRror PAUSE <con_id>
       | RESUME <con_id>
       | START <con_id> [CLEAN]
                         | DIFFERENT [, NEWER] [, CHECKSUM|NOCHECKSUM]]
                        [ORPHANS|NOORPHANS] [CALCulate|NOCALCulate]
                        [CLEARRESTOREREQUIRED]
       | STOP <con_id>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
MONitor ACCOUNT ADD <username> <password> [monitor]
                | REMove [monitor]
        | CLEAR [monitor]
        | CREATE <source_machine>
        | DELete <monitor>
        | DISPlay [monitor]
        | GET <target_machine>
        | LIST
        | MOVE <IP_address> TO NIC <target_NIC>
               INTERVAL <interval> TIMEOUT <timeout> [monitor]
               | NOTEST [monitor]
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
MONitor OPTION [MOVENAME|NOMOVENAME] [, MOVEADDRESSES|NOMOVEADDRESSES]
               [, MOVESHARES|NOMOVESHARES] [, ADD|REPLACE]
               [, USESHAREFILE|NOUSESHAREFILE]
               [, FAILONE|FAILALL] [, TRIGGERONE|TRIGGERALL]
               [, FODELAY|NOFODELAY] [, FBDELAY|NOFBDELAY]
               [, INTERVENTION|NOINTERVENTION] [monitor]
                 [, FOHOSTNAME|NOFOHOSTNAME] [, FBHOSTNAME|NOFBHOSTNAME]
        | REMove <IP_address> [monitor]
        | SCRIPT ADD <type> <script_name> [monitor]
                 | REMove <type> [monitor]
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
MONitor START <monitor> [ON <target_machine>]
        | STOP <monitor> [ON <target_machine>]
        | USE <monitor>
NICLIST [target_machine]
ORPHANS START <con_id>  [CLEARRESTOREREQUIRED]
        | STOP <con_id>
PAUSETARGET <target_machine> [FROM <source_machine>]
PING <machine>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
QueueTASK <job_name> TO <target_machine>
          ONQueue = <task> [args] | ONTRANSmit = <task> [args]
          | ONRECeive = <task> [args] | ONEXECute = <task> [args]
          [TIMEOUT = <timeout>] [INTERACT|NOINTERACT]
QUIT
REPlication START <con_id> [CLEARRESTOREREQUIRED]
            | STOP <con_id>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
REPSET CALCulate [repset]
       | CREATE <name>
       | DELete <repset>
       | DISPlay <repset>
       | LIST
       | RESYNC
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
REPSET RULE ADD <path> [INClude|EXClude]
                       [, RECursive|NONRECursive] [TO <repset>]
            | REMove <path> [FROM <repset>]
       | SAVE
       | USE <repset>
RESTORE <repset> FROM <target_machine> 
        [ORIGINAL <original_source_machine>]
        [OVERWRITE|NOOVERWRITE] [, OVERWRITENEWER|NOOVERWRITENEWER]
        [, USETARGETDB|NOUSETARGETDB] [, RESTOREDBTOO|NORESTOREDBTOO]
        [, CHECKSUM|NOCHECKSUM] [,ORPHANS|NOORPHANS]
RESUMETARGET <target_machine> [FROM <source_machine>]
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
SCHEDule <target_machine> CLEAR
                          | DISABLE
                          | ENABLE
                          | END [DURATION = <number> <time_units>]
                                [BYTES = <bytes>]
                          | START [STARTTIME = <mm/dd/yy> [hh:mm]]
                                  [, MEMLIMIT = <0-100>]
                                  [, QUEUESIZE = <bytes>]
                                  [, EVERY <number> <time_units>]]
                          | WINDOW <hh:mm> TO <hh:mm>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
SET <option> = <value> [machine]
SETLOCAL <option> = <value>
SHUTDOWN <machine>
SOUrce <source_machine>
STATSLOG START <machine> [TO <filename>] [EVERY <minutes>]
                              [MAXSIZE <kilobytes>]
         | STATUS <machine>
         | STOP <machine>
STATUS CONnect <con_id>
       | TRANsmit <con_id>
       | MIRror <con_id>
       | REPlicate <con_id>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
TARget <target_machine>
TESTCONnections <machine> [filename [OVERWRITE]]
TIMEnow
TRANSmission PAUSE <target_machine> 
             | RESUME <target_machine>
             | START <target_machine> 
             | STOP <target_machine> 
UNLOAD SOURCE <machine>
       |TARGET <machine>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
VERIFY <con_id> [SYNC [, NEWER] [, CHECKSUM|NOCHECKSUM]
                 | NOSYNC] [, CHECKSUM|NOCHECKSUM]
       [STARTTIME = <mm/dd/yy> [hh:mm]]
       [EVERY <number> <time_units>]
       [ORPHANS|NOORPHANS] 
       [CLEARRESTOREREQUIRED]
VERSION [machine]
WAIT <ms>
WAITONMIRROR <con_id>        
WAITONRESTORE <rest_id>
WAITONTARGET <target> [FROM <source>] <time>
WRITE $<variable_name>
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
DTCL SCRIPTING
   To simplify using Double-Take and DTCL, you can create script files to 
   execute series and combinations of commands to meet specific needs.  
Notes: 
   - When creating DTCL scripts, each commented line must start and end 
     with the pound (or number) sign (#).  
   - Each DTCL command and assignment must end with a semi-colon.  However, 
     no semicolon is necessary after the END keyword for the IF conditional 
     and the loop statements.
   - When using the Command Line Client, a script file can be executed using 
     the -f option. 
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
VARIABLES
   Variables can be used in commands to replace items that vary such as 
   machine or domain names.  A variable name must start with the $ character 
   and can contain letters, numbers, strings, and integers.  Values are 
   assigned to variables using the '=' assignment statement.  For example, 
   valid variable assignment statements are:

      $MyDomain = "nsisw.com";
      $ConnectionID = 4;
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
   All DTCL commands return values which can also be assigned to variables.
   For example, the connection command returns a connection ID for the new 
   connection.  The statement:

      $ConnectionID = CONNECT dataset to "target.nsisw.com";

   saves the connection ID as a variable.  The variable components of the 
   connect command could be replaced as well.  For example:

      $TheRepset = dataset;
      $TheTarget = "target.nsisw.com";
      $ConnectionID = CONNECT $TheRepset TO $TheTarget;
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
FLOW CONTROL

DTCL scripts can take advantage of four programming constructs.

   - IF
   - FOR
   - WHILE 
   - WRITE
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
The IF conditional expression is a comparison between two values or 
variables.  Use the following syntax for an IF conditional: 
   IF <relational expression> THEN <statement_block> 
   [ ELSE <statement_block> ] END
Use the following conditions to create the relational expression:
     =                    Is equal to
     !=                   Is not equal to
     <                    Is less than
     <=                   Is less than or equal to
     >                    Is greater than
     >=                   Is greater than or equal to
     statement block      Any sequence of valid DTCL commands
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
The FOR loop sets a variable to a start value, executes each statement in the
statement block, and then adds the step value to the variable.  If the new 
value of the variable does not exceed the end value then the statements will 
be executed again.  This continues until the variable exceeds the end value. 
If a step value is not provided, the default adds one to the variable. Use 
the following syntax for the FOR loop:
   FOR <variable> = <start_value> TO <end_value> 
   [STEP <step_value>] DO <statement_block> END
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
The WHILE loop evaluates a relational expression and, if it is true, then 
the statement block is executed.  When the statement block has completed 
execution, the expression will be reevaluated again and, if it is true, the 
statement block is executed again. This continues until the expression is 
false. Use the conditions specified in the IF conditional to create the 
relational expression and the following syntax for the WHILE loop:
   WHILE <relational_expression> DO <statement_block> END
@23456789 12345 *** Maximum of 12 lines per page, no tabs allowed *** 1234567
The WRITE command writes values to the screen. These values 
can be variables or constants of type integer$, string$, date$, or time$. 
The write command is used in conjunction with either the IF conditional, 
WHILE loop, or FOR loop.
