Article ID: 120009, created on Feb 6, 2014, last review on May 4, 2014

  • Applies to:
  • Virtual Automation

Resolution

By default, the progress information is not sent to the client by PVA Agent. In order to receive the information, include the progress="on" and the id attributes in the packet element of the message header. Optionally, include the log="on" attribute, which will initiate logging of the progress data in the history database.

The following example shows how to start a Virtuozzo Container backup operation and turn the progress reporting on:

<packet progress="on" log="on" id="2" version="4.0.0">
<target>backupm</target>
<data>
<backupm>
<backup_env>
<env_list>
<eid>57c2cd6c-c02b-4645-bdb5-e883ea005896</eid>
</env_list>
</backup_env>
</backupm>
</data>
</packet>

The following is an example of one of the progress packets received by the client program in response to the request listed above:

<ns1:packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="7c45db0eb2t72aer488" time="2007-02-19T15:01:32+0000" type="1" priority="4000" version="4.0.0">
<ns1:origin>backupm</ns1:origin>
<ns1:target>vzclient3</ns1:target>
<ns1:dst>
<director>gend</director>
</ns1:dst>
<ns1:data>
<ns1:progress>
<ns1:op>backupm.backup_env</ns1:op>
<ns1:message>
<ns1:message>Operation %op_name% is %status%</ns1:message>
<ns1:name></ns1:name>
<ns1:translate/>
<ns1:parameter>
<ns1:message>YmFja3VwX2Vudg==</ns1:message>
<ns1:name>op_name</ns1:name>
</ns1:parameter>
<ns1:parameter>
<ns1:message>c3RhcnRlZA==</ns1:message>
<ns1:name>status</ns1:name>
<ns1:translate/>
</ns1:parameter>
</ns1:message>
<ns1:status>1</ns1:status>
</ns1:progress>
</ns1:data>
<ns1:target>log_subscription</ns1:target>
<ns1:src>
<ns1:director>gend</ns1:director>
</ns1:src>
</ns1:packet>

The packet above needs to be decoded. Once you parse the packed, resolve all the parameters and their values, and decode the base64-encoded values, the actual message will look like this:

Operation backup_env is started.

Search Words

s

319940068c5fa20655215d590b7be29b 2897d76d56d2010f4e3a28f864d69223

Email subscription for changes to this article
Save as PDF