이럴수가 asdf 마구 치다가 우연히 찾은 명령어다.
아직 자세하게 뭔지는 모르기에 man page 가져다 붙여두고
좀 봐야겠다.
SADF(1) Linux User's Manual SADF(1)
NAME
sadf - Display data collected by sar in multiple formats.
SYNOPSIS
sadf [ -d | -D | -H | -p | -x ] [ -t ] [ -V ] [ -P { cpu | ALL } ] [ -s
[ hh:mm:ss ] ] [ -e [ hh:mm:ss ] ] [ -- sar_options... ] [ interval [
count ] ] [ datafile ]
DESCRIPTION
The sadf command is used for displaying the contents of data files cre-
ated by the sar(1) command. But unlike sar, sadf can write its data in
many different formats. The default format is one that can easily be
handled by pattern processing commands like awk (see option -p).
The sadf command extracts and writes to standard output records saved
in the datafile file. This file must have been created by a version of
sar which is compatible with that of sadf. If datafile is omitted,
sadf uses the standard system activity file, the /var/log/sa/sadd file,
where the dd parameter indicates the current day.
The interval and count parameters are used to tell sadf to select count
records at interval second intervals. If the count parameter is not
set, then all the records saved in the data file will be displayed.
All the activity flags of sar may be entered on the command line to
indicate which activities are to be reported. Before specifying them,
put a pair of dashes (--) on the command line in order not to confuse
the flags with those of sadf. Not specifying any flags selects only
CPU activity.
실행 결과
------------------------------------------
$ sadf TEST 604 1343229001 all %user 0.50 TEST 604 1343229001 all %nice 0.00 TEST 604 1343229001 all %system 1.75 TEST 604 1343229001 all %iowait 0.01 TEST 604 1343229001 all %steal 0.00 TEST 604 1343229001 all %idle 97.74 TEST 604 1343229601 all %user 0.46 TEST 604 1343229601 all %nice 0.04 TEST 604 1343229601 all %system 1.72 TEST 604 1343229601 all %iowait 0.00 TEST 604 1343229601 all %steal 0.00 TEST 604 1343229601 all %idle 97.77 TEST 603 1343230201 all %user 0.48 TEST 603 1343230201 all %nice 0.00 TEST 603 1343230201 all %system 1.74 TEST 603 1343230201 all %iowait 0.00 TEST 603 1343230201 all %steal 0.00 TEST 603 1343230201 all %idle 97.79 TEST 604 1343230801 all %user 0.47 TEST 604 1343230801 all %nice 0.00 TEST 604 1343230801 all %system 1.72 TEST 604 1343230801 all %iowait 0.00 TEST 604 1343230801 all %steal 0.00 TEST 604 1343230801 all %idle 97.80 TEST 605 1343231401 all %user 0.47 TEST 605 1343231401 all %nice 0.00 TEST 605 1343231401 all %system 1.73 TEST 605 1343231401 all %iowait 0.00 TEST 605 1343231401 all %steal 0.00 TEST 605 1343231401 all %idle 97.79 TEST 604 1343232001 all %user 0.47 TEST 604 1343232001 all %nice 0.00 TEST 604 1343232001 all %system 1.74 TEST 604 1343232001 all %iowait 0.01 TEST 604 1343232001 all %steal 0.00 TEST 604 1343232001 all %idle 97.78
------------------------------------------
'Linux' 카테고리의 다른 글
모든 OS의 시스템 에러넘버 [errno] 확인 웹페이지 (465) | 2012.08.22 |
---|---|
특수문자 파일명 디렉토리명 삭제 (inode이용) (446) | 2012.07.31 |
사용가능한 클라이언트 포트번호 범위 찾기 (LINUX) (464) | 2012.07.24 |
stderr를 stdout으로 출력하는 법 (297) | 2012.07.24 |
네트워크 속도체크 (iperf - network bandwidth check 옵션 설명) (8) | 2012.07.18 |