티스토리 뷰

반응형
일반 시스템 정보
 
n         설치된 OS
▷ AIX, Solaris, HP-UX
# uname -s
 
n         설치된 OS 버전
▷ AIX
# oslevel
▷ Solaris, HP-UX
# uname -r
 
n         모델명
▷ AIX
# lsattr -E -l sys0 | awk '/modelname/ {print $2}'
▷ Solaris
# uname -i
▷ HP-UX
# uname -m
 
CPU 관련 정보
 
n         CPU 갯수
▷ AIX
# lsdev -Cc processor | wc -l
▷ Solaris
# psrinfo | wc -l
▷ HP-UX
# ioscan -fknC processor | grep processor | wc -l
 
n         CPU 속도
▷ AIX
# value=`lscfg -vp | grep "PS=" | head -1 | awk -F"PS=" '{print $2}' | awk -F"," '{print $1}'`
# value="0x$value"
# value=`printf "%dn" $value`
# expr $value / 1000000
▷ Solaris
# psrinfo -v `psrinfo | awk '{print $1}' | head -1` | awk '/operates/ {print $6}'
▷ HP-UX
# echo itick_per_user/D | adb -k /stand/vmunix /dev/mem | tail -1 | awk '{print $2}'
 
메모리 관련 정보
 
n         메모리 갯수
▷ AIX
# lsdev -C | grep -i memory | wc -l
 
n         메모리 용량
▷ AIX
# lsattr -E -l mem0 -a size | awk '{print $2}'
▷ Solaris
# prtconf | awk '/Memory size/ {print $3}'
▷ HP-UX
# value=`dmesg | grep Physical | grep Kbytes | awk '{print $2}'`
# expr $value / 1024
 
디스크 관련 정보
 
n         디스크 갯수
▷ AIX
# lsdev -Cc disk | wc -l
▷ Solaris
# format <<-! > /tmp/format.dat
 > 0
 > q
 > !
# cat /tmp/format.dat | grep cyl | wc -l
▷ HP-UX
# ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | wc -l
 
n         디스크 용량
▷ AIX
# lspv hdisk0 | grep "TOTAL PPs" | awk -F"(" '{print $2}' | awk '{print $1}'
▷ Solaris
# bps=`prtvtoc /dev/dsk/c0t0d0s0 | grep "bytes/sector" | awk '{print $2}'`
# sectors=`prtvtoc /dev/dsk/c0t0d0s0 | grep -v "*" | grep "^ *2" | awk '{print $5}'`
# bc -l << !
 > scale=0
 > $sectors * $bps / 1024 / 1024
 > !
▷ HP-UX
# hwpath=`ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | head -1`
# name=`ioscan -fkn -H $hwpath | grep "/rdsk/" | awk '{print $2}'`
# value=`diskinfo $name | awk '/size:/ {print $2}'`
# expr $value / 1024


출처: http://fendys.egloos.com/1977112
반응형
댓글