VPS Configuration Scripts

./vps-addip.pl VPS_HOST_NAME IP:MASK

Assigns new IP address to the VPS_HOST_NAME virtual server.

./vps-rmip.pl VPS_HOST_NAME IP[:MASK]

Removes IP from VPS_HOST_NAME.

./vps-dlimit-set VPS_HOST_NAME DISK_LIMIT_VALUE

Sets disk usage limit for VPS_HOST_NAME to DISK_LIMIT_VALUE, in Mb.

./vps-dlimit-get VPS_HOST_NAME

Returns disk limit and disk usage for VPS_HOST_NAME.

./vps-mlimit-set VPS_HOST_NAME MEMORY_LIMIT_VALUE

Sets memory limit for the VPS_HOST_NAME server to MEMORY_LIMIT_VALUE, in Mb

./vps-mlimit-get VPS_HOST_NAME

Returns memory limit and memory usage for VPS_HOST_NAME

./vps-plimit-set VPS_HOST_NAME PROCESS_LIMIT_VALUE

Sets limit on the number of processes running on VPS_HOST_NAME to PROCESS_LIMIT_VALUE, in Mb

./vps-plimit-get VPS_HOST_NAME

Returns the limit on and the number of processes running on VPS_HOST_NAME

./vps-flimit-get VPS_HOST_NAME

Returns file handlers limit, and the number of opened at this moment files VPS_HOST_NAME

./vps-flimit-set VPS_HOST_NAME

Sets file handlers limit for VPS_HOST_NAME

./vps-tcplimit-get VPS_HOST_NAME

Returns the limit on socket connections and the number of established connections for VPS VPS_HOST_NAME

./vps-tcplimit-set VPS_HOST_NAME

Sets limit for established socket connections for VPS VPS_HOST_NAME

./vps-dev-speed.pl

Tools to get|set the speed of virtual network interface.

Note: Virtual network interface speed must be divisible by 64000.

Usage:

vps-eth-speed.pl VPS_NAME [--dev=<device>|-d <device>] --get|--set <SPEED>

For more information, please run: vps-dev-speed.pl --help

./vps-dev-speed-set VPS_NAME [--dev=<device>|-d <device>] <SPEED>

Sets work speed to <SPEED> Kb/sec for virtual network interface <device> on Virtual Private Server VPS_NAME

Note: Virtual network interface speed (<SPEED> value) must be divisible by 64000.

If --dev=<device>|-d <device> option not specified, <SPEED> value will be set to all registered virtual network interfaces on VPS VPS_NAME

./vps-dev-speed-get VPS_NAME [--dev=<device>|-d <device>]

Returns work speed for virtual network interface <device> on Virtual Private Server VPS_NAME

Note: If --dev=<device>|-d <device> option not specified, returns speed for all virtual network interfaces registered on VPS VPS_NAME, in the following format:

VDEV0 SPEED0
VDEV1 SPEED1
...

./vps-start.pl [VPS_HOST_NAME | [-a|--all]]

Turns on VPS_HOST_NAME, or all known stopped VPS servers if the -a|--all option is specified.

./vps-stop.pl [VPS_HOST_NAME | [-a|--all]]

Turns off VPS_HOST_NAME, or all known running VPS servers if the -a|--all option is specified.

./vps-suspend.pl [VPS_HOST_NAME | [-a|--all]]

Suspends (turns off and sets ONBOOT=no) vserver [VPS_HOST_NAME], or all known VPS servers if the -a|--all option is specified.

./vps-resume.pl [VPS_HOST_NAME | [-a|--all]]

Resumes (turns on and sets ONBOOT=yes) vserver [VPS_HOST_NAME], or all known VPS servers if the -a|--all option is specified.

./vps-rootpwd.pl VPS_HOST_NAME

To set new password for user root, send it to STDIN.

./vps-du.pl

Returns disk usage for all known VPSs on the host server in the format required by Parallels H-Sphere Control Panel.

./vps-get-config.pl VPS_HOST_NAME

Returns all VPS configuration parameters in the format required by Parallels H-Sphere Control Panel.