Commit graph

14 commits

Author SHA1 Message Date
Alexis Ben Miloud--Josselin e179979d23 Add -o option
Some checks reported errors
continuous-integration/drone/push Build encountered an error
This option control the output of the script. Possible output are human
(same as usual), html and csv.

This commit also does some minor syntax changes.
2019-07-29 16:47:42 +02:00
Alexis Ben Miloud--Josselin 7cdea6920e [kvmstats] do not use subshell
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-26 16:50:38 +02:00
Alexis Ben Miloud--Josselin 7ead702375 [kvmstats] use xargs instead of variables 2019-07-26 16:12:38 +02:00
Alexis Ben Miloud--Josselin a1c96fd929 [kvmstats] typo
All checks were successful
continuous-integration/drone/push Build is passing
2019-07-26 15:49:34 +02:00
Alexis Ben Miloud--Josselin a4a7eda8e2 [kvmstats] add error function
Some checks reported errors
continuous-integration/drone/push Build encountered an error
2019-07-26 15:48:23 +02:00
Benoît S. b092fba8cd Use nproc to detect numbers of CPU
Some checks reported errors
continuous-integration/drone/push Build encountered an error
continuous-integration/drone/pr Build is passing
2019-04-19 10:25:22 +02:00
Alexis Ben Miloud--Josselin 20cecaa77a Fix line print
On the last awk command, line containing "yes"
were printed two times.
2018-12-27 10:37:55 +01:00
Alexis Ben Miloud--Josselin e12c362f7b Fix unit -u option
Also clean the code
2018-12-27 10:37:55 +01:00
Alexis Ben Miloud--Josselin 2e516bb734 Do not use tempfile
It is not needed anymore.
2018-11-02 17:32:19 +01:00
Alexis Ben Miloud--Josselin d8c77c59d3 Use virsh instead of hxselect
Also remove lvs. The code is much simpler now!
2018-10-11 14:48:44 +02:00
Alexis Ben Miloud--Josselin 93fc44aa06 Move depencies checking before args parsing
This commit also adds bc(1) to the dependencies
list and fixed some comments.
2018-08-02 18:04:28 +02:00
Alexis Ben Miloud--Josselin cfa1cf2261 Only count running VM in total
This commit also fixes the way kvmstats counts
running VM.
2018-08-02 17:39:16 +02:00
Alexis Ben Miloud--Josselin 4b5c68ca57 Add a way to show available ressources
This can be done using the -a option.
2018-08-02 17:28:58 +02:00
Victor LABORIE bf385b9749 Rename script without extension and make them executable 2018-07-27 11:50:28 +02:00
Renamed from kvmstats.sh (Browse further)