• 以dell的R620型号的服务器做的测试


    以dell的R620型号的服务器做的测试

    登陆上dell服务器ilo的IP地址,首先打开ipmi,ilo2是直接支持ipmi2.0的

    此框需要点击 “IDRAC设置”->“网络”->“IPMI设置”在”启用LAN上IPMI“后的复选框打钩,才能启动ipmi

    clip_image002

    好像是内置到了ilo2,应该是,这个不是太确定,但是我能确定的是,ipmitool获取数据的时候直接可以使用ilo的账户密码

    ?

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    50

    51

    52

    53

    54

    55

    56

    57

    58

    59

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

    72

    73

    74

    75

    76

    77

    78

    79

    80

    81

    82

    83

    84

    85

    86

    87

    88

    89

    90

    91

    92

    93

    94

    95

    96

    97

    98

    99

    100

    101

    102

    103

    104

    105

    106

    107

    108

    109

    110

    111

    112

    113

    114

    115

    116

    117

    118

    119

    120

    121

    122

    123

    124

    125

    126

    127

    128

    129

    130

    131

    132

    133

    134

    135

    136

    137

    138

    139

    140

    [root@manrhca script]# ipmitool  -I lan -H 192.168.232.200 -U root -P calvin sdr

    SEL              | Not Readable      | ns

    Intrusion        | 0x00              | ok

    Fan1A RPM        | 2160 RPM          | ok

    Fan2A RPM        | 2160 RPM          | ok

    Fan3A RPM        | 2160 RPM          | ok

    Fan4A RPM        | 2160 RPM          | ok

    Fan5A RPM        | 2160 RPM          | ok

    Fan6A RPM        | 2280 RPM          | ok

    Inlet Temp       | 21 degrees C      | ok

    Exhaust Temp     | 33 degrees C      | ok

    Temp             | 47 degrees C      | ok

    Temp             | 42 degrees C      | ok

    OS Watchdog      | 0x00              | ok

    VCORE PG         | 0x01              | ok

    VCORE PG         | 0x01              | ok

    3.3V PG          | 0x01              | ok

    5V PG            | 0x01              | ok

    USB Cable Pres   | 0x01              | ok

    VGA Cable Pres   | 0x01              | ok

    Dedicated NIC    | 0x01              | ok

    Presence         | 0x01              | ok

    Presence         | 0x01              | ok

    Presence         | 0x01              | ok

    PLL PG           | 0x01              | ok

    PLL PG           | 0x01              | ok

    1.1V PG          | 0x01              | ok

    M23 VDDQ PG      | 0x01              | ok

    M23 VTT PG       | 0x01              | ok

    FETDRV PG        | 0x01              | ok

    Presence         | 0x01              | ok

    VSA PG           | 0x01              | ok

    VSA PG           | 0x01              | ok

    M01 VDDQ PG      | 0x01              | ok

    M01 VDDQ PG      | 0x01              | ok

    M23 VTT PG       | 0x01              | ok

    M01 VTT PG       | 0x01              | ok

    NDC PG           | 0x01              | ok

    LCD Cable Pres   | 0x01              | ok

    VTT PG           | 0x01              | ok

    VTT PG           | 0x01              | ok

    M23 VDDQ PG      | 0x01              | ok

    Presence         | 0x01              | ok

    Presence         | 0x02              | ok

    Status           | 0x80              | ok

    Status           | 0x80              | ok

    Fan Redundancy   | 0x01              | ok

    Riser Config Err | 0x00              | ok

    Riser 3 Presence | 0x01              | ok

    1.5V PG          | 0x01              | ok

    PS2 PG Fail      | Not Readable      | ns

    PS1 PG Fail      | 0x01              | ok

    BP1 5V PG        | 0x01              | ok

    BP2 5V PG        | Not Readable      | ns

    M01 VTT PG       | 0x01              | ok

    Presence         | 0x01              | ok

    PCIe Slot1       | 0x00              | ok

    PCIe Slot2       | Not Readable      | ns

    PCIe Slot3       | Not Readable      | ns

    PCIe Slot4       | Not Readable      | ns

    PCIe Slot5       | Not Readable      | ns

    PCIe Slot6       | Not Readable      | ns

    PCIe Slot7       | Not Readable      | ns

    vFlash           | 0x00              | ok

    CMOS Battery     | 0x00              | ok

    ROMB Battery     | 0x00              | ok

    ROMB Battery     | Not Readable      | ns

    Presence         | 0x01              | ok

    Presence         | 0x02              | ok

    Current 1        | 0.40 Amps         | ok

    Current 2        | disabled          | ns

    Voltage 1        | 218 Volts         | ok

    Voltage 2        | disabled          | ns

    PS Redundancy    | Not Readable      | ns

    Status           | 0x01              | ok

    Status           | 0x09              | ok

    Pwr Consumption  | 84 Watts          | ok

    Power Optimized  | 0x01              | ok

    SD1              | Not Readable      | ns

    SD2              | Not Readable      | ns

    Redundancy       | Not Readable      | ns

    ECC Corr Err     | Not Readable      | ns

    ECC Uncorr Err   | Not Readable      | ns

    I/O Channel Chk  | Not Readable      | ns

    PCI Parity Err   | Not Readable      | ns

    PCI System Err   | Not Readable      | ns

    SBE Log Disabled | Not Readable      | ns

    Logging Disabled | Not Readable      | ns

    Unknown          | Not Readable      | ns

    CPU Protocol Err | Not Readable      | ns

    CPU Bus PERR     | Not Readable      | ns

    CPU Init Err     | Not Readable      | ns

    CPU Machine Chk  | Not Readable      | ns

    Memory Spared    | Not Readable      | ns

    Memory Mirrored  | Not Readable      | ns

    Memory RAID      | Not Readable      | ns

    Memory Added     | Not Readable      | ns

    Memory Removed   | Not Readable      | ns

    Memory Cfg Err   | Not Readable      | ns

    Mem Redun Gain   | Not Readable      | ns

    PCIE Fatal Err   | Not Readable      | ns

    Chipset Err      | Not Readable      | ns

    Err Reg Pointer  | Not Readable      | ns

    Mem ECC Warning  | Not Readable      | ns

    Mem CRC Err      | Not Readable      | ns

    USB Over-current | Not Readable      | ns

    POST Err         | Not Readable      | ns

    Hdwr version err | Not Readable      | ns

    Mem Overtemp     | Not Readable      | ns

    Mem Fatal SB CRC | Not Readable      | ns

    Mem Fatal NB CRC | Not Readable      | ns

    OS Watchdog Time | Not Readable      | ns

    Non Fatal PCI Er | Not Readable      | ns

    Fatal IO Error   | Not Readable      | ns

    MSR Info Log     | Not Readable      | ns

    TXT Status       | Not Readable      | ns

    Drive 0          | 0x01              | ok

    Cable SAS A      | 0x01              | ok

    Cable SAS B      | 0x01              | ok

    Cable SAS C      | Not Readable      | ns

    Cable SAS D      | Not Readable      | ns

    Cable SAS A      | Not Readable      | ns

    Cable SAS B      | Not Readable      | ns

    Cable SAS C      | Not Readable      | ns

    Cable SAS D      | Not Readable      | ns

    Power Cable      | 0x01              | ok

    Signal Cable     | 0x01              | ok

    Power Cable      | Not Readable      | ns

    Signal Cable     | Not Readable      | ns

    Fan7A RPM        | 2040 RPM          | ok

    Fan1B RPM        | 2160 RPM          | ok

    Fan2B RPM        | 2280 RPM          | ok

    Fan3B RPM        | 2160 RPM          | ok

    Fan4B RPM        | 2040 RPM          | ok

    Fan5B RPM        | 2160 RPM          | ok

    Fan6B RPM        | 2160 RPM          | ok

    Fan7B RPM        | 2160 RPM          | ok

    PFault Fail Safe | Not Readable      | ns

    A                | 0x40              | ok

    B                | 0x40              | ok

    获取了好多的数据,但是这获取的是传感器能获取到的内容

    CPU 我大概需要的是“temp”这是俩CPU的温度和状态,这里的标示ID就是TEMP,盯了一会ILO的CPU温度变化和ipmitool获取温度的变化,我确认它是CPU

    fan[0-9][A-B] RPM   这显示的是风扇,有A和B,其实机箱中你会发现没那么多风扇,但是仔细看一下风扇,是正反两个扇叶,所以你懂得了

    Power Cable  显示电源电缆的状态,R620是双电的,现在是一个电源没插,所以一个显示OK一个ns(not specified:未定义的,我想大概是这个意思)

    这里我只需要这三个值,当然不会就会取这三个值,接下来的其它硬件信息我用ipmi倒腾了两天也没倒腾出来,应该就是不支持,网上找了些文档,跑的dell官网找到了一个文档《RACADM Command Line Reference Guide for iDRAC7 1.00.00 and CMC 4.0》 racadm命令行参考指南

    根据指南说明我可以ssh直接连接ilo,就是文档名后面的iDRAC7,文档越看越惊喜

    通过指南的帮助我获取了更多更详细的信息,

    我们直接连接ilo的ip

    clip_image004

    使用的就是登陆ilo的账户和密码 厂商默认账户root密码是calvin

    #获取网卡信息,只显示了当前ilo网卡,没有显示更多的使用中的网卡
    racadm getniccfg

    #内存 风扇  CPU详细信息,这个相当好
    racadm getsensorinfo    登陆后执行一下,是不是信息很强劲 DIMM solt是指内存,很详细显示插了几条内存 还有风扇转速  cpu温度状态等与上面有些重复

    ?

    1

    2

    3

    4

    5

    6

    7

    8

    9

    10

    11

    12

    13

    14

    15

    16

    17

    18

    19

    20

    21

    22

    23

    24

    25

    26

    27

    28

    29

    30

    31

    32

    33

    34

    35

    36

    37

    38

    39

    40

    41

    42

    43

    44

    45

    46

    47

    48

    49

    50

    51

    52

    53

    54

    55

    56

    57

    58

    59

    60

    61

    62

    63

    64

    65

    66

    67

    68

    69

    70

    71

    72

    73

    74

    75

    76

    77

    78

    79

    80

    81

    82

    83

    84

    85

    86

    87

    88

    89

    90

    91

    92

    93

    94

    95

    96

    97

    98

    99

    100

    101

    102

    103

    104

    105

    106

    107

    108

    109

    110

    111

    112

    113

    114

    [root@manrhca script]# ssh 192.168.232.200

    root@192.168.232.200's password: 

    /admin1-> racadm getsensorinfo

    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>        

    System Board Inlet Temp         Ok          22 C                -7 C        47 C        

    System Board Exhaust Temp       Ok          33 C                3 C         75 C        

    CPU1 Temp                       Ok          47 C                3 C         91 C        

    CPU2 Temp                       Ok          42 C                3 C         91 C        

    Sensor Type : FAN

    <Sensor Name>                   <Status>    <Reading>   <lc>        <uc>        

    System Board Fan1A RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan2A RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan3A RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan4A RPM          Ok          2160 RPM            720 RPM     NA          

    System Board Fan5A RPM          Ok          2160 RPM            720 RPM     NA          

    System Board Fan6A RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan7A RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan1B RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan2B RPM          Ok          2400 RPM            720 RPM     NA          

    System Board Fan3B RPM          Ok          2280 RPM            720 RPM     NA          

    System Board Fan4B RPM          Ok          2160 RPM            720 RPM     NA          

    System Board Fan5B RPM          Ok          2160 RPM            720 RPM     NA          

    System Board Fan6B RPM          Ok          2160 RPM            720 RPM     NA          

    System Board Fan7B RPM          Ok          2160 RPM            720 RPM     NA          

    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 PG              Ok          Good                NA          NA          

    CPU2 PLL PG                     Ok          Good                NA          NA          

    CPU1 PLL PG                     Ok          Good                NA          NA          

    System Board 1.1V PG            Ok          Good                NA          NA          

    CPU1 M23 VDDQ PG                Ok          Good                NA          NA          

    CPU1 M23 VTT PG                 Ok          Good                NA          NA          

    System Board FETDRV PG          Ok          Good                NA          NA          

    CPU2 VSA PG                     Ok          Good                NA          NA          

    CPU1 VSA 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 VTT PG                     Ok          Good                NA          NA          

    CPU1 VTT 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          

    CPU1 M01 VTT PG                 Ok          Good                NA          NA          

    PS1 Voltage 1                   Ok          216 V               NA          NA          

    Sensor Type : CURRENT

    <Sensor Name>                   <Status>    <Reading>   <lc>        <uc>        

    PS1 Current 1                   Ok          0.4 Amps            NA          NA          

    System Board Pwr Consumption    Ok          84 Watts            NA          644 Watts   

    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 SLOT A1                    Ok          Presence Detected   NA          NA          

    DIMM SLOT A2                    Ok          Presence Detected   NA          NA          

    DIMM SLOT A3                    Ok          Presence Detected   NA          NA          

    DIMM SLOT A4                    Ok          Presence Detected   NA          NA          

    DIMM SLOT A5                    N/A         Absent              NA          NA          

    DIMM SLOT A6                    N/A         Absent              NA          NA          

    DIMM SLOT A7                    N/A         Absent              NA          NA          

    DIMM SLOT A8                    N/A         Absent              NA          NA          

    DIMM SLOT A9                    N/A         Absent              NA          NA          

    DIMM SLOT A10                   N/A         Absent              NA          NA          

    DIMM SLOT A11                   N/A         Absent              NA          NA          

    DIMM SLOT A12                   N/A         Absent              NA          NA          

    DIMM SLOT B1                    Ok          Presence Detected   NA          NA          

    DIMM SLOT B2                    Ok          Presence Detected   NA          NA          

    DIMM SLOT B3                    Ok          Presence Detected   NA          NA          

    DIMM SLOT B4                    Ok          Presence Detected   NA          NA          

    DIMM SLOT B5                    N/A         Absent              NA          NA          

    DIMM SLOT B6                    N/A         Absent              NA          NA          

    DIMM SLOT B7                    N/A         Absent              NA          NA          

    DIMM SLOT B8                    N/A         Absent              NA          NA          

    DIMM SLOT B9                    N/A         Absent              NA          NA          

    DIMM SLOT B10                   N/A         Absent              NA          NA          

    DIMM SLOT B11                   N/A         Absent              NA          NA          

    DIMM SLOT B12                   N/A         Absent              NA          NA          

    Sensor Type : BATTERY

    <Sensor Name>                   <Status>    <Reading>   <lc>        <uc>        

    System Board CMOS Battery       Ok          Present             NA          NA          

    Sensor Type : PERFOMANCE

    <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      Disabled                 PSU

    #所有联机的磁盘
    racadm raid get pdisks  看一眼现在的磁盘 罗列出了所有磁盘,但是没状态什么

    clip_image006

    #raid 卡详细信息
    racadm raid get controllers -o  这里看,能看到raid详细信息 rollupstatus装填盘阵有问题这里就应该报错了,这个没证实,文档上大概意思是这样的
    clip_image008

    #列出所有网卡
    racadm nicstatistics   这是网卡名字,这个名字用下面命令获取详细信息NIC.Integrated.1-1-1名字后面显示了网卡牌子

    clip_image010
    #网卡状态

    racadm nicstatistics  [nicname] 上面的取到的名字,我们通过这条命令获取网卡详细信息

    clip_image012

    这里的link status显示的是网卡是否启用,目前我所需要的就这么多,网上搜了好多,没找到方法,自己研究了一下,共享一下,忽喷,您如果有更好的方法可以共享一下

    PS:ssh用户扔线上肯定不会让你使用root账户,所以这个我开了一个账户权限给了只读和系统控制,给完权限后要记得启用账户,一个很2的错,浪费了我好长时间

    clip_image014很2的错误

    clip_image016

  • 相关阅读:
    BZOJ 4873 [Shoi2017]寿司餐厅 | 网络流 最大权闭合子图
    BZOJ 1412 [ZJOI2009]狼和羊的故事 | 网络流
    BZOJ 2242 [SDOI2011]计算器 | BSGS
    BZOJ 2480 && 3239 && 2995 高次不定方程(高次同余方程)
    用JS制作博客页面背景随滚动渐变的效果
    BZOJ 3876 支线剧情 | 有下界费用流
    ZOJ 1314 Reactor Cooling | 上下界无源汇可行流
    BZOJ 百题纪念!
    BZOJ 3238 [Ahoi2013] 差异 | 后缀数组 单调栈
    BZOJ 4417 [Shoi2013]超级跳马
  • 原文地址:https://www.cnblogs.com/zxdpxl/p/4250062.html
Copyright © 2020-2023  润新知