开启ssh 执行命令
esxcli vm process list |grep Config |cut -b 17- |xargs cat |grep numvcpus |cut -d " " -f 3 |sed "s/"/ /g" |awk '{sum +=$1}END{print sum}'
开启ssh 执行命令
esxcli vm process list |grep Config |cut -b 17- |xargs cat |grep numvcpus |cut -d " " -f 3 |sed "s/"/ /g" |awk '{sum +=$1}END{print sum}'