Here is a simple script I created to create a top "like" output of process information based on a selected pool. I find it helpful when attempting to troubleshoot a performance issue on our large systems running several zones inside the same resource pool.
Google Doc Link
2 comments:
this is not working
error
pset
id pool size used load
0 pool_default 8 0.00 0.51
egrep: can't open /etc/zones/vas*xml
Check processes associated with pool_default
(y/n)? y
Friday 26 April 2013 12:02:19 PM IST
id pool size used load
0 pool_default 8 0.00 0.51
Zone PID User RSS PCPU NC TIME COMM
egrep: syntax error
^C
-------------
ls /etc/zones/
38_19.xml sapSandbox.xml
billing-DEV-WholeRoot.xml sapSANDBOX.xml
billing-DEV-WholeRoot.xml_24022013 SUNWblank.xml
billing-DEV.xml SUNWdefault.xml
billing-UAT-WholeRoot.xml SUNWsolaris8.xml
billing-UAT.xml SUNWsolaris9.xml
global.xml SUNWtsoldef.xml
index temp-SAS-training.xml
Looks like I hard coded the naming convention of the zones at my old employer, all of our zones were named vas...
You would have to modify the line:
INPOOLZONES=$(egrep "zone name" /etc/zones/vas*xml|egrep -v " pool="|awk -F"\"" '{printf "%s|",$2} END { printf "\n"}'|sed 's/|$//g')
to reflect your local naming convention.
Post a Comment