August 22, 2016

Get IPMI info for Bare Metal Server

Retrieve IPMI address, username, and password for all hardware on the account

require_once './vendor/autoload.php';
$apiUsername = getenv('SOFTLAYER_USERNAME');
$apiKey = getenv('SOFTLAYER_API_KEY');

$server_id = 882187;

try {
  $client = \SoftLayer\SoapClient::getClient('SoftLayer_Account', $server_id, $apiUsername, $apiKey);
  $objectMask = new \SoftLayer\Common\ObjectMask();
  $response = $client->getHardware($objectMask);


} catch(Exception $e) {
  echo 'Cannot compute. Error is: ' . $e->getMessage();



If this article contains any error, or leaves any of your questions unanswered, please help us out by opening up a github issue.
Open an issue