OpenVZ Forum


Home » Mailing lists » Users » a simple utility to execute something on all VEs
a simple utility to execute something on all VEs [message #25620] Thu, 03 January 2008 18:49 Go to next message
Gregor Mosheh is currently offline  Gregor Mosheh
Messages: 62
Registered: April 2007
Member
http://wiki.openvz.org/ExecuteInAllVEs

Simple but useful. If anybody has further enhancements, that'd be spiffy.

-- 
Gregor Mosheh / Greg Allensworth
System Administrator, HostGIS cartographic development & hosting services
http://www.HostGIS.com/

"Remember that no one cares if you can back up,
  only if you can restore." - AMANDA
Re: a simple utility to execute something on all VEs [message #25621 is a reply to message #25620] Thu, 03 January 2008 22:40 Go to previous message
Thorsten Schifferdeck is currently offline  Thorsten Schifferdeck
Messages: 38
Registered: February 2006
Member
Hi Gregor,

i suggest to use vzlist, insteed looking to /etc/vz/conf, so only 
command will execute on running ve's and it's you dont like execute 
command on VE 0, there's a 0.conf in /etc/vz/conf, too ;-)

# for veid in `vzlist -Hoveid`; do vzctl exec $veid <command>; done

Bye,
  Thorsten

Gregor Mosheh wrote:
> http://wiki.openvz.org/ExecuteInAllVEs
> 
> Simple but useful. If anybody has further enhancements, that'd be spiffy.
>
Previous Topic: *SOLVED* no internet inside ve
Next Topic: Memory calculations
Goto Forum:
  


Current Time: Fri Nov 08 21:50:59 GMT 2024

Total time taken to generate the page: 0.03306 seconds