본문 바로가기

리눅스

[draft] hplog 명령어

728x90

hplog 명령어

hplog 명령어는 HPE 서버 하드웨어 상태를 모니터링하는 유틸리티로 팬, 전원, 온도 등의 상태를 점검할 수 있습니다. hplog는 hp-health 패키지에 포함되어 있으며 HPE 서버 하드웨어에서 사용할 수 있습니다.

hp-health 패키지 설치

리포지토리 파일 추가

sudo wget http://downloads.linux.hpe.com/SDR/repo/mcp/centos/7/x86_64/current/hpe-mcp-release-7-14.noarch.rpm
sudo rpm -ivh hpe-mcp-release-7-14.noarch.rpm

hp-health 패키지 설치

  • hp-health 패키지 설치가 완료되면 hplog 명령어를 사용할 수 있습니다.
sudo yum install hp-health

hplog 명령어 사용법 및 예시

사용법(도움말)

usage: hplog  [options]
        -s <severity> = call to set the severity of a maintenance note
                The -s option must precede the -l option.
                Supported values for severity are:
                REPAIRED, CAUTION, CRITICAL, and INFO
        -l <"your note"> = call to log a maintenance note.
                (The note typed must be in double quotes).
        -v = call to view the entire log
        -V <entrynum> = view the entire log starting at entrynum
        -t Display current thermal sensor data
        -f Display current fan data
        -p Display current power data
        -i Display pci route table
        -a <option> Control Automatic Server Recovery
                Supported values for option are:
                STATUS, ENABLE, DISABLE, TIMEOUT=<val>
                val must be 5, 10, 15, 20 or 30 minutes.

PCI 장치 정보 확인

sudo hplog -i

hplog

팬 상태 확인

sudo hplog -f
ID     TYPE        LOCATION      STATUS  REDUNDANT FAN SPEED 
 1  Var. Speed   System Board    Normal     No      Normal   ( 94)
 2  Var. Speed   System Board    Normal     No      Normal   ( 94)
 3  Var. Speed   System Board    Normal     No      Normal   ( 94)
 4  Var. Speed   System Board    Normal     No      Normal   ( 94)
 5  Var. Speed   System Board    Normal     No      Normal   ( 94)
 6  Var. Speed   System Board    Normal     No      Normal   ( 94)
 7  Var. Speed   System Board    Normal     No      Normal   ( 94)
 8  Var. Speed   System Board    Normal     No      Normal   ( 94)

온도 센서 확인

sudo hplog -t
ID     TYPE        LOCATION      STATUS    CURRENT  THRESHOLD 
 1  Basic Sensor Ambient         Normal    87F/ 31C 107F/ 42C 
 2  Basic Sensor Processor Zone  Normal   104F/ 40C 158F/ 70C 
 3  Basic Sensor Processor Zone  Normal   104F/ 40C 158F/ 70C 
 4  Basic Sensor Memory Board    Normal   ---F/---C ---F/---C 
 5  Basic Sensor Memory Board    Normal    96F/ 36C 188F/ 87C 
 6  Basic Sensor Memory Board    Normal   ---F/---C ---F/---C 
 7  Basic Sensor Memory Board    Normal    95F/ 35C 188F/ 87C 
 8  Basic Sensor Memory Board    Normal    91F/ 33C 158F/ 70C 
 9  Basic Sensor Memory Board    Normal    95F/ 35C 158F/ 70C 
10  Basic Sensor Memory Board    Normal    93F/ 34C 158F/ 70C 
11  Basic Sensor Memory Board    Normal    91F/ 33C 158F/ 70C 
12  Basic Sensor System Board    Normal    95F/ 35C 140F/ 60C 
13  Basic Sensor System Board    Normal   111F/ 44C 221F/105C 
14  Basic Sensor System Board    Normal    96F/ 36C 158F/ 70C 
15  Basic Sensor Pwr. Supply Bay Normal    89F/ 32C ---F/---C 
16  Basic Sensor Pwr. Supply Bay Normal    93F/ 34C 158F/ 70C 
17  Basic Sensor Pwr. Supply Bay Normal    89F/ 32C ---F/---C 
18  Basic Sensor Pwr. Supply Bay Normal    93F/ 34C 149F/ 65C
...

전원 상태 확인

sudo hplog -p

hp-health

전체 하드웨어 상태 확인

sudo hplog -v
ID   Severity       Initial Time      Update Time       Count
-------------------------------------------------------------
0000 Information    14:57  07/06/2013 14:57  07/06/2013 0001
LOG: Maintenance note: IML cleared through hpasmcli

0001 Critical       00:90  03/01/2013 00:00  03/01/2013 0001
LOG: POST Error: 231 - DIMM Configuration Error - N

0002 Caution        00:20  03/01/2013 00:20  03/01/2013 0001
LOG: POST Error: 1785-Slot X Drive Array Not Config

0003 Information    00:34  03/01/2013 00:34  03/01/2013 0001
LOG: Firmware flashed (iLO 4 1.30)

0004 Information    00:39  03/01/2013 00:39  03/01/2013 0001
LOG: Firmware flashed (ProLiant System BIOS - P71 09/18/20)

 

HPE 서버의 하드웨어 상태를 모니터링하고 문제를 사전에 감지할 수 있습니다.

 

728x90