Previous page

Next page

Locate page in Contents

Print this page

distribute

Summary:

Distributes Agent core to a server that doesn't have Virtuozzo Containers software installed on it.

Request specification:

Name

Min/Max

Type

Description

distribute

 

 

 

{

 

 

 

dst

1..1

connection_infoType

The target node connection information.

}

 

 

 

Returns:

Name

Min/Max

Type

Description

eid

0..1

eid_type

The Server ID that was assigned to the target node.

Description:

The distribute call uploads Agent core to a server, starts the uploaded Agent, and tries to establish a connection with it. If all of the above steps complete successfully, the call returns a Server ID identifying the target server. The distribution of Agent core is a necessary step during some of the Agent operations, such as the physical-to-virtual migration. The returned Server ID can also be used to route Agent messages to the server through another Node in a Virtuozzo group.

Example:

Input

<packet version="4.0.0">

<data>

<system>

<distribute>

<dst>

<protocol>TCP</protocol>

<address>192.168.0.123</address>

<login>

<name>cm9vdA==</name>

</login>

<password>bXlwYXNz</password>

<port>4433</port>

</dst>

</distribute>

</system>

</data>

</packet>

Output

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns2="http://www.swsoft.com/webservices/vzl/4.0.0/system" xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="fc465a9994t5f90rc38" time="2007-05-24T13:26:54+0000" priority="4000" version="4.0.0">

<ns1:origin>system</ns1:origin>

<ns1:target>vzclient21-1df4b04e-0d55-f246-b718-89bbc62fd371</ns1:target>

<ns1:dst>

<ns1:director>gend</ns1:director>

</ns1:dst>

<ns1:data>

<ns2:system>

<ns2:eid>a27a53ef-ef7c-41df-8704-7bfd5023c30c</ns2:eid>

</ns2:system>

</ns1:data>

<ns1:src>

<ns1:director>gend</ns1:director>

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page