Does any one know the latest Solaris 10_Recommended Cluster_Patch has update
5 release. The Patch Cluster release on
Apr/22/08. Pl.let me know and what are the new features in Solaris Update 5
Release?
--
Regards,
SysAdmin
___
zones-discuss mailing lis
All
I'm trying to write a script that will shutdown all zones from the local
zone. I'm not terribly good with scripting (yet), but thought many of you
would be.
I need to run the command "zoneadm list" and then output each line to a
different variable to run this command:
zlogin $zonename1 sh
Anne Moore wrote:
> All
>
> I'm trying to write a script that will shutdown all zones from the local
> zone. I'm not terribly good with scripting (yet), but thought many of
> you would be.
>
> I need to run the command "zoneadm list" and then output each line to a
> different variable to run
for zone in `zoneadm list`
do
if [ "$zone" = "global" ]; then continue;
else
zlogin -S $zone "shutdown -y -g0 -i0"
fi
done
Anne Moore wrote:
All
I'm trying to write a script that will shutdown all zones from the
local zone. I'm not terribly good with scr
Anne,
Something like this should work for you:
===
#!/bin/sh
for z in `zoneadm list`
do
if [ "$z" = "global" ]; then continue
fi
zlogin $z shutdown -y -g0 -i0
done
Regards,
Craig
In response to Anne Moore, who said:
> All
>
You guys are awesome. Thanks for the great responses!
Anne
-Original Message-
From: Jordan Brown (Sun) [mailto:[EMAIL PROTECTED]
Sent: Friday, May 09, 2008 2:17 PM
To: Anne Moore
Cc: zones-discuss@opensolaris.org
Subject: Re: [zones-discuss] Script run from global zone into local zones
surely use zoneadm halt instead of zlogin ?
along with zoneadm list -p and grep for running zones..
for z in `zoneadmn list -p | grep running | grep -v global | awk -F: '{print
$2}'`
do
zoneadm halt $z
done
Regards,
Sean.
.
Craig Cory stated:
< Anne,
<
< Something like this should wor
Depends on whether you want to take the zone down *now* or want the
gradual shutdown behavior of shutdown. Granted, -g0 is pretty abrupt.
Sean McGrath - Sun Microsystems Ireland wrote:
>
> surely use zoneadm halt instead of zlogin ?
>along with zoneadm list -p and grep for running zones..
Beware that the 'halt' command will use killall to stop all processes -
perhaps too severe for your delicate applications. 'shutdown'/'init #' will
use the smf system for state changes.
Craig
In response to Jordan Brown (Sun), who said:
> Depends on whether you want to take the zone down *now* o