SYSTEM/Command

ilorest Command usage / how use ilorest / HPE

SeonJaeLee 2022. 8. 23. 15:59
반응형

ilorest command로 할 수 있는 범위가 너무 광범위해서

점검 목적으로 자주쓰는 커맨드를 공유합니다.

 

1. ilorest serverinfo 

 

- ilorest serverinfo --all

 > 모든 정보 출력

 

- ilorest serverinfo -fw

 > 펌웨어정보출력

[root@ ~ ]# ilorest serverinfo -fw
iLOrest : RESTful Interface Tool version 3.6.0.0
Copyright (c) 2014-2022 Hewlett Packard Enterprise Development LP
---------------------------------------------------------------------------------------------------------------------
------------------------------------------------
Firmware: 
------------------------------------------------
iLO 5 : 2.71 Jul 04 2022
System ROM : U32 v2.66 (05/17/2022)
Intelligent Platform Abstraction Data : 16.4.0 Build 24
System Programmable Logic Device : 0x31
Power Management Controller Firmware : 1.0.8
Power Supply Firmware : 1.05
Power Supply Firmware : 1.04
Innovation Engine (IE) Firmware : 0.2.2.3
Server Platform Services (SPS) Firmware : 4.1.4.601
Server Platform Services (SPS) Descriptor : 1.2 0
Redundant System ROM : U32 v2.66 (05/17/2022)
Intelligent Provisioning : 3.76.2
Power Management Controller FW Bootloader : 1.1
HPE Smart Storage Energy Pack 1 Firmware : 0.70
HP Ethernet 1Gb 4-port 366FLR Adapter : 1.3089.0
HPE Smart Array P408i-a SR Gen10 : 5.32
Embedded Video Controller : 2.5
480GB 6G SATA SSD : 7CV10100
480GB 6G SATA SSD : 7CV10100

 

- ilorest serverinfo -sw

 > ilorest 버전 출력

[root@ ~ ]# ilorest serverinfo -sw
iLOrest : RESTful Interface Tool version 3.6.0.0
Copyright (c) 2014-2022 Hewlett Packard Enterprise Development LP

 

- ilorest serverinfo -processors

 > CPU 정보 출력

[root@ ~ ]# ilorest serverinfo --processors
iLOrest : RESTful Interface Tool version 3.6.0.0
Copyright (c) 2014-2022 Hewlett Packard Enterprise Development LP
---------------------------------------------------------------------------------------------------------------------
------------------------------------------------
Processor :
------------------------------------------------
Processor 1:
Model: Intel(R) Xeon(R) Silver 4208 CPU @ 2.10GHz
Step: 7
Socket: Proc 1
Max Speed: 4000 MHz
Speed: 2100 MHz
Cores: 8
Threads: 16
L1-Cache: 512 KB
L2-Cache: 8192 KB
L3-Cache: 11264 KB
Health: OK

- ilorest servierinfo -memory

[root@ ~ ]# ilorest serverinfo --memory
iLOrest : RESTful Interface Tool version 3.6.0.0
Copyright (c) 2014-2022 Hewlett Packard Enterprise Development LP
---------------------------------------------------------------------------------------------------------------------
------------------------------------------------
Memory/DIMM Board Information:
------------------------------------------------
Advanced Memory Protection Status: A3DC
Board CPU: 1 
Total Memory Size: 131072 MiB
Board Memory Frequency: 2400 MHz
Board Memory Voltage: 1200 MiB
Board CPU: 2 
Total Memory Size: 0 MiB
Board Memory Frequency: 2400 MHz
Board Memory Voltage: 1200 MiB
------------------------------------------------
Memory/DIMM Configuration:
------------------------------------------------
Location: PROC 1 DIMM 3
Memory Type: DRAM DDR4
Capacity: 32768 MiB
Speed: 2400 MHz
Status: GoodInUse
Health: OK

Location: PROC 1 DIMM 5
Memory Type: DRAM DDR4
Capacity: 32768 MiB
Speed: 2400 MHz
Status: GoodInUse
Health: OK

Location: PROC 1 DIMM 8
Memory Type: DRAM DDR4
Capacity: 32768 MiB
Speed: 2400 MHz
Status: GoodInUse
Health: OK

Location: PROC 1 DIMM 10
Memory Type: DRAM DDR4
Capacity: 32768 MiB
Speed: 2400 MHz
Status: GoodInUse
Health: OK

- ilorest serverinfo -thermals

 > 각 장치별 온도 체크

------------------------------------------------
Thermal:
------------------------------------------------
Sensor #1:
Location: Intake
Current Temp: 26 C
Critical Threshold: 42 C
Fatal Threshold: 47 C
Health: OK

Sensor #2:
Location: CPU
Current Temp: 40 C
Critical Threshold: 70 C
Fatal Threshold: None C
Health: OK

Sensor #4:
Location: SystemBoard
Current Temp: 35 C
Critical Threshold: 90 C
Fatal Threshold: None C
Health: OK

이하생략

- ilorest serverinfo -power

 > 파워서플라이 상태 출력

------------------------------------------------
Power:
------------------------------------------------
Total Power Capacity: 1000 W
Total Power Consumed: 53 W

Power Metrics on 20 min. Intervals:
Average Power: 54 W
Max Consumed Power: 91 W
Minimum Consumed Power: 53 W
------------------------------------------------
Power Supply 1:
------------------------------------------------
Power Capacity: 500 W
Last Power Output: 47 W
Input Voltage: 218 V
Input Voltage Type: ACHighLine
Hotplug Capable: True
iPDU Capable: False
Health: OK
State: Enabled
------------------------------------------------
Power Supply 2:
------------------------------------------------
Power Capacity: 500 W
Last Power Output: 6 W
Input Voltage: 220 V
Input Voltage Type: ACHighLine
Hotplug Capable: True
iPDU Capable: False
Health: OK
State: Enabled
------------------------------------------------
PowerSupply Redundancy Group 1
------------------------------------------------
Redundancy Mode: Failover
Redundancy Health: OK
Redundancy State: Enabled

 

- ilorest serverinfo -system

 > 장치명, 바이오스버전, 시리얼넘버, MAC 등 시스템에 대한 간단 정보 출력

------------------------------------------------
System:
------------------------------------------------
Model: HPE ProLiant DL360 Gen10
Bios Version: U32 v2.66 (05/17/2022)
Serial Number: CNX238
Embedded NIC Count: 4
1 MAC: d4:f5:ef:90:85:fc
2 MAC: d4:f5:ef:90:85:fd
3 MAC: d4:f5:ef:90:85:fe
4 MAC: d4:f5:ef:90:85:ff

- ilorest serverinfo --showabsent

 > 상기 모든 정보 한번에 출력

 

 

 

2. ilorest smartarray

- ilorest smartarray --physicaldrives

 > 모든 컨트롤러의 디스크 출력

---------------------------------------------------------------------------------------------------------------------
Controllers:
[0]: Slot 0 - HPE Smart Array P408i-a SR Gen10
Physical Drives:
[1I:1:1]: Model INTEL SSDSC2KB480GZ, Location 1I:1:1, Type SSD, Serial PHYI23340480BGN - 457862 MiB
[1I:1:2]: Model INTEL SSDSC2KB480GZ, Location 1I:1:2, Type SSD, Serial PHYI23340480BGN - 457862 MiB

- ilorest smartarray --logicaldrives

 > 논리드라이브의 정보 출력

---------------------------------------------------------------------------------------------------------------------
Controllers:
[0]: Slot 0 - HPE Smart Array P408i-a SR Gen10
Logical Drives:
[1]: Name Logical Drive 1 VUID 600508B1001C06C31BBE11AE812A402C - 457830 MiB
Data Drives:

 @odata.context :/redfish/v1/$metadata#HpeSmartStorageDiskDrive.HpeSmartStorageDiskDrive 
 @odata.etag :W/"55E3DB09" 
 @odata.id :/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/0/ 
 @odata.type :#HpeSmartStorageDiskDrive.v2_1_0.HpeSmartStorageDiskDrive 
 Id :0 
 BlockSizeBytes :512 
 CapacityGB :480 
 CapacityLogicalBlocks :937703088 
 CapacityMiB :457862 
 CarrierApplicationVersion :11 
 CarrierAuthenticationStatus :OK 
 CurrentTemperatureCelsius :40 
 Description :HPE Smart Storage Disk Drive View 
 DiskDriveStatusReasons :['None'] 
 DiskDriveUse :Data 
 EncryptedDrive :False 
 FirmwareVersion :  Current :  VersionString :7CV10100 
 InterfaceSpeedMbps :6000 
 InterfaceType :SATA 
 LegacyBootPriority :None 
 Location :1I:1:1 
 LocationFormat :ControllerPort:Box:Bay 
 MaximumTemperatureCelsius :47 
 MediaType :SSD 
 Model :INTEL SSDSC2KB480GZ 
 Name :HpeSmartStorageDiskDrive 
 PowerOnHours :599 
 SSDEnduranceUtilizationPercentage :0 
 SerialNumber :PHYI23
 Status :  Health :OK 
 State :Enabled 
 UncorrectedReadErrors :0 
 UncorrectedWriteErrors :0 
 @odata.context :/redfish/v1/$metadata#HpeSmartStorageDiskDrive.HpeSmartStorageDiskDrive 
 @odata.etag :W/"C294CD64" 
 @odata.id :/redfish/v1/Systems/1/SmartStorage/ArrayControllers/0/DiskDrives/1/ 
 @odata.type :#HpeSmartStorageDiskDrive.v2_1_0.HpeSmartStorageDiskDrive 
 Id :1 
 BlockSizeBytes :512 
 CapacityGB :480 
 CapacityLogicalBlocks :937703088 
 CapacityMiB :457862 
 CarrierApplicationVersion :11 
 CarrierAuthenticationStatus :OK 
 CurrentTemperatureCelsius :40 
 Description :HPE Smart Storage Disk Drive View 
 DiskDriveStatusReasons :['None'] 
 DiskDriveUse :Data 
 EncryptedDrive :False 
 FirmwareVersion :  Current :  VersionString :7CV10100 
 InterfaceSpeedMbps :6000 
 InterfaceType :SATA 
 LegacyBootPriority :None 
 Location :1I:1:2 
 LocationFormat :ControllerPort:Box:Bay 
 MaximumTemperatureCelsius :47 
 MediaType :SSD 
 Model :INTEL SSDSC2KB480GZ 
 Name :HpeSmartStorageDiskDrive 
 PowerOnHours :599 
 SSDEnduranceUtilizationPercentage :0 
 SerialNumber :PHYI233
 Status :  Health :OK 
 State :Enabled 
 UncorrectedReadErrors :0 
 UncorrectedWriteErrors :0 

3. ilorest serverlogs

- ilorest serverlogs --selectlog=AHS

 > HP에 로그를 제출하거나 HP 홈페이지 메니지먼트에서 서버의 상태를 확인하고자 할때 생성하는 로그 

    커맨드를 실행한 경로에 HPE_[SerialNumber]_[DATE].ahs로 생성

 

- ilorest serverlogs --selectlog=IML

 > 하드웨어 IML로그를 확인 할 수 있다.

반응형