I forgot also to mention that the zonemgr also has the ability
to run a command or series of commands in one, all, or specific
zones as well. Here are a few examples.
Run uname -a in one zone:
# zonemgr -a runcmd -n zone1 -X "uname -a"
Run uname -a in all zones:
# zonemgr -a runcmd -n all -X "un
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
http://www.brendangregg.com/Zones/zonerun ?
On 11/10/07, Andrew Black (delete obvious bit)
<[EMAIL PROTECTED]> 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 thr
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