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?

We would love to hear it
Open an issue

/ruby/get_ipmi/