Skip to main content

CLI Interface for PPDM

Project description

rjcli for Dell EMC PowerProtect Data Manager

A command line interface developed for Dell EMC Power Protect Data Manager (PPDM). PPDM is a Dell EMC's modern data center backup and recovery software which is developed based on microservices architecture. It has a user friendly and modern interface to configure, manage and monitor backups. PPDM has a RestAPI for the customers to integrate backups into their DevOps pipeline or for other automation purpose. I have developed this CLI to provide some of the funcitionalies through a command line for the customers who wish to use CLI.

This CLI has features like to list activities, storage, policies, assets and also will be able to retry failed jobs. This is a version 1.0 CLI, i will be adding more features in the future.

Getting Started

rjcli package is available in Python Package Indexes (PyPi) or download the sourcecode from github and install it using setup.py Python >3.5 and pip are prerequesites to install this package

::

  1. After installing Python 3.x and pip, just run the following command.
pip install rjcli

OR

  1. After installing Python 3.x, download the zip file rjcli.1.0.0.tar.gz and unzip.
Download and unzip rjcli.1.0.0.tar.gz
python setup.py install

Once installed execute a command 'rjcli' and login to PPDM!

Windows 64bit only

If you prefer not to install Python, then download the installer from Github and install the application. Once installed execute a command 'rjcli.exe' and login to PPDM!

Usage

:: Connect to the PPDM with either hostname or IP Following are the available commands and options

login

show --help
show --<option> --help

show --jobs summary --period <1day-ago | 1week-ago>
show --jobs successful --period <1day-ago | 1week-ago>
show --jobs failed --period <1day-ago | 1week-ago>
show --jobs all --period <1day-ago | 1week-ago>
show --storage details
show --asset all
show --asset <key-word>
show --policies all
show --policies <key-word>

backup --client <name>
backup --retry ALL-FAILED --period <1day-ago | 1week-ago>

monitor --activityid <activity-id>
monitor --jobs running

Example Output

:: dellemc-ppdm-cli > show --jobs successful --period 1day-ago +---------------+-----------+------------+--------------------------+ | Activity Name | Job Type | Job Status | Start Time | +---------------+-----------+------------+--------------------------+ | PLC1-VMware | JOB | OK | 2020-06-01T07:00:00.885Z | | PLC1-VMware | JOB | OK | 2020-06-01T07:00:00.772Z | | PLC1-VMware | JOB | OK | 2020-06-01T07:00:00.661Z | | PLC-VMware-2 | JOB | OK | 2020-06-01T07:00:00.628Z | | PLC1-VMware | JOB | OK | 2020-06-01T07:00:00.513Z | | PLC-VMware-2 | JOB | OK | 2020-06-01T07:00:00.465Z | | PLC-VMware-2 | JOB_GROUP | OK | 2020-06-01T07:00:00.429Z | | PLC1-VMware | JOB | OK | 2020-06-01T07:00:00.383Z | | PLC1-VMware | JOB_GROUP | OK | 2020-06-01T07:00:00.344Z | | PLC1-VMware | JOB | OK | 2020-06-01T06:00:01.070Z | | PLC1-VMware | JOB | OK | 2020-06-01T06:00:00.891Z | | PLC1-VMware | JOB | OK | 2020-06-01T06:00:00.775Z | | PLC1-VMware | JOB | OK | 2020-06-01T06:00:00.629Z | | PLC-VMware-2 | JOB | OK | 2020-06-01T06:00:00.560Z | | PLC1-VMware | JOB | OK | 2020-06-01T06:00:00.448Z |

dellemc-ppdm-cli > show --policies all +--------------+------------------------+--------+-----------+----------------------+ | Policy Name | Policy Type | Status | Frequency | Next Schedule | +--------------+------------------------+--------+-----------+----------------------+ | PLC1-VMware | VMWARE_VIRTUAL_MACHINE | ACTIVE | HOURLY | 2020-05-06T10:00:00Z | | PLC-VMware-2 | VMWARE_VIRTUAL_MACHINE | ACTIVE | HOURLY | 2020-05-21T04:00:00Z | +--------------+------------------------+--------+-----------+----------------------+

dellemc-ppdm-cli > show --storage details


Storage Name: ddve03.DOMAIN.LOCAL Storage Type: DATA_DOMAIN_SYSTEM Storage Model: DD VE Version 4.0 OS Version: 7.1.0.10-646016 Total Size (GB): 351.01 Used Percentage: 4.00 Last Discovered: DETECTED

Contributions

If you're interested in contributing to this project, thank you in advance! I will help you with the documention to install PPDM, its a virtual appliance, easy to set up.

Author

License

This project is licensed under the MIT License - see the LICENSE.md file for details

A Big Thankyou

  • Peter Marelas helped me with suggestions and he has inspired me to develop this.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

rjcli-1.0.0.tar.gz (8.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

rjcli-1.0.0-py3-none-any.whl (8.6 kB view details)

Uploaded Python 3

File details

Details for the file rjcli-1.0.0.tar.gz.

File metadata

  • Download URL: rjcli-1.0.0.tar.gz
  • Upload date:
  • Size: 8.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for rjcli-1.0.0.tar.gz
Algorithm Hash digest
SHA256 71b4b0de67e18b693872baf0af236c0ffdd03fdad4d5960d12b6c9636f378969
MD5 0f3240df5f863a6ddaf18efc211acc26
BLAKE2b-256 932685e4969a084bfeac058d29552af1866d07c6e24ea84666511d1a5d1fbc82

See more details on using hashes here.

File details

Details for the file rjcli-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: rjcli-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 8.6 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.1.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.1

File hashes

Hashes for rjcli-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 240a0f9037ae1ceed80fd3d9c836b241e4fc635f49abb0d4f3eda9b3e06c7cd6
MD5 24606bc1e450d6b848d44e9e60f16970
BLAKE2b-256 eba39818519f9cd848b425374954128a080681f451a1d980bc35706f75985a52

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page