OpenVZ Forum


Home » General » Support » *DISCUSSION* OVZ command to start/stop VE based on status.
Re: OVZ command to start/stop VE based on status. [message #14795 is a reply to message #14730] Wed, 11 July 2007 00:25 Go to previous messageGo to previous message
curx
Messages: 739
Registered: February 2006
Location: Nürnberg, Germany
Senior Member

Hi,

use the command "vzlist" to determine the stati of VE's,
more help with vzlist (-> man page of vzlist).

# start all stopped VE's
for VE in `vzlist -SHoveid`; do
echo $VE
vzctl start $VE
done

# stop all running VE's
for VE in `vzlist -SHoveid`; do
echo $VE
vzctl start $VE
done

 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: *BUG REPORTED* vzmigrate with NFS
Next Topic: *KNOWN ISSUE* Problems with online migration on 031 kernel
Goto Forum:
  


Current Time: Mon Oct 13 10:55:28 GMT 2025

Total time taken to generate the page: 0.25874 seconds