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


명령어 옵션에 따라 각기 다른 모니터링 결과를 얻을수 있습니다.
번호 제목 글쓴이 날짜 조회 수
106 CentOS 6 – root 패스워드 변경하기 호스트웨이 2012.04.20 22369
105 부하 테스트 - 1편 / 시스템 하드웨어 stress tool 호스트웨이 2012.04.20 30879
104 파일 내용 출력 관련된 명령어 호스트웨이 2012.04.20 18276
103 리눅스 커널 버전 의미 file 호스트웨이 2012.04.20 27108
102 Telnet을 이용하여 Linux서버 원격접속 file 호스트웨이 2012.04.13 20530
101 리눅스에서 iso 이미지 활용하기 호스트웨이 2012.04.13 19400
100 ngrep 사용법 호스트웨이 2012.04.13 16811
99 국가명 약어 (국가코드) 호스트웨이 2012.04.13 65001
98 서비스 이름으로 포트 번호 확인하기 호스트웨이 2012.04.13 57735
97 chattr 명령을 이용한 파일 속성 변경 file 호스트웨이 2012.04.07 18564
96 vsftpd.conf 옵션 설명 호스트웨이 2012.04.06 16819
95 서버 아이피 변경으로 인한 다량의 네임서버 존파일 일괄 변경 방법 호스트웨이 2012.04.06 14685
94 ipv6 비활성화 하기 호스트웨이 2012.04.06 25465
93 계정 생성 시 ftp 계정만 주고 Shell 로그인 차단하기 file 호스트웨이 2012.04.06 23716
92 Linux lastlog를 이용한 최근 접속정보 확인 file 호스트웨이 2012.04.06 19747
91 VI 편집기에서 사용되는 명령어(2) 호스트웨이 2012.04.06 13737
90 Linux Charset 확인 및 변경 file 호스트웨이 2012.03.30 85129
89 VI 편집기에서 사용되는 명령어 호스트웨이 2012.03.30 13909
88 Linux 서버 root password 분실시 변경 방법 file 호스트웨이 2012.03.30 24005
87 find 명령어-1 호스트웨이 2012.03.30 14935