Module Rubyipmi
In: lib/rubyipmi.rb
lib/rubyipmi/commands/basecommand.rb
lib/rubyipmi/observablehash.rb
lib/rubyipmi/ipmitool/connection.rb
lib/rubyipmi/ipmitool/errorcodes.rb
lib/rubyipmi/freeipmi/connection.rb

Methods

Classes and Modules

Module Rubyipmi::Freeipmi
Module Rubyipmi::Ipmitool
Class Rubyipmi::BaseCommand
Class Rubyipmi::ObservableHash

Constants

PRIV_TYPES = ['CALLBACK', 'USER', 'OPERATOR', 'ADMINISTRATOR']

Attributes

log_level  [RW] 
logger  [RW] 

Public Class methods

The connect method will create a connection object based the provider type passed in If provider is left blank the function will use the first available provider When the driver is set to auto, rubyipmi will try and figure out which driver to use by common error messages. We will most likely be using the lan20 driver, but in order to support a wide use case we default to auto.

gets data from the bmc device and puts in a hash for diagnostics

Return true or false if the provider is available

method used to find the command which also makes it easier to mock with

sets the log level, this should be called first if logging to a file is desired if you wish to customize the logging options, set the logger yourself with logger= valid levels are of the type Logger::INFO, Logger::DEBUG, Logger::ERROR, …

this is an read only method that only creates a real logger if the log_level is set if the log_level is not setup it creates a null logger which logs nothing

set a logger instance yourself to customize where the logs should go you will need to set the log level yourself

returns true if any of the providers are installed

returns boolean true if privilege type is valid

[Validate]