Overview

SolusVM offers some command line tools for various uncommon tasks. All these tools are best run as root in a standard SSH console.

Tools

Force Delete a Node

If at any point you find you have an orphaned slave node linked to your master, you can delete it by running the following command on the master node:

php /usr/local/solusvm/scripts/deletenode.php --level=force --comm=delete --id=<NODEID>

Force Delete IP Address

If at any point you find you have an orphaned ipaddress, you can delete it by running the following command on the master node:

php /usr/local/solusvm/scripts/ip.php -d --comm=remove --ipaddress=<IPADDRESS>

You must make sure the node id is correct before you proceed! All virtual servers listed under this node will be removed!
You must make sure the node id is correct before you proceed! All virtual servers listed under this node will be removed!

Generate New Admin Password

If you have lost your admin password you can reset it via an SSH session on the master. Run the following command:

php /usr/local/solusvm/scripts/pass.php --type=admin --comm=change --username=<ADMINUSERNAME>

You will get an output similar to this:

New password: Wc7Q0EbVFUasJ4j

Clear Admin Blacklist

If you find yourself blacklisted, you can clear the blacklist log by running the following command:

php /usr/local/solusvm/scripts/clearauthlog.php --system --clear=all

Change a Node Name

If you need to change a nodes name, you can do it by running the following command:

php /usr/local/solusvm/scripts/node.php --type=force --comm=name --nodeid=<NODE ID> --name=<NEW NAME>

Mass Enable/Disable Quick Backups

You can use the followng commands to enable/disable quick backups for all virtual servers:

To enable:

php /usr/local/solusvm/scripts/backup.php --user=client --type=quick --comm=on

To disable:

php /usr/local/solusvm/scripts/backup.php --user=client --type=quick --comm=off

Remove all clients with zero virtual servers

If you want to remove all client with zero virtual servers run the following command:

php /usr/local/solusvm/scripts/client.php -d --comm=removezerovps

 

Update bandwidth limit for all virtual servers with specified current limit

If you want to update the bandwidth limit for all virtual servers that have a specific amount of bandwidth set you can use this function to specify a current and new value.

All values are in GB

For example, if you want to update all virtual servers that have a 10GB bandwidth allocation to a 50GB allocation:

php /usr/local/solusvm/scripts/massupdate.php -d --action=updatebandwidth --current=10 --new=50

Only specify numeric values

 

Update bandwidth limit for all virtual servers

Only use this if all else fails. This function won’t be supported in version 2

If you want to update the bandwidth limit for all virtual servers run the following command:

php /usr/local/solusvm/scripts/vserver.php -d --comm=bandwidth --limit=<LIMIT>