apdr command

The apdr subcommands perform the disaster recovery setup process, monitor the status of the primary and secondary system, suspend and resume the active file system replication.

Syntax

apdr [-h] {status | enable | resume | failover | sync | failback | disable | clean | suspend | config | setup | scheduler | diag | changeRole | certificate}

Optional parameters

-h|--help
Displays help for the command.

Subcommands

apdr status [-h] [-a] [-p] [-s] [--snapshot]
Checks the status of the disaster recovery. By default, the apdr status command returns the same result as apdr status --all.
Optional arguments:
-a|--all
Displays the status of primary, secondary systems and snapshots.
-p|--primary
Displays the status of primary system.
-s|--secondary
Displays the status of secondary system.
--snapshot
Displays the latest snapshot's status.
--replqueue
Displays the status of the AFM replication queues. There are three states possible: Ready, Starting and Down. While in Ready, file set is in a normal state. Starting means the start of the initial sync. Down means that a file set has an issue.
apdr enable [-h] [-a <appliance_name>]
Enables the AFMDR service on the system.
-a|--appliance-name <appliance_name>
External DNS name of the system.
apdr resume [-h]
Resumes active file system replication and converts secondary to read-only mode.
apdr failover [-h] [-w] [-n] [-s]
Initiates the failover.
-w|--wait
Initiates the failover and waits until it's completed to return control to the user.
-n|--nowait
Initiates the failover in the background and immediately returns control to the user.
-s|--status
Checks the status of disaster recovery.
apdr sync [-h] [-r] [-s <seqno>]
Runs or checks the status of snapshot generation and syncing.
-r|--run
Runs snapshot synchronization.
-s|--status <seqno>
Checks the status of the snapshot synchronization for the given ID number.
apdr failback [-h] [-s]
Initiates failback.
-s|--status
Checks the status of the disaster recovery.
apdr disable [-h] [-c]
Disables the AFMDR service on the system.
-c|--clear-appliance-name
Clears the appliance host name.
apdr clean [-h] [-s <id>] [-a] [--snapshot]
Cleans file sets.
-s|--status <id>
Checks the results of the clean-up job represented by the given ID.
-a|--all
Cleans the file sets on both the primary and the secondary system.
--snapshot
Removes all older snapshots with the exception of the latest snapshot.
apdr suspend [-h]
Suspends active file system replication and converts secondary to read/write mode.
apdr config [-h] -p <primary> --primary-ip-list <primary-ip-list> -s <secondary> --secondary-ip-list <secondary-ip-list> [--snapshot-interval <snapshot-interval>] [--scheduler-starttime <start-time>] [--check-only]
Performs the initial config of DR between primary and secondary systems.

The command requires the following parameters:

-p|--primary <primary>
Primary system host name.
--primary-ip-list <primary-ip-list>
Comma-separated external IP list of all the nodes on the primary system.
-s|--secondary <secondary>
Secondary system host name.
--secondary-ip-list <secondary-ip-list>
Comma-separated external IP list of all the nodes on the secondary system.

Optional parameters:

--snapshot-interval <snapshot-interval>
Snapshot interval value in seconds. By default set to 24 hours. The entered value must be greater than 10800 (3 hours).
--scheduler-starttime <starthour> <startminute>
Sets the start hour (0-23) and minute (0-59) of the scheduled automatic snapshot. By default the start time is set to when the apdr config command was run.
[--check-only]
Runs diagnostics between the primary and secondary systems. This option does not perform any configuration between the systems.
apdr setup [-h] [-s] [-d]
-s|--status
Checks the progress of the AFM setup.
-d|--detail
Checks the progress of the AFM setup in details.
apdr scheduler [-h] {set,start,stop,status}
set <interval> <starthour> <startminute>
Sets the interval time of the scheduler, the start hour and minute.
status
Displays the status of the scheduler, the interval and time of the next scheduled snapshot.
start
Starts the scheduler.
stop
Stops the scheduler.
apdr diag [-h] [-n] [-a] [-s <seqno>]
-n | --network
Run network diagnostics between the primary and secondary systems.
-a | --all
Run all diagnostics between the primary and secondary systems.
-s | --status <seqno>
Checks the status of the diagnostics for the specified ID number.
apdr changeRole [-h] [-s]
Initiates role reversal.
-s | --status
Checks the status of the role reversal job.
apdr certificate [-h] [-i <path>] [-e <export directory>] [-c] [-d] [-v]
-i | --import <path>
Imports certificate from provided local path to certificate directory.
-e | --export <export directory>
Export copy of certificate from the certificate directory to provided local directory
-c | --create
Create local AFM-DR certificate and key pair on this system.
-d | --delete
Delete all AFM-DR certificates on this system.
-v | --validate
Validate existence of AFM-DR certificates on this system.