| « When user has last changed his password in Solaris | Solaris 10 container guide » |
Zones related commands
Digging through internet while deep-diving into Solaris zones, I have found few interesting commands, that related to the zones. Worth checking out:
zonename - prints the name of the current zone
ifconfig e1000g0:1 -zone zone01 - get the IP for this Virtual NIC back to the global zone from the local zone01
ifconfig e1000g0:1 zone zone01 - vice versa, i.e. get the IP from the global zone, attached to this VNIC to the local zone01
ifconfig -Z - executes command for all interfaces in the users zone
ipcrm -z <zonename> - deletes a message queue, a semaphore set or a shared memory ID of a zone
patchadd/pkgadd -G - install patch/package only in global zone
pkill -z <zoneID> - pkill applied to that zone
poolbind -i zoneid <zonename> - attach all processes in that zone to the pool
prctl -i zoneid <zonename> - Displaying and modification of resource controls of zone processes
priocntl -i zoneid <zonename> - Displaying and changing the scheduling parameters in a zone.
rctladm - Displaying and modification of global settings for resource controls
renice -i zoneid <zonename> - modifies the priority of the processes inside the zone
df -hZ - display zone mounts
ipcs -z - displays interprocess communication parameters of a zone
pgrep -z <zoneid> - grep through processes inside the zone
prstat -z <zonename> - show info re processes in particular zone
prstat -Z - show info re global zone AND local zones in the bottom
ps -z <zonename> - show info re processes in particular zone
ps -Z - display the zone process belongs to