KEBI BLOG

IT,PC,모바일,스마트폰 정보와 팁 그리고 제품리뷰와 생활정보

hp-ux 시스템 점검 script

host1:/tmp/pm_check>sh pm_check.sh check
 ** UPTIME [   9:50am  up 9 days, 22 hrs,  2 users,  load average: 0.08, 0.09, 0.08 ] ** 

 ** Current DATE [ Fri Jan 20 09:50:41 KST 2012 ] ** 

 PM Script phase 1 .... [ H/W Check ] 

+-+- Parstatus Check                    : OK

  +- vParstatus Check                   : Skip..

  +- IA MachineInfo Check               : OK

  +- Proceesor Count Check              : [ 4 core ==> 4 core ] 

  +- Memory Size Check                  : [ Memory: 8121 MB (7.93 GB) ] ==> [ Memory: 8121 MB (7.93 GB) ] 

  +- Disk Check                         : OK [ 80 ] ==> [ 80 ]

  +- LAN Interface Check                : OK

  +- FC Interface Check                 : OK [ TOTAL FC : 6 ==> 6 ] [ ONLINE FC : 6 ==> 6 ]

  +- NO Hardware Check                  : Please Check the ioscan_fnk.out


 PM Script phase 2 .... [ System configuration Check ] 

+-+- Kernel Parameter Check             : OK

  +- Network Parameter Check            : Please Check the ndd_get.out

  +- File System Check                  : OK

  +- Network Interface Check            : OK

  +- Network APA Interface Check        : OK

  +- Network Configuration Check        : OK

  +- Network Routing Table Check        : OK

  +- VolumeGroup Configuration Check    : OK

  +- vg00 lvol Configuration Check      : OK

  +- Swap Configuration Check           : OK

  +- Dump Configuration Check           : OK

  +- MC/SG Cluster Configuration Check  : OK

  +- /dev/null Permission Check         : Please Check Permission..

  +- /dev/async Permission Check        : Please Check Permission..

  +- ntp Configuration Check            : OK

  +- Software Product Check             : OK


 PM Script phase 3 .... [ System LOG Check ] 

+-+- EMS Message Check                  : 



EvArchNo  Severity    Event #        Event Category Archive Time   Summary       

========= =========== ============== ============== ============== ==============

690       Information 7216           System Firm... 2012-01-03 18: A device ha...

689       Information 7215           System Firm... 2012-01-03 18: A device on...

688       Information 549            OS             2012-01-03 18: A memory du...

687       Critical    6772           Software Ap... 2012-01-03 18: An OS is sh...

686       Critical    267            System Firm... 2012-01-03 18: This is the...


         Display Detail : /opt/sfm/bin/evweb eventviewer -E -n EvArchNo


 +- Syslog Message Check                        : 

        Words list = err|war|vmunix|corr|fail|fault|unexpected|lvm|kill|full|scsi|ems

        Found 376 line.. Please Check /tmp/hp/pm_check/output/check_save/syslog_check.out

        Display last 20 line


Jan 20 08:16:41 host1 syslog: icapd: Caught unexpected exception

Jan 20 08:19:23 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 08:21:09 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 08:21:40 host1 syslog: icapd: Caught unexpected exception

Jan 20 08:34:38 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 08:31:40 host1 syslog: icapd: Caught unexpected exception

Jan 20 08:36:41 host1 syslog: icapd: Caught unexpected exception

Jan 20 08:40:01 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 08:51:41 host1 syslog: icapd: Caught unexpected exception

Jan 20 08:54:51 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 08:55:18 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 08:56:40 host1 syslog: icapd: Caught unexpected exception

Jan 20 09:14:18 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 09:11:41 host1 syslog: icapd: Caught unexpected exception

Jan 20 09:15:38 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 09:16:40 host1 syslog: icapd: Caught unexpected exception

Jan 20 09:33:39 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 09:31:40 host1 syslog: icapd: Caught unexpected exception

Jan 20 09:35:51 host1 cmgmsd[5962]: validate_pid: pstat_getsocket returned error (2, No such file or directory)

Jan 20 09:36:40 host1 syslog: icapd: Caught unexpected exception


 +- rc.log Error Check                  : 

--------------------------------------------------------------------------------------

savecrash directory not set;  defaulting to: /var/adm/crash

"/sbin/rc2.d/S225userdb start" FAILED

         HP_APA_DEFAULT_PORT_MODE = MANUAL

ERROR:   The following low-level error occurred:

PGS08000: CIM HTTP OR HTTPS CONNECTOR CANNOT CONNECT TO LOCAL CIM SERVER. CONNECTION FAILED.

ERROR:   The following low-level error occurred:

PGS08000: CIM HTTP OR HTTPS CONNECTOR CANNOT CONNECT TO LOCAL CIM SERVER. CONNECTION FAILED.

ERROR: The Instant Capacity (iCAP) Agent

"/sbin/rc2.d/S602icod start" FAILED

--------------------------------------------------------------------------------------


 +- dmesg Check                         : 

--------------------------------------------------------------------------------------

Boot device's HP-UX HW path is: c.0.2.1.0.22000014c3533c55.0


    System Console is on the Built-In Serial Interface

btlan: Initializing 10/100BASE-TX card at 12/0/0/1/0....

iether5: INITIALIZING HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter at hardware path 12/0/14/1/0/4/0

iether6: INITIALIZING HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter at hardware path 12/0/14/1/0/4/1

iether7: INITIALIZING HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter at hardware path 12/0/14/1/0/6/0

iether8: INITIALIZING HP AB545-60001 PCI/PCI-X 1000Base-T 4-port 1000B-T Adapter at hardware path 12/0/14/1/0/6/1

igelan1: INITIALIZING HP A6825-60101 PCI 1000Base-T Adapter at hardware path 12/0/6/1/0

igelan2: INITIALIZING HP A6825-60101 PCI 1000Base-T Adapter at hardware path 12/0/8/1/0

igelan3: INITIALIZING HP A6825-60101 PCI 1000Base-T Adapter at hardware path 12/0/10/1/0

igelan4: INITIALIZING HP A6825-60101 PCI 1000Base-T Adapter at hardware path 12/0/12/1/0

AF_INET socket/streams output daemon running, pid 104

afinet_prelink: module installed

Starting the STREAMS daemons-phase 1 

LVM: Root VG activated

    Swap device table:  (start & size given in 512-byte blocks)

        entry 0 - major is 64, minor is 0x2; start = 0, size = 20971520

    Dump device table:  (start & size given in 1-Kbyte blocks)

        entry 0000000000000000 - major is 1, minor is 0x2; start = 13097824, size = 10485760

Create STCP device files

Starting the STREAMS daemons-phase 2 

     $Revision: vmunix:    B.11.31_LR FLAVOR=perf 

Memory Information:

    physical page size = 4096 bytes, logical page size = 4096 bytes

    Physical: 8316496 Kbytes, lockable: 5841156 Kbytes, available: 6668232 Kbytes


APA/LM: Product is now running.

Synchronous Page I/O error occurred while paging to/from disk

device 0x40000004, 1K block #2731184, 8192 bytes of 8192 bytes not paged, page addr =dead31.e00000015adea000,  bflag =40008f, bp = e0000004c3778400

--------------------------------------------------------------------------------------


HP 용 시스템 점검 script 입니다.. 제가 필요해서 만든 script 인데.. 
사용하실분들 사용하세요 ^^

일단 normal 한 상태의 system 에서 pm_check.sh save 로 환경을 저장 하고 이후애.. reboot 이나 작업후에 정기 PM 때
pm_check.sh check 를 하면 마지막에 save 한 데이터와 비교해 점검하는 script 입니다..

유용하게 사용 하세요.. ^^

 
0

Comment *

댓글 달기

6,244,035

전체

4,881

오늘

4,999

어제

Skin By KEBIBLOG Ver 1.0 Copyright ⓒ KEBI BLOG. All rights reserved.