hp-ux, sun, ibm ¼­¹öÀÇ cpu, memmory Á¤º¸
ÀÛ¼ºÀÚ °ü¸®ÀÚ ÀÛ¼º½Ã°£ 2009-07-16 12:42:48
 

http://database.sarang.net/?inc=read&aid=27561&criteria=oracle&subcrit
=&id=&limit=20&keyword=model&page=1

OS Inventory Informations

1. ¼³Ä¡µÈ OS¸í
AIX, Solaris, HP-UX
# uname -s

2. ¼³Ä¡µÈ OS ¹öÀü
(1) AIX
# echo `uname -v`.`uname -r`
or
# oslevel
(2) Solaris, HP-UX
# uname -r

3. ¸ðµ¨¸í
(1) AIX
# lsattr -E -l sys0 | awk '/modelname/ {print $2}'
(2) Solaris
# uname -i
(3) HP-UX
# uname -m

4. CPU °¹¼ö
(1) AIX
# lsdev -Cc processor | wc -l
(2) Solaris
# psrinfo | wc -l
(3) HP-UX
# ioscan -fknC processor | grep processor | wc -l

5. CPU ¼Óµµ
(1) AIX
# value=`lscfg -vp | grep "PS=" | head -1 | awk -F"PS=" '{print $2}' | awk -F"," '{print $1}'`
# value="0x$value"
# value=`printf "%d\n" $value`
# expr $value / 1000000
(2) Solaris
# psrinfo -v `psrinfo | awk '{print $1}' | head -1` | awk '/operates/ {print $6}'
(3) HP-UX
# echo itick_per_user/D | adb -k /stand/vmunix /dev/mem | tail -1 | awk '{print $2}'

6. ¸Þ¸ð¸® °¹¼ö
(1) AIX
# lsdev -C | grep -i memory | wc -l

7. ¸Þ¸ð¸® ¿ë·®
(1) AIX
# lsattr -E -l mem0 -a size | awk '{print $2}'
(2) Solaris
# prtconf | awk '/Memory size/ {print $3}'
(3) HP-UX
# value=`dmesg | grep Physical | grep Kbytes | awk '{print $2}'`
# expr $value / 1024

8. µð½ºÅ© °¹¼ö
(1) AIX
# lsdev -Cc disk | wc -l
(2) Solaris
# format <<-! > /tmp/format.dat
> 0
> q
> !
# cat /tmp/format.dat | grep cyl | wc -l
(3) HP-UX
# ioscan -fknC disk | grep disk | grep -v "CD-ROM" | grep -v "DVD-ROM" | wc -l

9. µð½ºÅ© ¿ë·®
(1) AIX
# lspv hdisk0 | grep "TOTAL PPs" | awk -F"(" '{print $2}' | awk '{print $1}'
(2) 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
> !
(3) 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
[Ãâó] [Æß]hp-ux, sun, ibm ¼­¹öÀÇ cpu, memmory Á¤º¸|ÀÛ¼ºÀÚ »õ³»±â


¸ñ·Ï | ÀÔ·Â | ¼öÁ¤ | ´äº¯ | »èÁ¦