Documentation ¶
Index ¶
- Constants
- Variables
- func Command(timeout time.Duration, stdin io.Reader, name string, arg ...string) (io.Reader, error)
- func Replace(s, replacement string) (string, error)
- type OMReport
- func (or *OMReport) Chassis() ([]Value, error)
- func (or *OMReport) ChassisBatteries() ([]Value, error)
- func (or *OMReport) Fans() ([]Value, error)
- func (or *OMReport) Memory() ([]Value, error)
- func (or *OMReport) Nics() ([]Value, error)
- func (or *OMReport) Processors() ([]Value, error)
- func (or *OMReport) Ps() ([]Value, error)
- func (or *OMReport) PsAmpsSysboardPwr() ([]Value, error)
- func (or *OMReport) StorageBattery() ([]Value, error)
- func (or *OMReport) StorageController() ([]Value, error)
- func (or *OMReport) StorageEnclosure() ([]Value, error)
- func (or *OMReport) StoragePdisk(cid string) ([]Value, error)
- func (or *OMReport) StorageVdisk() ([]Value, error)
- func (or *OMReport) System() ([]Value, error)
- func (or *OMReport) Temps() ([]Value, error)
- func (or *OMReport) Volts() ([]Value, error)
- type Options
- type Value
Constants ¶
View Source
const (
// DefaultOMReportExecutable the default path of the omreport binary
DefaultOMReportExecutable = "/opt/dell/srvadmin/bin/omreport"
)
Variables ¶
View Source
var ( // ErrPath is returned by Command if the program is not in the PATH. ErrPath = errors.New("program not in PATH") // ErrTimeout is returned by Command if the program timed out. ErrTimeout = errors.New("program killed after timeout") )
Functions ¶
Types ¶
type OMReport ¶
OMReport contains the Options and a Reader to mock outputs during development
func (*OMReport) ChassisBatteries ¶ added in v1.3.0
ChassisBatteries retursn the chassis batteries status
func (*OMReport) Processors ¶
Processors returns the processors status
func (*OMReport) PsAmpsSysboardPwr ¶
PsAmpsSysboardPwr returns the power supply system board amps power consumption
func (*OMReport) StorageBattery ¶
StorageBattery returns the storage battery ("RAID batteries")
func (*OMReport) StorageController ¶
StorageController returns the storage controller status
func (*OMReport) StorageEnclosure ¶
StorageEnclosure returns the storage enclosure status
func (*OMReport) StoragePdisk ¶
StoragePdisk is called from the controller func, since it needs the encapsulating IDs.
func (*OMReport) StorageVdisk ¶
StorageVdisk returns the storage vdisk status
Click to show internal directories.
Click to hide internal directories.