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.
- 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.
- 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.
- 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.