You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

HP ProLiant DL360 G7服务器iLo3 API调用相关技术咨询

HP ProLiant DL360 G7服务器iLo3 API调用相关技术咨询

Hey there! Let me break this down for you since I’ve dealt with iLO3 setups before. The bad news first: iLO3 doesn’t support the Redfish API (that /redfish/v1/ endpoint you saw is exclusive to iLO4 and newer models). But don’t worry—iLO3 has its own API system you can use with PHP and curl.

Here’s what you need to know:

  • iLO3 uses RIBCL (Remote Insight Board Command Language), an XML-based interface instead of RESTful Redfish. All your API calls will send XML commands via HTTPS POST requests to the iLO’s /ribcl endpoint.
  • Authentication is done via HTTP Basic Auth—you’ll need your iLO admin username and password for this.

Quick PHP curl example to get server info

Here’s a simple snippet to test retrieving system details using RIBCL:

<?php
$ilo_ip = "your_ilo3_ip_address";
$ilo_user = "admin_username";
$ilo_pass = "admin_password";

// RIBCL XML command to get server information
$ribcl_xml = '<?xml version="1.0"?>
<RIBCL VERSION="2.0">
  <LOGIN USER_LOGIN="' . $ilo_user . '" PASSWORD="' . $ilo_pass . '">
    <SERVER_INFO MODE="read">
      <GET_HOST_DATA />
    </SERVER_INFO>
  </LOGIN>
</RIBCL>';

// Initialize curl
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL, "https://{$ilo_ip}/ribcl");
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, $ribcl_xml);
curl_setopt($ch, CURLOPT_HTTPHEADER, array('Content-Type: text/xml'));
curl_setopt($ch, CURLOPT_USERPWD, "{$ilo_user}:{$ilo_pass}");
// Disable SSL verification if you're using self-signed iLO cert (not recommended for production)
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
curl_setopt($ch, CURLOPT_SSL_VERIFYHOST, false);

// Execute request
$response = curl_exec($ch);
curl_close($ch);

// Output the XML response
echo $response;
?>

Other things to note:

  • You can do almost all remote management tasks with RIBCL—like power cycling the server, setting iLO network config, viewing sensor data, etc. You’ll need to reference the HP iLO 3 Scripting and Command Line Guide for all available XML commands.
  • If you prefer a pre-built tool instead of rolling your own, HP’s hponcfg utility can send RIBCL commands locally or remotely, but since you’re building a PHP manager, direct curl calls to /ribcl are the way to go.
  • Make sure your iLO3 firmware is updated to the latest available version (even though HP has ended support for G7 servers, the last firmware release will fix most known issues with the RIBCL interface). Also, double-check that remote HTTPS access and API privileges are enabled in the iLO web interface.

备注:内容来源于stack exchange,提问作者Wtrnd

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.04.23 15:32:44