Page tree
Skip to end of metadata
Go to start of metadata

This utility is capable of performing the following actions in CLI:

Action add-plan-openvz

This action adds Plan for OpenVZ with the specified parameters.

Option

Parameter

Description


--plan-name
Plan nameMandatory
--hdd
Hdd value(in GBs)Mandatory
--ram
Guaranteed RAM(in MBs)Mandatory
--bursted-ram
Bursted RAM(in MBs)Mandatory
--bandwidth
Bandwidth(in GBs)Mandatory

Example

php /usr/local/solusvm/scripts/solusvm --action=add-plan-openvz --plan-name=test --hdd=10 --ram=256 --bursted-ram=386 --bandwidth=10

Action add-api-user

This action creates API user without IP restriction

Option

Parameter

Description


----

Example

php /usr/local/solusvm/scripts/solusvm --action=add-api-user

Action add-template-openvz

This action adds legacy template for OpenVZ with the specified parameters.

Option

Parameter

Description


--file-name
Template file nameMandatory
--template-name
Template nameMandatory
--description
Template descriptionMandatory
--status

Active/Disabled

Template statusMandatory
--archx86_64/i386Template architectureMandatory

Example

php /usr/local/solusvm/scripts/solusvm --action=add-template-openvz --file-name=centos-6-x86_64.tar.gz --template-name=test --description=test --status=Active --arch=x86_64

Action add-ipv4-block

This action registers IPv4 block in SolusVM

Option

Parameter

Description


--node-nameMust corresponds to the node nameNode nameMandatory
--block-name
Ipv4 Block nameMandatory
--gateway
GatewayMandatory
--nameserver1


nameserverMandatory
--nameserver2
nameserverMandatory
--netmask
netmaskMandatory

Example

php /usr/local/solusvm/scripts/solusvm --action=add-ipv4-block --node-name=centos6 --block-name=test --gateway=1.2.3.4 --nameserver1=1.2.3.4 --nameserver2=1.2.3.4 --netmask=1.2.3.4

Action add-ipv4-address

This action registers IPv4 IP address in IPv4 block in SolusVM

Option

Parameter

Description


--ipv4-address
Ipv4 addressMandatory
--block-name
Ipv4 Block nameMandatory

Example

php /usr/local/solusvm/scripts/solusvm --action=add-ipv4-address --ipv4-address=1.2.3.4 --block-name=test
  • No labels