## HP ¸Ó½Å ¹öÀüÀ» º¸¸é (uname -a¸¦ ÀÔ·ÂÇßÀ» ¶§)
HP-UX hp1 B.11.11 U 9000/800 836940690 ¹«Á¦ÇÑ-»ç¿ëÀÚ ¶óÀ̼¾½º
11.11Àº ¹öÀüÀÌ°í 9000Àº ½Ã¸®Áî ¸íÀ̸ç 800Àº ¼¹ö¶ó´Â Ç¥½Ã´Ù. ¿öÅ©½ºÅ×ÀÌ¼Ç ±ÞÀº 700À¸·Î Ç¥½ÃµÈ´Ù.
## samÀ̶ó´Â ÅøÀ» »ç¿ëÇÏ¿© ¿î¿µÇÒ ¼ö ÀÖ´Ù. AIX¿¡¼ smitÅø°ú °°Àº ±â´ÉÀ» ÇÑ´Ù.
## start/stop
¸Ó½ÅÀ» start½Ãų ¶§ ÆÄ¿ö ½ºÀ§Ä¡¸¦ ¾à 3ÃÊ°£ ´©¸£°í Àִ´Ù.
¸Ó½ÅÀ» stop ½Ãų ¶§ shutdown -hy 0 (ÀçºÎÆà 0ÃÊÀ̳»·Î Áï Áï½Ã ÀçºÎÆÃ)
¸Ó½ÅÀ» reboot ½Ãų ¶§ shutdown -ry
¸Ó½Å °Á¦ Á¾·á shutdown -h 0
## µð½ºÅ©ÀÇ ¿ë·®À» ¾Ë¾Æº¼ ¶§
% bdf
## ¸í·É ½ÇÇàÀ» Áß°£¿¡ ¸ØÃâ ¶§
ctr+c ´ë½Å deleteÅ°¸¦ ´©¸¥´Ù.
## useradd¸í·ÉÀ¸·Î Ȩµð·ºÅ丮°¡ »ý±âÁö ¾ÊÀ» ¶§°¡ ÀÖ´Ù. ¿É¼ÇÀ» ÁÖ¾î¾ß Çϳª ¼öµ¿À¸·Î ¸¸µé¾î ÁöÁ¤ÇÏ¸é µÈ´Ù.
## samÀ» ÀÌ¿ëÇÑ ipº¯°æ
samÀ» ½ÇÇà½ÃŲ´Ù. -> Netsorking and Communications -> Network Interface card -> »ó´Ü ¸Þ´º¿¡¼ Action -> modify
## samÀ» ÀÌ¿ëÇÑ ipº¯°æ ======================> HP-UX 11.31 by ¾î󱸴Ï
samÀ» ½ÇÇà½ÃŲ´Ù. -> Netsorking and Communications -> Network Interfaces Configuration -> Network Interface card -> lan0 ¼±Åà ¿£ÅÍ -> p-View/Modify IP Attributes -> IP¼öÁ¤
## ÆÐÄ¡ ¸ñ·Ï È®ÀÎ
swlist -l product : Àüü ÆÐÄ¡ ¸ñ·Ï
swlist -l product | grep 'patch id' : patch id ¿¡ ÇØ´çÇÏ´Â patch¸¸ º¼ ¶§
## ÇÁ·Î¼¼½º °³¼ö º¼ ¶§
ps -ef | wc
119 1041 8243 ¿Í °°ÀÌ ³ª¿Ã ¶§ ps °³¼ö´Â 119ÀÌ´Ù.
## domainnameÀ» º¯°æÇÒ ¶§
/etc/namesvrs ÆÄÀÏÀ» ¿°í NIS_DOMAIN= ºÎºÐ¿¡ value·Î µµ¸ÞÀÎÀ̸§À» ³Ö´Â´Ù. ¿¹¸¦ µé¾î exponet.com°ú °°ÀÌ ³Ö´Â´Ù.
¸í·É¾î¸¦ »ç¿ëÇÏ¿©
# domainname exponet.com
°ú °°ÀÌ ÀÔ·ÂÇصµ µÈ´Ù.
## time zoneÀ» º¯°æÇÏ°íÀÚ ÇÒ ¶§ (Çѱ¹½Ã°£À¸·Î)
etc/TIMEZONEÆÄÀÏ¿¡ ´ÙÀ½°ú °°ÀÌ ¼³Á¤ÇÑ´Ù.
TZ=KST-9
export TZ
## os bit¸¦ ¾Ë°í ½ÍÀ» ¶§
getconfÀ̶ó´Â configurationÀ» ¾Ë ¼ö ÀÖ´Â ¸í·É¾î°¡ ÀÖ´Ù
#getconf KERNEL_BITS
¸¦ Ä¡°Ô µÇ¸é ÇØ´ç bits°¡ ³ª¿Â´Ù. 32 ȤÀº 64·Î Ç¥½ÃµÈ´Ù.
## »ç¿ë ¸Þ¸ð¸® ¾Ë°í ½ÍÀ» ¶§
1. memory size
physical memory (RAM)
1) HP-UX 10x
example :
echo physmem/D | adb /stand/vmunix /dev/kmem
result :
physmem:
physmem: 24576
2) HP-UX 11.x systems running on 32 bit architecture:
example:
echo phys_mem_pages/D | adb /stand/vmunix /dev/kmem
phys_mem_pages:
phys_mem_pages: 24576
3) HP-UX 11.x systems running on 64 bit architecture:
example:
echo phys_mem_pages/D | adb64 /stand/vmunix /dev/mem
result :
phys_mem_pages:
phys_mem_pages: 262144
À§ÀÇ °á°ú´Â page ´ÜÀ§ À̸ç ÀÌ °á°ú¿¡ 4096 byte ¸¦ °öÇØÁÖ¾î¾ß ÇÕ´Ï´Ù.
Áï 24576 °°Àº °æ¿ì 24756*4096=
lockable memory ÀÇ ¾ç
example:
echo total_lockable_mem/D | adb /stand/vmunix /dev/mem
result :
total_lockable_mem:
total_lockable_mem: 185280
## CPU Á¤º¸¸¦ ¾Ë°í ½ÍÀ» ¶§
1) cpu °³¼ö
example:
echo "active_processor_count/D" | adb -k /stand/vmunix /dev/mem
result :
active_processor_count:
active_processor_count: 4
2) cpu hz
CLOCK FREQUENCY
echo itick_per_usec/D | adb -k /stand/vmunix /dev/kmem
itick_per_usec: 64
## shutdown Á¤º¸¸¦ ¾Ë°í ½ÍÀ» ¶§
# etc/shutdownlog ¸¦ º»´Ù.
## ½Ã½ºÅÛ ½ÃÀÛ ½Ã ¿Ã¶ó¿À´Â ¼ºñ½º¸¦ È®ÀÎÇÏ°í ½ÍÀ» ¶§
# etc/rc.log ¸¦ º»´Ù.
## hp11 PA-RISC2.0¿¡¼ µð½ºÅ© º¸±â ¸í·É
epol1:/# ioscan -fnkC disk
Class I H/W Path Driver S/W State H/W Type Description
======================================================================
disk 0 0/0/1/1.2.0 sdisk CLAIMED DEVICE HP 36.4GATLAS10K3_36_SCA
/dev/dsk/c1t2d0 /dev/rdsk/c1t2d0
disk 1 0/0/2/0.2.0 sdisk CLAIMED DEVICE HP 36.4GATLAS10K3_36_SCA
/dev/dsk/c2t2d0 /dev/rdsk/c2t2d0
disk 2 0/0/2/1.2.0 sdisk CLAIMED DEVICE HP DVD-ROM 305
/dev/dsk/c3t2d0 /dev/rdsk/c3t2d0
disk 3 0/12/0/0.0.0 sdisk CLAIMED DEVICE HP 73.4GMAP3735NC
/dev/dsk/c4t0d0 /dev/rdsk/c4t0d0
disk 4 0/12/0/0.8.0 sdisk CLAIMED DEVICE HP 73.4GMAP3735NC
/dev/dsk/c4t8d0 /dev/rdsk/c4t8d0
epol1:/#
36.4GATLAS10K3_36_SCA
73.4GMAP3735NC
DVD-ROM 305
¹°¸®ÀûÀÎ µð½ºÅ© µÎ°³¿Í DVD-ROMÀÌ ¼³Ä¡µÈ °ÍÀ» ¾Ë¼ö ÀÖ´Ù.
## HP¿¡¼ LANG ¼³Á¤
locale -a ¸¦ ÀÔ·ÂÇϸé ÀÔ·ÂÇÒ ¼ö ÀÖ´Â ÆĶó¸ÞÅ͵éÀÇ ¸ñ·ÏÀÌ º¸ÀδÙ.
export LANG=ko_KR.eucKR
## ¸Ó½ÅÀÇ IP¸¦ È®ÀÎÇÏ°í ½ÍÀ» ¶§
netstat -in
## Gateway¸¦ º¸°í ½ÍÀ» ¶§ =================> by ¾î󱸴Ï
netstat -rn : ¶ó¿ìÆà Å×ÀÌºí º¸±â(gateway¸¦ º¼ ¼ö ÀÖÀ½)
## HP-UX error code 32
Error code 32: Can't open file ...
## ¸Þ¸ð¸®¿Í CPU ¿ë·®À» »ó¼¼È÷ ¾Ë¾Æº¼ ¶§
>glance
B3692A GlancePlus C.03.71.00 08:06:54 kgsce 9000/800 Current Avg High
----------------------------------------------------------------------
--------------------------------------------------------------
CPU Util S | 2% 3% 6%
Disk Util FF | 2% 6% 9%
Mem Util S SU UB B | 32% 32% 32%
Swap Util U UR R | 9% 9% 9%
----------------------------------------------------------------------
--------------------------------------------------------------
PROCESS LIST Users= 7
User CPU Util Cum Disk Thd
Process Name PID PPID Pri Name ( 400% max) CPU IO Rate RSS Cnt
----------------------------------------------------------------------
----------
glance 23819 22779 154 weblogic 1.7/ 3.7 0.3 0.0/ 0.5 308kb 1
java 21667 1 154 weblogic 1.0/ 3.2 63.0 0.0/ 0.0 589.7mb 103
ns-slapd 1488 1 168 weblogic 0.6/ 0.9 17.5 1.1/ 0.2 77.4mb 41
vxfsd 36 0 138 root 0.0/ 0.1 1.3 2.1/ 1.9 1.8mb 58
java 3977 1 168 weblogic 0.0/ 0.1 1.1 0.0/ 0.0 207.3mb 32
ns-httpd 2135 2022 168 weblogic 0.0/ 0.1 2.4 0.0/ 0.0 21.7mb 70
Shift + g ¿¡¼ º¸°í ½ÍÀº ÇÁ·Î¼¼½º ID ÀÔ·Â
Shift + g Å°·Î ¹øÈ£¸¦ ÀÔ·ÂÇÒ ¼ö ÀÖ´Â ÀÎÅÍÆäÀ̽º¸¦ Á¦°øÇÑ´Ù.
## ½Ã½ºÅÛ ·Î±×¸¦ º¼ ¼ö ÀÖ´Â ÆÄÀÏ
/var/adm/syslog
[Ãâó] Unix - HP UX ¸í·É¾î & Tip|ÀÛ¼ºÀÚ ¾î󱸴Ï
|