getProtectionPlans

Returns a list of protection plans that are part of the current configuration.

SYNOPSIS

mrcli [-c configfile] -u user -m maxrepname [-v] [-x stdout | fileName.xml] getProtectionPlans

DESCRIPTION

When the command getProtectionPlans is executed to the MaxRep Replication Engine hosting the control service, the command provides a list of protection plans that are currently active in the control service configuration.

OPTIONS

m maxrepname

The IP address or DNS name of the MaxRep Replication Engine.

u user

Identifies the administrator account that runs the command.

c configfile

Specifies the configuration file to modify logging. When used, the -c command must be the first option entered at the command line.

-v

Prints MaxRep CLI version and exits. This option should be run on its own, separate from additional options.

$ mrcli -v

-x stdout | filename.xml

Prints output in XML format.

EXAMPLE

Task

Run the getProtectionPlans command to return a list of protection plans from MaxRep Replication Engine co-maxrep-22. The MaxRep CLI will prompt for a password.

Parameters
  • maxrepname:  co-maxrep-22

  • plan.xml:  plandetails.xml

$ mrcli -u admin -m co-maxrep-22 getProtectionPlans
$ mrcli -u admin -m co-maxrep-22 getProtectionPlans -x stdout
For XML output:
 $ mrcli -u admin -m co-maxrep-22 getProtectionPlans -x plandetails.xml