Linux ETC

명령어 dstat 사용하기

2015.09.01 17:35

호스트웨이 조회 수:4370

dstat 란?

- 터미널 및 콘솔에서 해당 서버의 여러가지 정보를 실시간으로 모니터링 하는 명령어


1. 설치


#yum

[root@hostway ~]# yum install dstat 


#Source

2. 옵션

dstat [-afv] [options..] [delay [count]] 

Dstat options:
  -c, --cpu              enable cpu stats
     -C 0,3,total           include cpu0, cpu3 and total
  -d, --disk             enable disk stats
     -D total,hda           include hda and total
  -g, --page             enable page stats
  -i, --int              enable interrupt stats
     -I 5,eth2              include int5 and interrupt used by eth2
  -l, --load             enable load stats
  -m, --mem              enable memory stats
  -n, --net              enable network stats
     -N eth1,total          include eth1 and total
  -p, --proc             enable process stats
  -r, --io               enable io stats (I/O requests completed)
  -s, --swap             enable swap stats
     -S swap1,total         include swap1 and total
  -t, --time             enable time/date output
  -T, --epoch            enable time counter (seconds since epoch)
  -y, --sys              enable system stats

  --aio                  enable aio stats
  --fs, --filesystem     enable fs stats
  --ipc                  enable ipc stats
  --lock                 enable lock stats
  --raw                  enable raw stats
  --socket               enable socket stats
  --tcp                  enable tcp stats
  --udp                  enable udp stats
  --unix                 enable unix stats
  --vm                   enable vm stats

  --plugin-name          enable plugins by plugin name (see manual)
  --list                 list all available plugins

  -a, --all              equals -cdngy (default)
  -f, --full             automatically expand -C, -D, -I, -N and -S lists
  -v, --vmstat           equals -pmgdsc -D total

  --bw, --blackonwhite   change colors for white background terminal
  --float                force float values on screen
  --integer              force integer values on screen
  --nocolor              disable colors (implies --noupdate)
  --noheaders            disable repetitive headers
  --noupdate             disable intermediate updates
  --output file          write CSV output to file

3. 실행


[root@hostway ~]# dstat
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read  writ| recv  send|  in   out | int   csw
  0   1  99   0   0   0| 439k  121k|   0     0 |   0     0 | 145    88
  0   0 100   0   0   0|   0     0 | 186B  838B|   0     0 |  33    16
  0   0 100   0   0   0|   0     0 | 232B  358B|   0     0 |  47    27
  0   0 100   0   0   0|   0     0 | 232B  358B|   0     0 |  24     9


명령어 옵션에 따라 각기 다른 모니터링 결과를 얻을수 있습니다.
번호 제목 글쓴이 날짜 조회 수
326 리눅스 간단 시스템 점검 1편 호스트웨이 2012.11.14 4128
325 vi 편집기에서 모든글자를 대소문자로 변경할때 사용하는 명령어 호스트웨이 2012.11.23 4139
324 VNC-server 설치 및 설정 호스트웨이 2012.10.12 4155
323 리눅스 dmesg 명령어 file 호스트웨이 2012.12.06 4158
322 rpm에서 원하는 파일만 풀어서 사용하기 호스트웨이 2015.09.19 4277
321 ngrinder를 이용한 부하 테스트 - 1) Controller 설치 file 호스트웨이 2015.04.08 4285
320 디렉토리(폴더) 색상 변경하기 file 호스트웨이 2015.09.08 4297
319 [ERROR] ftp error 500 OOPS: cannot change directory:/home/ 호스트웨이 2012.12.21 4298
318 /dev/null 과 /dev/zero의 차이 file 호스트웨이 2012.10.05 4299
» 명령어 dstat 사용하기 호스트웨이 2015.09.01 4370
316 ifconfig 항목 설명 호스트웨이 2012.11.22 4399
315 df 와 du의 출력 크기가 다르게 보이는 이유 호스트웨이 2012.12.14 4430
314 리눅스 comm 명령어를 통해 두개의 파일내용 비교하기 file 호스트웨이 2012.11.29 4433
313 useradd 명령어 사용방법 및 옵션 호스트웨이 2015.09.08 4436
312 리눅스 파일명 일괄변경하기 file 호스트웨이 2012.10.18 4469
311 리눅스 tac 명령어를 통해 파일내용 역순으로 출력하기 file 호스트웨이 2012.10.18 4487
310 Block 단위 파일 복사를 위한 dd 사용 호스트웨이 2015.09.18 4517
309 서비스 체크 스크립트 호스트웨이 2012.09.28 4537
308 리소스 많이 차지하는 프로세스 찾기 호스트웨이 2015.09.20 4562
307 Kick-Start 설정 호스트웨이 2015.09.18 4591