Scripting changes to multiple zone configurations in the same Global Zone
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:
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;