Commit fd324f44 authored by Vitaly Lipatov's avatar Vitaly Lipatov

evz-docker: implement load

parent 5c7c7838
......@@ -164,6 +164,13 @@ case $CMD in
vzlist $LIST -o ctid,ip,hostname,diskspace
#done
;;
load) # HELPCMD: print load average for container(s) by list
for id in $(get_list "$@") ; do
HN=$(a= docker inspect --format '{{.Name}}' $id)
CPU=$(a= docker stats --no-stream --format " {{.CPUPerc}}" $id)
printf "%4s (%30s): %6s\n" $id $HN $CPU
done
;;
destroy) # HELPCMD: destroy container(s) by list
echo "You request to destroy follow containers:"
# don't support all/ALL
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment