How to run pmmcli utility manually?

Created:

2016-11-16 12:45:13 UTC

Modified:

2017-04-24 12:12:47 UTC

0

Was this article helpful?


Have more questions?

Submit a request

How to run pmmcli utility manually?

Applicable to:

  • Plesk for Linux

Symptoms

/usr/local/psa/admin/bin/pmmcli utility is used during backup, restoration or migration.

To investigate an issues sometimes we need to run it manually. The utility expects an .xml file to INPUT.

Resolution

For example to run:

    /usr/local/psa/admin/bin/pmmcli '--pmmras-exec' '--get-ftp-dump-info' '--lightweight-mode' '--dump-storage=ftp://user@127.0.0.1/' '--dump-file-specification=file.tar' '--session-path=/var/log/plesk/PMM/logs'

Where:

--get-ftp-dump-info - get information about backup
--dump-storage - FTP server address
--dump-file-specification - dump file name on FTP server
--session-path - path there logs will be saved

We need to provide a password for FTP repository:

Step1:

    [root@ ~]# cat input.xml
<?xml version="1.0"?>
<env-list>
<env name="DUMP_STORAGE_PASSWD">1qazXSW@</env>
</env-list>

Step2:

Command example:

    [root@ ~]# cat xml|/usr/local/psa/admin/bin/pmmcli '--pmmras-exec' '--get-ftp-dump-info' '--lightweight-mode' '--dump-storage=ftp://poodle@127.0.0.1/' '--dump-file-specification=test_ftp.com_1506020414.tar' '--session-path=/var/log/plesk/PMM/logs'

Output example:

    <?xml version="1.0" encoding="UTF-8"?>
<response>
<errcode>0</errcode>
<data>
<plain-data><?xml version="1.0" encoding="UTF-8"?>
<dump name="test_ftp.com_1506020414.tar" fullname="test_ftp.com_1506020414.tar" creation-date="1506020414" size="156045" isFull="true" description="Subscription backup created by server." owner-guid="8115e455-747f-41cd-b725-345e934b4e3f" owner-type="server" verification-string="" dump-original-version="12.0.18" dump-format="panel" content-included="true">
<dump-status dump-status="OK">
<details>
<message>domains/ftp.com/test_ftp.com_info_1506020414.xml: </message>
</details>
</dump-status>
</dump>
</plain-data>
</data>
</response>
Have more questions? Submit a request
Please sign in to leave a comment.