If the action that you want to perform against all zones is to boot or halt, you can use the Zone Manager like so...
To halt all zones: zonemgr -a only -n haltall To boot all zones: zonemgr -a only -n bootall Or if you just want to run a command on all non-global zones, you can use the following script. =-=-= Script Starts Here =-=-= #!/bin/sh runcmd="${*}" myzones=`zoneadm list -cp| cut -d: -f2 |grep -v global` for myzone in $myzones do zlogin -S "${myzone}" "${runcmd}" done =-=-= Script Ends Here =-=-= Regards, Brad The Zone Manager http://opensolaris.org/os/project/zonemgr On Sat, 2007-11-10 at 12:35 +0000, Andrew Black (delete obvious bit) wrote: > Hi > i would like to run same command on all zones. > Googling sauggests thet following, but the link is broken. > > > Blog O Matty Solaris Zones - 12:29 > While reading through Brendan Greggs Solaris zones tutorial, I ran across > his zonerun script. This nifty little script allows you to run a command > across ... > > _______________________________________________ > zones-discuss mailing list > zones-discuss@opensolaris.org _______________________________________________ zones-discuss mailing list zones-discuss@opensolaris.org