How to stop all VPS on a SolusVM node?

Applicable to:

  • SolusVM

Question

How to stop all VPS on a SolusVM node?

Answer

Stopping all VPS on a SolusVM node is possible only manually on the required node:

For OpenVZ 6 node
  1. Access the SolusVM OpenVZ 6 node over

  2. Execute

    # for i in `vzlist | awk '{ print $1}' | awk 'NR>1'`; do vzctl stop $i;done

For OpenVZ 7 node
  1. Access SolusVM OpenVZ 7 node over SSH.

  2. Execute

    # for i in `prlctl list | awk '{ print $5}' | awk 'NR>1'`; do vzctl stop $i;done

For KVM node
  1. Access SolusVM KVM node over SSH.

  2. Execute

    # for i in `virsh list | grep kvm | awk '{ print $2}'`; do virsh destroy $i;done

For Xen node
  1. Access SolusVM Xen node over SSH.

  2. Execute

    # for i in `xl list | awk '{ print $1}' | awk 'NR>3'`; do xl destroy $i;done

Articles in this section

Was this article helpful?
0 out of 0 found this helpful
Share

Comments

0 comments

Please sign in to leave a comment.