August 22, 2016


Get IPMI info for BMS

Retrieve IPMI address, username, and password for all hardware on the account
require 'softlayer_api'
require 'pp'

client = SoftLayer::Client.new(:timeout => 120)

object_mask = 'mask[networkManagementIpAddress,remoteManagementAccounts[username,password],id,fullyQualifiedDomainName]'

item = client['SoftLayer_Account']
getIPMI = item.object_mask(object_mask).getHardware

pp getIPMI

Feedback?

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