문제

Is it possible to get one single result of the current stats from virt-top? I´ve tried to use the --stream parameter but with that I get a new result every second. I only need one result every execute of the command. How can I reach that?

도움이 되었습니까?

해결책

From the virt-top man page:

-b Batch mode. In this mode keypresses are ignored.

-n iterations Set the number of iterations to run. The default is to run continuously.

So I think what you want is:

virt-top -b -n 1

This is exactly the same as how you would achieve the same with normal "top".

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top