로그인
Sign in
Unix Health Check


Note Many of these procedures can be scripted.

1.  Check for problem conditions
system logs error/warning

HPUX:  
grep -i  -e "EMS" -e "error" -e "warning" -e "excessive" /var/adm/syslog/syslog.log | more
tail /etc/shutdownlog

hardware problems

HPUX:
ioscan -fnC disk | more
ioscan -fnC fc | more
ioscan -fnC processor | more
ioscan -fnC ba | more
ioscan -fnC memory

filesystems full

HPUX:
bdf | more

AIX|SUN|LINUX
df|more


2.  Overview of the system
top/topas
glance (if HPUX)

Processor Utilization
Disk Utilization
Memory Utilization
Paging/Swapping
Busiest Processes



3.  Memory
RAM
Swapping/Paging

swapinfo

vmstat  (avm - active virtual memory pages, pi - pages swapped in, po - pages swapped out)

sar -g
sar -w ??
ipcs

Are the swap disks > 50% busy?

4.  Processor Bottleneck

% utilization
% system time vs %user time
uptime
sar -q  (runq-sz  run queue, swpq-sz  swap queue)
sar -u  (%usr, %sys, %wio - wait i/o)
On Sun
iostat -xc
Don't collect more than 100 samples
Strip out idle disks
Set an appropriate interval
For 24 hours use 15 mins
For 10 mins use 10 secs

5.  Disk Bottleneck

In General

Check for adequate free space
Check for high utilization
sar -d   (%busy and avque)
iostat (bps - kb per sec)
On Sun

iostat -xn 30
Look for disks > 5% busy and average response times > 30 ms  (svc_t)



6.  Processes
Busiest Processes  ps -ef | sed 1d | sort -rn +6|head
Zombies  ps -ef|grep -i defun


sar -w  (swpins, swpots)
vmstat (procs - b  => blocked)

7.  Network
Utilization
Packet rate on each interface
Errors

netstat -s | more

nettune/ndd
nfsstat

netstat -i
nfsstat
netstat -s
조회 수 :
6504
추천 수 :
6 / 0
등록일 :
2006.02.21
11:03:51 (*.236.3.241)
엮인글 :
http://bestceok.com/xe/index.php?mid=unix_com&document_srl=2709&act=trackback&key=0e8
게시글 주소 :
http://bestceok.com/xe/index.php?mid=unix_com&document_srl=2709
List of Articles
번호 제목 글쓴이 날짜 조회 수
공지 자주 사용하는 명령어 제비게릴라 2019-06-27 20927
53 LSOF 설치 및 사용가이드 하록 2006-12-04 6309
52 /etc/lvmtab의 내용과 ioscan의 Disk Path 바뀔 때 수정 방법 하록 2006-07-20 6562
51 APM 설치 옵션 하록 2006-07-05 6386
50 CDE에서 로그인시 자동으로 프로그램 시작하는 방법 하록 2006-06-21 6494
49 System Error시에 볼 파일... 하록 2006-04-12 6546
48 glance 옵션... 하록 2006-03-22 6756
47 대랑 접속 시도 Process 검색.... 하록 2006-03-22 6151
46 Logtool Tutorial: Summary 하록 2006-02-21 6194
» Unix Health Check 하록 2006-02-21 6504
44 Mirrored된 Disk를 분리하는 방법 하록 2006-02-21 6639
43 시스템 crash 분석 방법 하록 2006-02-21 6447
42 Fast Ethernet Duplex 설정 하록 2006-02-03 6357
41 ftp, telnet 사용시 권한을 제한 하는 방법 하록 2005-11-10 8026
40 EMC에 연동된 Path 찾는 방법 하록 2005-11-03 9984
39 Linux Lan BandWidth 확인 방법 하록 2005-09-21 5953
38 history파일에 사용된 command에 시간을 넣는 방법 하록 2005-08-16 5646
37 q4 이용 덤프 분석 하록 2005-08-16 6319
36 Install시 terminal type 하록 2005-08-16 7824
35 Disk Striping 하록 2005-08-16 6289
34 커널 재구성 방법(SCSI DAT 추가시) 하록 2005-08-16 6254