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 SFTP 접속 방법 file 호스트웨이 2012.09.21 6768
105 SYN_Flooding 공격 막기 호스트웨이 2015.09.25 6552
104 mknod_장치파일을 만들어 사용 호스트웨이 2015.09.22 6498
103 사용하고 있던 외장하드가 마운트 되지 않는 경우 호스트웨이 2015.09.22 6452
102 SVN(subversion) 설치 및 셋팅 file 호스트웨이 2014.12.02 6419
101 오늘 생성한 파일만 조회하기 호스트웨이 2012.12.27 6215
100 ls -l 출력 시 날짜형태 변경 호스트웨이 2012.12.27 6128
99 Touch 파일 용량 0바이트 만들기 호스트웨이 2015.09.20 6111
98 lrzsz 사용해보기 호스트웨이 2012.10.12 6060
97 Linux chkrootkit을 이용한 백도어 설치 탐지 호스트웨이 2015.09.18 5932
96 tar 분할압축하기 호스트웨이 2015.09.19 5873
95 LAN 카드에 여러개의 IP 주소 할당 호스트웨이 2015.09.18 5768
94 서버 네트워크 대역폭 제한 호스트웨이 2015.09.20 5715
93 dumpe2fs - 파일시스템 상세 정보 확인 호스트웨이 2015.09.18 5611
92 Proftp 설치 및 xinetd 에서 실행하기 file 호스트웨이 2015.09.18 5588
91 Linux -(하이픈)으로 시작하는 파일 지우기 호스트웨이 2015.09.20 5498
90 리눅스 캐시 메모리 비우기 file 호스트웨이 2012.12.26 5267
89 리눅스 파일 및 디렉토리 권한 관리 file 호스트웨이 2015.09.13 5181
88 패키지에 포함된 리스트 확인하기 호스트웨이 2012.12.07 5084
87 Web site에서 php error log 출력하지 않기 호스트웨이 2012.11.01 5047