DELL服务器安装racadm检测服务器硬件状态

1.下载racadm命令
For Linux 7及以上版本: https://dl.dell.com/FOLDER07423496M/1/DellEMC-iDRACTools-Web-LX-10.1.0.0-4566_A00.tar.gz
For Linux 6版本: https://downloads.dell.com/FOLDER05223994M/1/OM-MgmtStat-Dell-Web-LX-9.2.0-3142_A00.tar.gz
2.安装racadm命令

redhat7版本

tar -zxf DellEMC-iDRACTools-Web-LX-10.1.0.0-4566_A00.tar.gz

cd iDRACTools/racadm
sh install_racadm.sh
备注:安装完成后先退出当前终端,重新SSH登录

redhat6版本

tar -zxf OM-MgmtStat-Dell-Web-LX-9.2.0-3142_A00.tar.gz
cd linux/rac
sh install_racadm.sh
备注:安装完成后先退出当前终端,重新SSH登录
3.racadm getsensorinfo获取服务器硬件状态传感器状态,其中有内存、cpu状态


Sensor Type : POWER
<Sensor Name>                   <Status>                 <Type>         
PS1 Status                      Present                  AC             
PS2 Status                      AC-Lost-Out-Range        AC             

Sensor Type : TEMPERATURE
<Sensor Name>            <Status>    <Reading> <lc> <uc>  <lnc>[R/W]  <unc>[R/W]
[Key = iDRAC.Embedded.1#SystemBoardInletTemp]
System Board Inlet Temp       Ok      23C      -7C  47C      3C [Y]      42C [Y]

[Key = iDRAC.Embedded.1#SystemBoardExhaustTemp]
System Board Exhaust Temp     Ok      35C      0C   75C      0C [N]      70C [N]

[Key = iDRAC.Embedded.1#CPU1Temp]
CPU1 Temp                     Ok      49C      3C   87C      8C [N]      82C [N]

[Key = iDRAC.Embedded.1#CPU2Temp]
CPU2 Temp                     Ok      52C      3C   87C      8C [N]      82C [N]



Sensor Type : FAN
<Sensor Name>                   <Status>    <Reading>   <lc>        <uc>        <PWM %>     
System Board Fan1               Ok          3720RPM     360RPM      NA          14%         
System Board Fan2               Ok          3720RPM     360RPM      NA          14%         
System Board Fan3               Ok          3720RPM     360RPM      NA          14%         
System Board Fan4               Ok          3720RPM     360RPM      NA          14%         
System Board Fan5               Ok          3840RPM     360RPM      NA          14%         
System Board Fan6               Ok          3840RPM     360RPM      NA          14%         

Sensor Type : VOLTAGE
<Sensor Name>                   <Status>    <Reading>   <lc>        <uc>        
CPU1 VCORE PG                   Ok          Good                NA          NA          
CPU2 VCORE PG                   Ok          Good                NA          NA          
System Board 3.3V PG            Ok          Good                NA          NA          
System Board 5V AUX PG          Ok          Good                NA          NA          
CPU2 M23 VPP PG                 Ok          Good                NA          NA          
CPU1 M23 VPP PG                 Ok          Good                NA          NA          
System Board 1.05V PG           Ok          Good                NA          NA          
CPU1 M23 VDDQ PG                Ok          Good                NA          NA          
CPU1 M23 VTT PG                 Ok          Good                NA          NA          
System Board 5V SWITCH PG       Ok          Good                NA          NA          
System Board VCCIO PG           Ok          Good                NA          NA          
System Board 2.5V AUX PG        Ok          Good                NA          NA          
CPU2 M01 VDDQ PG                Ok          Good                NA          NA          
CPU1 M01 VDDQ PG                Ok          Good                NA          NA          
CPU2 M23 VTT PG                 Ok          Good                NA          NA          
CPU2 M01 VTT PG                 Ok          Good                NA          NA          
System Board NDC PG             Ok          Good                NA          NA          
CPU2 M01 VPP PG                 Ok          Good                NA          NA          
CPU1 M01 VPP PG                 Ok          Good                NA          NA          
CPU2 M23 VDDQ PG                Ok          Good                NA          NA          
System Board 1.5V PG            Ok          Good                NA          NA          
System Board PS1 PG Fail        Ok          Good                NA          NA          
System Board BP1 5V PG          Ok          Good                NA          NA          
System Board 1.5V AUX PG        Ok          Good                NA          NA          
CPU1 M01 VTT PG                 Ok          Good                NA          NA          
PS1 Voltage 1                   Ok          224.00V             NA          NA          
PS2 Voltage 2                   Unknown     NA                  NA          NA          
System Board DIMM PG            Ok          Good                NA          NA          
CPU1 FIVR PG                    Ok          Good                NA          NA          
CPU2 FIVR PG                    Ok          Good                NA          NA          

Sensor Type : CURRENT
<Sensor Name>            <Status>    <Reading> <lc> <uc>  <lnc>[R/W]  <unc>[R/W]
[Key = iDRAC.Embedded.1#PS1Current1]
PS1 Current 1                 Ok      0.8Amps  NA   NA       0Amps [N]      0Amps [N]

[Key = iDRAC.Embedded.1#SystemBoardPwrConsumption]
System Board Pwr Consumption  Ok      0.80WattsNA   980Watts 0Watts [N]      896Watts [Y]


Sensor Type : PROCESSOR
<Sensor Name>                   <Status>    <State>             <lc>        <uc>        
CPU1 Status                     Ok          Presence_Detected   NA          NA          
CPU2 Status                     Ok          Presence_Detected   NA          NA          

Sensor Type : MEMORY
<Sensor Name>                   <Status>    <State>             <lc>        <uc>        
DIMM A1                         Ok          Presence_Detected   NA          NA          
DIMM A2                         Ok          Presence_Detected   NA          NA          
DIMM A3                         Ok          Presence_Detected   NA          NA          
DIMM A4                         Ok          Presence_Detected   NA          NA          
DIMM A5                         N/A         Absent              NA          NA          
DIMM A6                         N/A         Absent              NA          NA          
DIMM A7                         N/A         Absent              NA          NA          
DIMM A8                         N/A         Absent              NA          NA          
DIMM A9                         N/A         Absent              NA          NA          
DIMM A10                        N/A         Absent              NA          NA          
DIMM A11                        N/A         Absent              NA          NA          
DIMM A12                        N/A         Absent              NA          NA          
DIMM B1                         Ok          Presence_Detected   NA          NA          
DIMM B2                         Ok          Presence_Detected   NA          NA          
DIMM B3                         Ok          Presence_Detected   NA          NA          
DIMM B4                         Ok          Presence_Detected   NA          NA          
DIMM B5                         N/A         Absent              NA          NA          
DIMM B6                         N/A         Absent              NA          NA          
DIMM B7                         N/A         Absent              NA          NA          
DIMM B8                         N/A         Absent              NA          NA          
DIMM B9                         N/A         Absent              NA          NA          
DIMM B10                        N/A         Absent              NA          NA          
DIMM B11                        N/A         Absent              NA          NA          
DIMM B12                        N/A         Absent              NA          NA          

Sensor Type : BATTERY
<Sensor Name>                   <Status>    <Reading>   <lc>        <uc>        
System Board CMOS Battery       Ok          Present             NA          NA          
PERC1 ROMB Battery              Ok          Present             NA          NA          

Sensor Type : PERFORMANCE
<Sensor Name>                   <Status>    <State>        <lc>      <uc>      
System Board Power Optimized    Ok          Not Degraded   NA        NA        

Sensor Type : INTRUSION
<Sensor Name>                   <Intrusion>    <Status>       
System Board Intrusion          Closed         Power ON       

Sensor Type : REDUNDANCY
<Sensor Name>                   <Status>                 <Type>         
System Board Fan Redundancy     Full Redundant           Fan            
System Board PS Redundancy      Redundancy Lost          PSU            

Sensor Type : SYSTEM PERFORMANCE
<Sensor Name>            <Status>    <Reading> <lc> <uc>  <lnc>[R/W]  <unc>[R/W]
[Key = iDRAC.Embedded.1#SystemBoardCPUUsage]
System Board CPU Usage   Ok             14%     NA  NA    NA  [N]      101% [Y]

[Key = iDRAC.Embedded.1#SystemBoardIOUsage]
System Board IO Usage    Ok             0%      NA  NA    NA  [N]      101% [Y]

[Key = iDRAC.Embedded.1#SystemBoardMEMUsage]
System Board MEM Usage   Ok             0%      NA  NA    NA  [N]      101% [Y]

[Key = iDRAC.Embedded.1#SystemBoardSYSUsage]
System Board SYS Usage   Ok             14%     NA  NA    NA  [N]      101% [Y]

详细信息查看官网信息:
https://www.dell.com/support/manuals/en-us/poweredge-r750xs/idrac9_7.xx_racadm_pub/getsensorinfo?guid=guid-a0d65099-56ce-460b-baef-18ff746ffd02&lang=en-us
shell脚本检测内存,CPU,风扇,电源硬件故障

#!/bin/bash
/opt/dell/srvadmin/sbin/racadm getsensorinfo >check_hardware.log
check_hard (){
if [ -x /opt/dell/srvadmin/sbin/racadm ];then
  cat check_hardware.log|grep '^DIMM'|grep -v Absent|awk '{print "内存条"$2"="$3}'|grep -v Ok
  cat check_hardware.log|grep "CPU. Status"|awk '{print $1,$2"="$3}'|grep -v Ok
  cat check_hardware.log|grep 'System Board Fan.A'|awk '{print $1,$2,$3"="$4}'|grep -v Ok
  cat check_hardware.log|grep 'PS. Status'|awk '{if($3=="Present"){print $1,$2"=Ok"}else{print $1,$2"="$3}}'|grep -v Ok
fi
}
Host_status=$(check_hard)
if [ -z "$Host_status" ];then
    echo "OK"
else
    check_hard 
fi

posted on 2024-10-24 09:48  杨小杨~  阅读(10)  评论(0编辑  收藏  举报

导航