标签:== 内存 col env class 查找 || sed lis
查找内存超过5%,CPU超过10%
CPU=${1:-10} MEM=${2:-5} for CTID in `vzlist|sed ‘1d‘|awk ‘{print $1}‘` { echo "=========== $CTID ===========" vzctl exec $CTID ps aux|awk ‘$3>=‘"${CPU}"‘||$4>=‘"${MEM}"‘{print $0}‘ }
标签:== 内存 col env class 查找 || sed lis
原文地址:https://www.cnblogs.com/xiangxisheng/p/9076447.html