Previous page

Next page

Locate page in Contents

Print this page

get_config

Summary:

Retrieves traffic shaping configuration information.

Request specification:

Name

Min/Max

Type

Description

get_config

1..1

none

 

Returns:

Name

Min/Max

Type

Description

net_config

1..1

net_configType

Network traffic shaping configuration information.

Example:

Retrieving traffic shaping configuration information from the specified Container. The information is stored in a file on the Hardware Node. When Virtuozzo Containers is installed, the file contains some standard default values. Some of these values may not take full advantage of the resources provided by your system. For example, the standard default network interface bandwidth is 102400 Kbps. If you have a faster adapter in your system, you may want to change this value to reflect the actual adapter capabilities. Use the set_config call to modify the current traffic shaping configuration.

Input

<packet version="4.0.0">

<target>vzanetworkm</target>

<data>

<vzanetworkm>

<get_config/>

</vzanetworkm>

</data>

</packet>

Output

<?xml version="1.0" encoding="UTF-8"?><ns1:packet xmlns:ns1="http://www.swsoft.com/webservices/vzl/4.0.0/protocol" xmlns:ns2="http://www.swsoft.com/webservices/vza/4.0.0/vzanetworkm" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" id="17c46015272t99rf08" time="2007-03-17T00:16:03+0000" priority="0" version="4.0.0">

<ns1:origin>vzanetworkm</ns1:origin>

<ns1:target>vzclient3</ns1:target>

<ns1:dst>

<director>gend</director>

</ns1:dst>

<ns1:data>

<ns2:vzanetworkm>

<ns2:config>

<ns2:range>

<ns2:class_id>1</ns2:class_id>

<ns2:ip_address>

<ns2:netmask>0.0.0.0</ns2:netmask>

<ns2:ip>0.0.0.0</ns2:ip>

</ns2:ip_address>

<ns2:comment></ns2:comment>

</ns2:range>

<ns2:interface>

<ns2:net_device_id>eth0</ns2:net_device_id>

<ns2:class>

<ns2:id>1</ns2:id>

<ns2:rate>8</ns2:rate>

<ns2:totalrate>4096</ns2:totalrate>

</ns2:class>

<ns2:bandwidth>102400</ns2:bandwidth>

</ns2:interface>

</ns2:config>

</ns2:vzanetworkm>

</ns1:data>

<ns1:src>

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

</ns1:src>

</ns1:packet>

Please send us your feedback on this help page