Hello Mike
>> with sed,grep and awk possible:
>>   /usr/bin/prstat -LZ -n 1,10 1 1 | sed '1,3d' | grep -v Total
>>       0      216  111M  139M   6.8%   0:09:05 0.1% global
>>      20      100   40M   23M   1.1%   0:00:32 0.0% v0136
> Potential improvements on that are:
>
> $ ps -Leo zone | sort | uniq -c | sort -n
>    1     ZONE
>  110       z1
>  319   global
>
> $ ps -Lz z1 -o pid= | wc -l
>      109
>
> The reason that these are improvements are:
>
> - We don't force ps to do any name lookups.  If name lookups are
> broken for some reason (e.g. ldap server failure), you want to
> minimize the amount of monitoring that breaks.
> - No use of imprecise grep patterns that could match process names or
> substrings of other zones.
> - If you have a lot of zones, prstat may not list the least active ones. 
thanks a lot

evening saved, and learned something ;-)

Cheers Christian
_______________________________________________
zones-discuss mailing list
zones-discuss@opensolaris.org

Reply via email to