Default dstat choices
Have been you to make use of the dstat command with no choices, the output would come with much more particulars than you would possibly count on and would look extra like what you see under.
$ dstat You didn't choose any stats, utilizing -cdngy by default. ----total-usage---- -dsk/total- -net/total- ---paging-- ---system-- usr sys idl wai stl| learn writ| recv ship| in out | int csw 1 1 96 1 0| 16k 1128k| 54B 674B| 0 0 | 195 295 0 0 99 0 0| 0 4093B| 54B 354B| 0 0 | 129 208 1 0 99 0 0| 0 0 | 500B 354B| 0 0 | 115 170 0 0 99 0 0| 0 0 | 54B 354B| 0 0 | 65 111 1 1 99 0 0| 0 0 | 54B 354B| 0 0 | 99 157 0 0 99 0 0| 0 0 | 54B 354B| 0 0 | 63 113^c
Discover that this output contains stats utilization, disk learn and write, community exercise, paging and system stats. The output from utilizing dstat with out choices is identical as utilizing dstat with the “cdngy” choices (dstat -cdngy).
To get eight traces of this info in 2-second intervals, add the numeric arguments as proven on this command:
$ dstat 2 8 You didn't choose any stats, utilizing -cdngy by default. ----total-usage---- -dsk/total- -net/total- ---paging-- ---system-- usr sys idl wai stl| learn writ| recv ship| in out | int csw 0 0 99 0 0| 0 0 | 298B 541B| 0 0 | 123 197 0 0 99 0 0| 0 0 | 54B 346B| 0 0 | 64 114 0 0 99 0 0| 0 0 | 87B 515B| 0 0 | 66 117 0 0 99 0 0| 0 0 | 54B 346B| 0 0 | 78 125 1 0 100 0 0| 0 0 | 277B 346B| 0 0 | 62 113 1 1 99 0 0| 0 0 |3893B 411B| 0 0 | 110 144 5 0 85 10 0| 0 128k| 54B 346B| 0 0 | 213 152 1 0 98 0 0| 0 180k| 54B 354B| 0 0 | 92 149
Getting assist
Word that the dstat command doesn’t at all times include a person web page. Nevertheless, you will get a listing of the command’s choices and what every choice represents utilizing the dstat –assist command.
$ dstat --help Utilization: dstat [-afv] [options...] [delay [count]] Versatile software for producing system useful resource statistics Dstat choices: -c, --cpu allow cpu stats -C 0,3,complete embrace cpu0, cpu3 and complete -d, --disk allow disk stats -D complete,sda embrace sda and complete --dm, --device-mapper allow system mapper stats -L root,dwelling,complete embrace root, dwelling and complete --md, --multi-device allow multi-device driver stats -M complete,md-0 embrace md-0 and complete --part, --partition allow disk partition stats -P complete,sdb2 embrace sdb2 and complete -g, --page allow web page stats -i, --int allow interrupt stats -I 9,CAL embrace int9 and performance name interrupts -l, --load allow load stats -m, --mem allow reminiscence stats -n, --net allow community stats -N eth1,complete embrace eth1 and complete -p, --proc allow course of stats -r, --io allow io stats (I/O requests accomplished) -s, --swap allow swap stats -S swap1,complete embrace swap1 and complete -t, --time allow time/date output --time-adv allow time/date output (with milliseconds) -T, --epoch allow time counter (seconds since epoch) --epoch-adv allow time counter (milliseconds since epoch) -y, --sys allow system stats --aio allow aio stats --fs, --filesystem allow fs stats --ipc allow ipcstats --lock allow lockstats --raw allow rawstats --socket allow socketstats --tcp allow tcpstats --udp allow udpstats --unix allow unixstats --vm allow vmstats --vm-adv allow superior vm stats --list record all obtainable plugins --plugin allow exterior plugin by title, see --list -a, --all equals -cdngy (default) -f, --full routinely increase -C, -D, -I, -N and -S lists -v, --vmstat equals -pmgdsc -D complete --bits pressure bits for values expressed in bytes --float pressure float values on display --integer pressure integer values on display --bw, --blackonwhite change colours for white background terminal --color pressure colours --nocolor disable colours --noheaders disable repetitive headers --noupdate disable intermediate updates --nomissed disable missed ticks warnings -o file, --output=file write CSV output to file
Utilizing different choices
The cdngy arguments (as you may inform from the output above) signify cpu, disk, community, paging and system stats. To show used and free reminiscence with dstat, use a command like this:
$ dstat -s ---total--- used free 768k 3783M 768k 3783M 768k 3783M 768k 3783M 768k 3783M 768k 3783M
To show prime CPU usages, you would use a command like this: