Oracle Solaris System Administration (MOSC)

MOSC Banner

Scripting changes to multiple zone configurations in the same Global Zone

edited Feb 12, 2014 3:16PM in Oracle Solaris System Administration (MOSC) 2 commentsAnswered ✓

Scripting changes to multiple zone configurations in the same Global Zone


So this is Solaris 11.1. I have a Global zone that has several non-global zones running in it. I want to change the capped-memory.physical resources setting in ALL the zone configs of the running zones.

if I were to do this manually here's what I would do:

Code:

zonecfg -z zone1 
select capped-memory
set physical=16G
end
verify
commit
exit

Here's the question,

How do I script that?

If it was a regular setting say:

Code:

autoboot=false

then I would do something like:

Code:

for i in `zoneadm list -c|grep -v global`; do zonecfg $i autoboot=true; done;

Howdy, Stranger!

Log In

To view full details, sign in to My Oracle Support Community.

Register

Don't have a My Oracle Support Community account? Click here to get started.

Category Leaderboard

Top contributors this month

New to My Oracle Support Community? Visit our Welcome Center

MOSC Help Center