[chef] Re: Re: IPMI / Ohai


Chronological Thread 
  • From: Graham Christensen < >
  • To:
  • Subject: [chef] Re: Re: IPMI / Ohai
  • Date: Mon, 23 Sep 2013 10:52:13 -0500

Based on this then, I suspect the time this could take is highly variable. Is it bad form to create a hint file from within an ohai plugin? just essentially `echo '{"detected": false}' > /etc/chef/ohai/hints/ipmi.json` or  `echo '{"detected": true}' > /etc/chef/ohai/hints/ipmi.json` after the first detection?

Thank you,

Graham

-- 
Graham Christensen
Sent with Sparrow

On Monday, September 23, 2013 at 9:43 AM, Brian J. Murrell wrote:

On 13-09-23 10:36 AM, Graham Christensen wrote:
Hello everyone,

I maintain a deployment of SuperMicro servers, and Dell servers, as well as a compliment of cloud machines. What I want to accomplish is as follows:

An ohai plugin to determine if IPMI is available. I can do this with dmidecode, which takes about 30 seconds:

It only takes less than a second on my hardware:

# time dmidecode --type 38
# dmidecode 2.11
# SMBIOS entry point at 0x000f0440
SMBIOS 2.6 present.

Handle 0x00AD, DMI type 38, 16 bytes
IPMI Device Information
Interface Type: KCS (Keyboard Control Style)
Specification Version: 2.0
I2C Slave Address: 0x10
NV Storage Device: Not Present
Base Address: 0x0000000000000CA2 (I/O)


real 0m0.002s
user 0m0.000s
sys 0m0.001s

Cheers,
b.




Archive powered by MHonArc 2.6.16.

§