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


명령어 옵션에 따라 각기 다른 모니터링 결과를 얻을수 있습니다.
번호 제목 글쓴이 날짜 조회 수
386 scp 명령어를 이용한 파일 복사 및 전송 호스트웨이 2012.03.16 264430
385 ls 명령어의 파일 사이즈 쉽게 확인하기 호스트웨이 2012.10.23 176003
384 리눅스 서버 누가 언제 무슨 작업을 했는지 확인 방법 호스트웨이 2012.03.09 93307
383 sar 명령 옵션 호스트웨이 2012.06.15 92134
382 Linux Charset 확인 및 변경 file 호스트웨이 2012.03.30 84962
381 ulimit 설정 관련 호스트웨이 2015.07.29 77605
380 Swap 메모리 늘리기 file 호스트웨이 2012.03.30 67199
379 국가명 약어 (국가코드) 호스트웨이 2012.04.13 64960
378 head 와 tail 사용하기 sylee 2008.05.14 63472
377 비대해진 로그 파일 내용을 비우는 방법 - /dev/null 호스트웨이 2012.03.16 61402
376 서비스 이름으로 포트 번호 확인하기 호스트웨이 2012.04.13 57713
375 fdisk 명령어를 이용하여 수동으로 파티션 나누기 file 호스트웨이 2015.11.30 57673
374 강제 umount 방법 (umount : device is busy 발생시) 호스트웨이 2012.11.30 55422
373 top 명령어 및 옵션 설명 file 호스트웨이 2012.03.27 52526
372 xinetd 소개 및 설정 호스트웨이 2012.06.29 51903
371 history 조회시 '날짜,시간' 표시하기 호스트웨이 2012.03.16 49280
370 시스템 시간 확인 및 동기화 하기 sylee 2008.05.15 46973
369 /bin/false, /sbin/nologin 의 차이점 호스트웨이 2012.08.10 45631
368 Kernel Parameters HOSTWAY 2008.06.04 45455
367 ssh-key를 생성하여 서버에 패스워드 없이 접속하는 방법 jook 2008.06.25 44751