You need to enable JavaScript to run this app.
最新活动
大模型
产品
解决方案
定价
生态与合作
支持与服务
开发者
了解我们

如何从ESXi 6.5服务器解析温度数据至数据库?SNMP Walk未获数据

How to Extract ESXi 6.5 Temperature Data for Datacenter Visualization

Alright, let's tackle this step by step. Since your initial SNMP Walk didn't turn up temperature data, we'll focus on server-specific methods that are far more reliable for each of your three hosts—starting with the one most likely to give you results quickly.

Dell PowerEdge R630 (Highest Success Rate)

Dell’s ESXi integration for hardware metrics is top-notch, so this host should be your first stop:

  • Option 1: Use ESXi’s Built-in CLI
    SSH into your R630’s ESXi host and run this command to pull all temperature sensors directly:
    esxcli hardware ipmi sdr list --type temperature
    
    You’ll get a clean output with sensor names, current temperatures, threshold values, and statuses. Parse this with a quick script (using awk, Python, or whatever you prefer) and push the data straight to your database.
  • Option 2: Enable Dell-Specific SNMP MIBs
    If you still want to use SNMP, install Dell’s OpenManage Server Administrator (OMSA) VIB on the ESXi host (it’s included in Dell’s customized ESXi ISO, or you can download it separately). Then load Dell’s MIBs into your SNMP manager and walk the 1.3.6.1.4.1.674.10892.5.4.1000.10 OID tree—this holds all temperature sensor data.

IBM System x3550 M4

IBM servers rely on their Integrated Management Module (IMM) for hardware monitoring. Here’s how to grab temps:

  • Option 1: ESXi CLI with IPMI
    First, enable IPMI access in the server’s BIOS/IMM settings. Then SSH into ESXi and run:
    esxcli hardware ipmi sdr list --type temperature
    
    If this doesn’t work, make sure you’re using IBM’s customized ESXi ISO (it includes the necessary drivers for IPMI communication).
  • Option 2: Query the IMM Directly
    Bypass ESXi entirely and pull data from the IMM’s API. Use curl to get JSON-formatted temperature data:
    curl -u <imm-username>:<imm-password> https://<imm-ip-address>/rest/api/sensors/temperature
    
    JSON is super easy to parse and insert into your database.

IBM System x3250 M3

This is an older server, so ESXi 6.5 support is more limited—but you still have options:

  • IPMI via ESXi CLI
    Enable IPMI in the server’s BIOS, then run the same esxcli command as above. If ESXi doesn’t recognize the sensors, you’ll need to use the IBM Remote Supervisor Adapter (RSA) instead—either via its web UI or CLI to pull temps directly from the management controller.
  • SNMP with IBM System x MIBs
    Load the IBM System x MIBs (specifically the ibm-x3250m3.mib) into your SNMP manager. Enable SNMP on the server’s RSA/IMM (not just ESXi) and walk the 1.3.6.1.4.1.2.3.51.2.2.10 OID tree to access temperature data.

Fallback: vSphere API (Works for All Hosts)

If the server-specific methods fail, use the vSphere API to pull hardware health data. With PowerCLI, this is straightforward:

Connect-VIServer -Server <esxi-host-ip> -User <esxi-username> -Password <esxi-password>
Get-VMHostHardwareStatus | Select-Object -ExpandProperty Sensors | Where-Object {$_.Type -eq "Temperature"}

This returns structured objects with all temperature sensor details—perfect for exporting to your database.

Pro Tip

Start with the Dell R630 first—its ESXi integration is the most robust, so you’re almost guaranteed to get temperature data quickly. For the IBM hosts, prioritizing the IMM/RSA direct queries will often yield better results than relying on ESXi’s native tools.

内容的提问来源于stack exchange,提问作者Nikita Seliverstov

火山引擎 最新活动