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 읽기 전용 파티션 읽고 쓸수 있게 재마운트하는 방법 호스트웨이 2015.09.13 2720
325 vsftpd 패시브 모드 설정 호스트웨이 2015.09.13 3345
324 우분투 서버에 JDK7 설치하기 호스트웨이 2015.09.13 1360
323 리눅스 파일 및 디렉토리 권한 관리 file 호스트웨이 2015.09.13 5186
322 root 초기 접속 홈디렉토리 변경하기 호스트웨이 2015.09.12 7040
321 Linux 외장 저장장치 mount file 호스트웨이 2015.09.10 1397
320 SNMPD LOG 안남게 하기 호스트웨이 2015.09.10 2891
319 XFS 파티션 설치 및 마운트 (CentOS 기준) 호스트웨이 2015.09.09 25395
318 UTF-8 환경의 Linux 에서 SAMBA 한글 인코딩 문제 해결 방법 호스트웨이 2015.09.09 3290
317 500 FTP server shut down 문제 해결 호스트웨이 2015.09.09 2404
316 Linux vmstat 명령어 호스트웨이 2015.09.08 1094
315 useradd 명령어 사용방법 및 옵션 호스트웨이 2015.09.08 4439
314 linux 특정 용량으로 파일을 찾기, 삭제하기 호스트웨이 2015.09.08 4693
313 apache log rotatelogs 관리 호스트웨이 2015.09.08 3789
312 디렉토리(폴더) 색상 변경하기 file 호스트웨이 2015.09.08 4297
311 리눅스 파일 소유자, 권한 일괄 변경하기 호스트웨이 2015.09.08 7779
310 Log file 주기적으로 정리하기 호스트웨이 2015.09.08 1644
309 UTF-8 환경에서 리눅스 한글 꺠짐 현상 해결법 호스트웨이 2015.09.08 2771
308 리눅스 UTF-8 언어 설정 호스트웨이 2015.09.07 27655
307 cdp 백업 프로세스 관련 호스트웨이 2015.09.07 1007