Question

API To Retrieve IPMI Details From A Host Machine

  • 17 January 2021
  • 5 replies
  • 106 views

Hello,

I am trying to read Nutanix OOB device information into ServiceNow. Is there an API that I could use to retrieve the OOB (IPMI) information from the host machine? Or Would executing SNMP commands on the IPMI help with my ask?


5 replies

Userlevel 6
Badge +5

Hey @SwatiK

The REST APIs can’t give you the IPMI/OOB information. You can use the IPMI tool on CVM to get the details. Here is the KB for the same: http://portal.nutanix.com/kb/1091. BTW, what IPMI details are you most interested to get?

Thanks @AnishWalia20 

I am looking at some basic information like OOB name, IP, Serial Number, host machine that it supports, version and relate it to the host machine.

We are retrieving Nutanix Hosts, Clusters, CVM details etc., via Nutanix API query. So, from whatever you are saying, I”ll not be able to use these API’s for OOB devices.

Can I try running any of the IPMI tool commands on the CVM through the API?? Or is there a better way to do it?? Please advise.

Userlevel 2
Badge +3

You can check REST API based options for data retrieval of cluster info

https://www.nutanix.dev/reference/prism_element/v2/

Hello Rahul,

I couldn’t find anything from the list that would help retrieve IPMI details. I am specifically looking at IPMI details. Could you please advise if there is any other way to obtain this information? 

 

Thanks

Swathi

Userlevel 6
Badge +5

Hey @SwatiK ,I am afraid REST API wouldn’t get that information for you. :sweat_smile:

If you need the IPMI info displayed on PE or PC page, then we could check if the API returning that information is supported.

The other way for you is to check if the hardware you use has an API. The most common framework is Redfish(https://www.dmtf.org/standards/redfish) .

 

The safest way to get more details is using the API for the IPMI if the hardware vendor provides one.

 

 

Reply